AcDbPropertiesOverrule sample
Hello,
I need to show a custom property of an entity in the Properties Bar, allow the user to change the property and to alter the entity on its custom property change.
Let's have this for example:
- A TEXT entity contains a string, e.g. "123abc".
- My property name be "MyNumber".
- So when I pick the text, in the property bar the (new) row "MyNumber" should appear with the value 123. (This field is to ignore all but a valid number.)
- Then I overwrite the value in the Properties Bar from 123 to e.g. 789.
- The the TEXT entity content should change to "789" as a reaction to the hereabove.
I guess that AcDbPropertiesOverrule should be used for this but I cannot make a working sample.
Any hints how to do it?
TIA.
Best regards,
Lukas
0
Comments
-
AcDbPropertiesOverrule is not useful for extending OPM properties. For that, you should create a custom AcOPMClientExtension. (see BrxSpecific/AcOpmExtensions.h in the BRX SDK).0
-
OK, thanks for reply.
And a minimal working sample?
0