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.
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.
Can't find what you're looking for? Ask the community or share your knowledge.