DWF

Reply
Contributor
usheokand
Posts: 14
Registered: ‎03-05-2012
Message 1 of 2 (484 Views)

Customize DWF Viewer Toolbar

484 Views, 1 Replies
03-06-2012 11:00 PM

Hi,

 

I want to customize the toolbars of the Autocad DWF Viewer control, i.e. hide unwanted tools/toolbar. Is it possible?

Also the markup tool is disabled, how do I enable it?

 

Thank You.

Employee
herbert.he
Posts: 338
Registered: ‎03-05-2008
Message 2 of 2 (462 Views)

Re: Customize DWF Viewer Toolbar

04-05-2012 02:02 AM in reply to: usheokand

Thank you for your question.

 

You can hide tool button by setting related command's visible property false. See 

    var Cmds = ADViewer.ECompositeViewer.Commands;

    Cmds('PRINT').Visible = false; //Turn off visibility print  

You get can more details from ADR API Documentation.

 

If the markup tool is disabled for an opening dwf/x file, it means that tool is not available for this file. It's not valuable to enable it manually.

 

List markup/measure commands here, hope that helps for you.

    TEXTTOOL

    SHAPETOOLS_FREEHAND
    SHAPETOOLS_LINE
    SHAPETOOLS_POLYLINE
    SHAPETOOLS_RECTANGLE
    SHAPETOOLS_ELLIPSE
    SHAPETOOLS_FREEHAND_HIGHLIGHTER
    SHAPETOOLS_RECTANGLE_HIGHLIGHTER
    SHAPETOOLS_POLYGON_CLOUD
    SHAPETOOLS_RECTANGLE_CLOUD                
    MARKUPTOOLS_RECT
    MARKUPTOOLS_CIRCLE
    MARKUPTOOLS_TRI
    MARKUPTOOLS_RECT_CLOUD
    MARKUPTOOLS_CIRCLE_CLOUD
    MARKUPTOOLS_TRI_CLOUD
    MARKUPTOOLS_RECT_POLYCLOUD
    MARKUPTOOLS_CIRCLE_POLYCLOUD
    MARKUPTOOLS_TRI_POLYCLOUD

    SNAPSHOTTOOL

    SNAPSHOTGRID

 

Any further question please let me know.



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
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.