コード例 #1
0
        public void Terminate()
        {
            // Remove the Dynamic Property
            Dictionary        classDict = SystemObjects.ClassDictionary;
            RXClass           lineDesc  = (RXClass)classDict.At("AcDbLine");
            IPropertyManager2 pPropMan  = (IPropertyManager2)xOPM.xGET_OPMPROPERTY_MANAGER(lineDesc);

            pPropMan.RemoveProperty((object)custProp);
            custProp = null;
        }
コード例 #2
0
        public void Initialize()
        {
            Assembly.LoadFrom("asdkOPMNetExt.dll");

            // Add the Dynamic Property
            Dictionary        classDict = SystemObjects.ClassDictionary;
            RXClass           lineDesc  = (RXClass)classDict.At("AcDbLine");
            IPropertyManager2 pPropMan  = (IPropertyManager2)xOPM.xGET_OPMPROPERTY_MANAGER(lineDesc);

            custProp = new CustomProp();
            pPropMan.AddProperty((object)custProp);
        }
コード例 #3
0
        public void Terminate () {
            // Remove the Dynamic Property
            Dictionary classDict =SystemObjects.ClassDictionary;
            RXClass lineDesc =(RXClass)classDict.At("AcDbLine");
            IPropertyManager2 pPropMan =(IPropertyManager2)xOPM.xGET_OPMPROPERTY_MANAGER(lineDesc);

            pPropMan.RemoveProperty((object)custProp);
            custProp =null;
        }
コード例 #4
0
        public void Initialize () {
            Assembly.LoadFrom("asdkOPMNetExt.dll");

            // Add the Dynamic Property
            Dictionary classDict =SystemObjects.ClassDictionary;
            RXClass lineDesc =(RXClass)classDict.At("AcDbLine");
            IPropertyManager2 pPropMan =(IPropertyManager2)xOPM.xGET_OPMPROPERTY_MANAGER(lineDesc);

            custProp =new CustomProp();
            pPropMan.AddProperty((object)custProp);
        }