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 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.
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
Any further question please let me know.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.