Standard Inventor Command

Standard Inventor Command

Anonymous
Not applicable
421 Views
4 Replies
Message 1 of 5

Standard Inventor Command

Anonymous
Not applicable
Hello,
I want to execute a standard Inventor command with my
C# makro.
The command is to insert a symbol in the current idw file.
Which CommandIDEnum i have to use in my Code ?

InventorApp.CommandManager.StartCommand(
CommandIDEnum. ?)

Greetings
A. Engler
0 Likes
422 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Hi Andreas,

why do you want to use a inventor command.
When you want to insert a sketched symbol, you can use the APi.
There is an example in the Help.
Look for SketchedSymbolDefinition Object.

Best regards

JesG
0 Likes
Message 3 of 5

Anonymous
Not applicable
Hello JesG,
I want to use the original Inventor Dialog
to insert a symbol.

Greetings
A. Engler
0 Likes
Message 4 of 5

Anonymous
Not applicable
If you want to execute the "Symbols" command on the "Drawing Annotation
Panel" (which brings up a dialog), then
ThisApplication.CommandManager.ControlDefinitions("DrawingSymbolsCmd").Execute

If you want to start the command to insert a sketch symbol:
ThisApplication.CommandManager.ControlDefinitions("DrawingUserDefinedSymbolsQuickCtxCmd").Execute

But, for the latter, you need to specify the sketch symbol to insert (maybe
by pre-selecting it).

-Venkatesh.
0 Likes
Message 5 of 5

Anonymous
Not applicable
Thank you Venkatesh

Greetings
A. Engler
0 Likes