Message 1 of 2
Change properties (coordinates and rotation) of all annotation scales assigned to an annotative object.

Not applicable
10-27-2020
09:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is it possible to iterate through all annotation scales, which are assigned to an annotative object,
without setting each annotation scale as current? For each assigned annotation scale the properties must be updated.
My current procedure is very cumbersome:
- check if the AcDbEntity is annotative.
- get pointer to AcDbObjectContextManager
- get pointer to AcDbObjectContextCollection (ACDB_ANNOTATIONSCALES_COLLECTION)
- iterate through all AcDbAnnotationScale of the current DWG.
| - check if the annotativ object has the annotation scale the iterator points to (…->hasContext(...))|
| - if yes, set the annotation scale current (…->setCannoscale(...))
| - update the AcDbEntity
| - next iteration ...