How to use CommandManager using InventorServer

How to use CommandManager using InventorServer

siddhesh.nikam
Explorer Explorer
236 Views
1 Reply
Message 1 of 2

How to use CommandManager using InventorServer

siddhesh.nikam
Explorer
Explorer

Hi,

I'm using CommandManager to add sheet in drawing template using InventorApplication object

but unable to add sheet in drawing template using InventorServer 

so please tell me how to use CommandManager in InventorServer or what alternate method I can use to add sheet in drawing template using InventorServer 

 

below is the code I'm using for CommandManager :-

(iApp is Inventor.Application)

 

CommandManager commandManager = iApp.CommandManager;
ControlDefinition controlDefinition = commandManager.ControlDefinitions["DrawingNewSheetCtxCmd"];
controlDefinition.Execute();

 

 

siddheshnikam_0-1678698770813.png

 

 

Thanks

0 Likes
237 Views
1 Reply
Reply (1)
Message 2 of 2

Michael.Navara
Advisor
Advisor

Please avoid to use controlDefinition.Execute when there is API equivalent. See Sheets.Add Method

0 Likes