DWF Viewer

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

DWF Viewer ActiveX Design Idea

3419 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,415 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,411 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
Posts: 338
Registered: ‎03-05-2008
Message 4 of 6 (3,386 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,374 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
Posts: 338
Registered: ‎03-05-2008
Message 6 of 6 (3,339 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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community