- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
I am writing an application that will be moving elements from a document opened using the OpenDocumentFile() method.
This has been working, but I'm copying reference callouts over which has been successful except for the geometry of the callout. I'm using the BoundingBox() method to return the min and max points, but this includes the callout heads which makes the copied callouts too large.
To remedy this I created a function with a transaction within that turns all callout heads to null. This then sets the BoundingBox points to the correct min and max for the callouts' insertion points. However when I try and run function to modify the document opened with the OpenDocumentFile() method, I get an exception that an attempt is being made to modify the document outside a transaction.
So the question arrose, can you modify a document opened in the background with this method?
If not, are there any suggestions on how I can retrieve the correct insertion points? Or any ways I can include reference call outs, sections, and view references in a simpler manner than copying the views, then copying the elements of those views including, then the call outs, sections and view refs referenced to the corresponding views in the new document?
Thanks in advance!
Solved! Go to Solution.