Message 1 of 6
OnActivateCommand name for new part/assembly from inventor standard toolbar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All
I need to find out the command that is run when you select new part/assembly etc from the Inventor Standard Toolbar.
It does not seem to case a oUserInputEvents_OnActivateCommand
I use oUserInputEvents_OnActivateCommand to capture a number of commands and oAppEvents_OnNewDocument to trap new document .
The only trouble with oAppEvents_OnNewDocument is that it is fired whenever a new document is created.
I need to trap just when a user selects either
File>New Done this
and
Inpace component creation Done This
and
Selects New>Assembly/Part etc from the Standard Toolbar dropdown.
I have an addin that issues filenames automatically using customisable numbering schwemas or interfaces with Productstream to reserve item numbers from the Item Master and us this as the filename.
Just one small problem is working with frame generator of Tube and Pipe that still invoke the standard oAppEvents_OnNewDocument event.
Hence I need to just trap selection of commands that create new parts assemblies etc.
Regards
Dave
I need to find out the command that is run when you select new part/assembly etc from the Inventor Standard Toolbar.
It does not seem to case a oUserInputEvents_OnActivateCommand
I use oUserInputEvents_OnActivateCommand to capture a number of commands and oAppEvents_OnNewDocument to trap new document .
The only trouble with oAppEvents_OnNewDocument is that it is fired whenever a new document is created.
I need to trap just when a user selects either
File>New Done this
and
Inpace component creation Done This
and
Selects New>Assembly/Part etc from the Standard Toolbar dropdown.
I have an addin that issues filenames automatically using customisable numbering schwemas or interfaces with Productstream to reserve item numbers from the Item Master and us this as the filename.
Just one small problem is working with frame generator of Tube and Pipe that still invoke the standard oAppEvents_OnNewDocument event.
Hence I need to just trap selection of commands that create new parts assemblies etc.
Regards
Dave