I wanted to run this by before I beat myself up trying to do it. I will be viewing single page .dwfs. On the OnEndLoadItem event I would like to remove all markup objects that may be on the dwf, and then using Content3 and Object3 Move through all of the objects on the dwf and programmatically draw markup objects using the extents I can get from Object3.
Is this possible? Or a resonable approach? This will provide some visual feed back on load for me.
Let me know if this sounds ok.
My Logical Flow would be like this.
Set ObjectContent to Section.Content as IAdContent3
If ObjectContent HasMarkups
Make Sure All Markup objects are not locked.
Then Delete All Markups
For each object in the section
Get the object extents
Get the object properties 'For my use in the application
Look Up some values in a database using the object properties
Create a markup object the size of the object extents and fill a cetain color basked on the lookup values.
I hope this helps... Let me know if this is possible.
Thanks in advance.
In the step "Make Sure All Markup objects are not locked" Where is this setting.
In looking in the API documentation I do not see that as a property of a markup object.
I only see .Status and .Note and under enum Status, there is nothing for locked.
The code :
Set CompositeViewer = CExpressViewerControl1.ECompositeViewer
Set Section = CompositeViewer.Section
Set ObjectContent = Section.Content
Set MyObjects = ObjectContent.Objects(2)
If ObjectContent.HasMarkups Then
Works fine as long as the Markup Objects are not locked. How can I set them to unlocked?
Thank you for your question.
Autodesk Design Review currently does not support to unlock markup(s) via API.
I've added your requirement to our WISHLIST database. We will consider it for possible inclusion in future releases.
Is there a way to create Markup Objects via the API?
like to get the extents of an object and then create a markup object using that iadRect and fille with a green highlighter or something along those lines?
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!