Alternative for ObjectID for formatting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've got a menu in which you can select an object with an standard format (textformat, height, style etc. for example), and after that there are several functions who use that selected object to format the for example new texts.
The object is referred to by the objectId, if there was never a text selected, its set at objectId.Null.
This works fine when the object is in the active drawing, however, when working in another drawing (wether the original drawing is opened or closed) this off course doesn't work anymore.
I'm not really wanting to set all the properties by hand as different values, for for example dimensions this is way to much work.
So... Anyone got a smart idea on how to store such an object in your menu with which you can allways access it? Or do I really have to refer to the drawing as an side-database (and is this working when the drawing with the object IS the active document?)
Any opinions on this would be very welcome cause I don't know what's smart to do at this moment.
Thanks.