-
I want to implement a workflow similar to
I wrote (prototype) code below to illustrate my requirement By clicking My requirement is to do these three steps with a single click. I tried calling Can you please guide how I can do these three steps with a single click.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
If you supply a ViewClipDecorationProvider to the ViewClipByShapeTool, the default behavior is to create and select the view clip decoration. await IModelApp.tools.run(ViewClipByShapeTool.toolId, ViewClipDecorationProvider.create()); If you are writing your own sub-class of ViewClipTool, you just need to follow the same pattern. |
Beta Was this translation helpful? Give feedback.
While I can understand wanting to use the existing tool and clip decoration since it's so close to what you want, there will obviously be times where creating your own tool to fully customize the behavior is desirable, this is one of those times.
You do have the option of sub-classing from the existing tool if you are happy with just turning the view flag off. Something like the following will likely suffice (as far as just creating/showing the clip decoration).