Hello, with this command activates the display of the center of gravity in a part or assembly.
for example
Dim oCommandMgr As CommandManager
oCommandMgr = ThisApplication.CommandManager
' Get control definition for the line command.
Dim oControlDef As ControlDefinition
oControlDef = oCommandMgr.ControlDefinitions.Item("AppCenterOfGravityCmd")
' Execute the command.
oControlDef.Execute
In drawing file, with this command create a base view.
Differentiate the commands execute and execute2 (True), the second I use when I am in the middle of a pre-programming line, I want to execute the punctual command, and then I want to continue in the program line performing another action.
Dim oCommandMgr As CommandManager
oCommandMgr = ThisApplication.CommandManager
' Get control definition for the line command.
Dim oControlDef As ControlDefinition
oControlDef = oCommandMgr.ControlDefinitions.Item("DrawingBaseViewCmd")
' Execute the command.
oControlDef.Execute2(True)
You see more information of this commands here
https://spiderinnet2.typepad.com/blog/2012/07/inventor-net-find-all-the-control-definitions-1.html
Please accept as solution and give likes if applicable.
I am attaching my Upwork profile for specific queries.
Sergio Daniel Suarez
Mechanical Designer
| Upwork Profile | LinkedIn