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;
        }
        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);
        }
Esempio n. 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;
        }
Esempio n. 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);
        }