DWF Viewer

Reply
Active Member
vtkegan
Posts: 7
Registered: ‎12-15-2010
Message 1 of 6 (3,670 Views)

DWF Viewer ActiveX Design Idea

3670 Views, 5 Replies
12-16-2010 05:32 AM

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.

Active Member
vtkegan
Posts: 7
Registered: ‎12-15-2010
Message 2 of 6 (3,666 Views)

Re: DWF Viewer ActiveX Design Idea

12-16-2010 06:14 AM 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.

 

 

Active Member
vtkegan
Posts: 7
Registered: ‎12-15-2010
Message 3 of 6 (3,662 Views)

Re: DWF Viewer ActiveX Design Idea

12-16-2010 07:12 AM 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?

Employee
herbert.he
Posts: 338
Registered: ‎03-05-2008
Message 4 of 6 (3,637 Views)

Re: DWF Viewer ActiveX Design Idea

12-16-2010 08:20 PM 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.
Active Member
vtkegan
Posts: 7
Registered: ‎12-15-2010
Message 5 of 6 (3,625 Views)

Re: DWF Viewer ActiveX Design Idea

12-17-2010 08:12 AM 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?

Employee
herbert.he
Posts: 338
Registered: ‎03-05-2008
Message 6 of 6 (3,590 Views)

Re: DWF Viewer ActiveX Design Idea

12-19-2010 06:41 PM 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.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!