コード例 #1
0
        //create value body
        public void CreateCube()
        {
            valueBodyPpage = new ValueBodyPMPage(this);
            ShowValueBodyPMP();
            return;

            //make sure we have a part open
            string partTemplate = iSwApp.GetUserPreferenceStringValue((int)swUserPreferenceStringValue_e.swDefaultTemplatePart);

            if ((partTemplate != null) && (partTemplate != ""))
            {
                IModelDoc2 modDoc = (IModelDoc2)iSwApp.NewDocument(partTemplate, (int)swDwgPaperSizes_e.swDwgPaperA2size, 0.0, 0.0);
            }
            else
            {
                System.Windows.Forms.MessageBox.Show("There is no part template available. Please check your options and make sure there is a part template selected, or select a new part template.");
            }
        }
コード例 #2
0
 public Boolean RemovePMP()
 {
     ppage          = null;
     valueBodyPpage = null;
     return(true);
 }
コード例 #3
0
 public ValueBodyPMPHandler(SwAddin addin, ValueBodyPMPage runningPage)
 {
     userAddin  = addin;
     iSwApp     = (ISldWorks)userAddin.SwApp;
     activePage = runningPage;
 }