OnActivateCommand name for new part/assembly from inventor standard toolbar

OnActivateCommand name for new part/assembly from inventor standard toolbar

dsmith
Advocate Advocate
470 Views
5 Replies
Message 1 of 6

OnActivateCommand name for new part/assembly from inventor standard toolbar

dsmith
Advocate
Advocate
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
0 Likes
471 Views
5 Replies
Replies (5)
Message 2 of 6

dsmith
Advocate
Advocate
Anyone got any ideas regarding this Because I am STUCK!!!!!

Dave
0 Likes
Message 3 of 6

dsmith
Advocate
Advocate
Seems I am on my own with this!!!
0 Likes
Message 4 of 6

paulschuepbach
Contributor
Contributor
Hi Dave,

just a idea (I have not tried): check the CommandManager
--> ActiveCommand or so.

Hope this helps.

Best, Paul
0 Likes
Message 5 of 6

dsmith
Advocate
Advocate
Tried that. No command posted
0 Likes
Message 6 of 6

Anonymous
Not applicable
Sorry, it is not currently possible to trap the new document creation from
the standard toolbar dropdown. However, this is very high on our priorities
for the next release.

Sanjay-

wrote in message news:5787956@discussion.autodesk.com...
Tried that. No command posted
0 Likes