Running a command on T&P Add-in Occurrence in Drawing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is it possible to run a command on specific assembly occurrences in the drawing environment.
Using the add-in Tube and pipe. If you right click on the Run assembly occurrence in the browser you are presented with a command “Include Route Centerlines”
I placed this snippet
(ThisApplication.CommandManager.ControlDefinitions(“CADC:Drawing:CenterlineRecoveryChecked”).Execute)
at the point where the loop found the Occurrence.
Using this method the button is not triggered.
I am guessing this is the case because the command manager is trying to act on the whole drawing and not on the specific Occurrences. Is there a method to do this?.
Commands:
Include Route Centerlines - CADC:Drawing:CenterlineRecoveryChecked
Include Route Centerlines - CADC:Drawing:CenterlineRecoveryTriState
Include Route Centerlines - CADC:Drawing:CenterlineRecoveryUnchecked
Resources used.
https://modthemachine.typepad.com/my_weblog/2009/03/running-commands-using-the-api.html
Any help greatly appreciated.
Or if this helped you, please, click (like)
Regards
Alan