DWF Viewer (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DWF Viewer ActiveX Design Idea

5 REPLIES 5
Reply
Message 1 of 6
vtkegan
4790 Views, 5 Replies

DWF Viewer ActiveX Design Idea

All,

 

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.

 

Thanks.

5 REPLIES 5
Message 2 of 6
vtkegan
in reply to: vtkegan

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.

 

 

Message 3 of 6
vtkegan
in reply to: vtkegan

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

        ObjectContent.DeleteMarkups MyObjects

    End If

 

 

Works fine as long as the Markup Objects are not locked.  How can I set them to unlocked?

Message 4 of 6
herbert.he
in reply to: vtkegan

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.



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Message 5 of 6
vtkegan
in reply to: herbert.he

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?

Message 6 of 6
herbert.he
in reply to: vtkegan

Thank you for your question.

 

No, we don't have any API for creating markups.



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report