• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk DWF Viewer

    Reply
    Active Member
    vtkegan
    Posts: 7
    Registered: ‎12-15-2010

    DWF Viewer ActiveX Design Idea

    2755 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.

    Please use plain text.
    Active Member
    vtkegan
    Posts: 7
    Registered: ‎12-15-2010

    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.

     

     

    Please use plain text.
    Active Member
    vtkegan
    Posts: 7
    Registered: ‎12-15-2010

    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?

    Please use plain text.
    Employee
    Posts: 338
    Registered: ‎03-05-2008

    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.
    Please use plain text.
    Active Member
    vtkegan
    Posts: 7
    Registered: ‎12-15-2010

    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?

    Please use plain text.
    Employee
    Posts: 338
    Registered: ‎03-05-2008

    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.
    Please use plain text.