Community
DWF
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Customize DWF Viewer Toolbar

2 REPLIES 2
Reply
Message 1 of 3
usheokand
873 Views, 2 Replies

Customize DWF Viewer Toolbar

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.

2 REPLIES 2
Message 2 of 3
herbert.he
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.
Message 3 of 3
Coder_Alex
in reply to: herbert.he

Not working for me in C#, what do I miss ??

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost

 

”Tips

 

”Services