Message 1 of 2
AcDbPropertiesOverrule sample
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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