internal void ShowPromptAndDrawBlock() { try { string folderPath = getTempFolderPath( Context.GetContext().AKInfo.Path); AKProduct product = AKProduct.Load( Path.Combine(folderPath, "temp.xml")); var project = ProjectManager.CreateOrOpenProject( product.GetProjectPath()); Product mvProduct = getProductFromProject(product, project); string productCutx = mvProduct.GetProductCutxFileName(); SpecificationGroup specificationGroup = project.SpecificationGroups.Find(it => it.Name == mvProduct.MatFile); var bookset = showPromptWindow(product, project, productCutx, specificationGroup); ProductAnalyst analyst = new ProductAnalyst(); analyst.Analysis(mvProduct, bookset); BlockDrawer drawer = new BlockDrawer(product.Tab.VarX, product.Tab.VarZ, product.Tab.VarY, Path.Combine(folderPath, product.Tab.DWG + ".dwg")); drawer.DrawAndSaveAs2(mvProduct, bookset); } catch (Exception error) { throw new Exception("Error occured during drawing....", error); } }