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

    Autodesk Design Review

    Reply
    Contributor
    Posts: 11
    Registered: ‎03-13-2012

    DWF Viewer Javascript API

    1127 Views, 6 Replies
    08-15-2012 01:18 AM

    There are a few examples of javascript code on the net for controlling the DWF viewer when embedded in a webapage. Is there a comprehensive guide to all available functionality.

    I am looking for a way to make the Selection be turned on by default (or a method of controlling with javascript) without having to either select the arrow from the toolbar or use the right click menu.

     

    Also does anyone know of a way to change the object params using javascript, I have tried modifying them with the DOM but it appears that once the dwf object is loaded the params cannot be changed without a complete page refresh.

     

    Any help greatly appreciated

     

    Paul M

    Please use plain text.
    Contributor
    Posts: 11
    Registered: ‎03-13-2012

    Re: DWF Viewer Javascript API

    08-17-2012 03:24 AM in reply to: tagbagz

    Its OK I have found the solution by trial and error.

     

    I would like to know however if there is a way in which the current selected object in the dwf viewer can be deselected using javascript, because selecting the currently  selected object does not  cause an event to fire

       

    Thanks

    PM

    Please use plain text.
    Contributor
    Posts: 11
    Registered: ‎03-13-2012

    Re: DWF Viewer Javascript API

    08-17-2012 08:13 AM in reply to: tagbagz

    I have managed to find a solution to the above also.

    What I would really like to know is if the properties palettes can be disabled so they do not pop up (if the user has them turned on)  when an object is clicked on.

    I have tried various permutations of:

     

    ADViewer.ECompositeViewer.Commands('OBJECTPROPERTIESBAND').Enabled = false;

    but this does not seem to work

     

    any help greatly apprecciated

     

    PM

    Please use plain text.
    Active Contributor
    vgottipa
    Posts: 31
    Registered: ‎02-10-2011

    Re: DWF Viewer Javascript API

    08-20-2012 07:40 AM in reply to: tagbagz

    Try setting AdViewer.AutoOpenPalettesDisabled = 1

    Please use plain text.
    Contributor
    Posts: 11
    Registered: ‎03-13-2012

    Re: DWF Viewer Javascript API

    08-20-2012 09:41 AM in reply to: vgottipa

    Many thanks that works great on the latest plug-in

    does anyone know why the design review plug-in that gets downloaded from the Autodesk Website is the 2009 version?

     

    is there a CAB file in existence anywhere for the 2012 or 2013 browser plug-in (the full design review download that includes the plug-in is over 700MB in size)

     

    regards

    Paul M

    Please use plain text.
    Member
    Posts: 3
    Registered: ‎09-20-2006

    Re: DWF Viewer Javascript API

    10-15-2012 10:02 PM in reply to: tagbagz

    Can you Post the Solution, have the Same Quentin, how to change properties with the API. Thanks

     

    Please use plain text.
    Member
    Posts: 3
    Registered: ‎09-20-2006

    Re: DWF Viewer Javascript API

    10-15-2012 10:04 PM in reply to: tagbagz

    Can you Post the Ideal, how to deselect all selected Objekts in the viewer. I can Not find any Event for that. Tanks 

    Please use plain text.