Inventor commands list in iLogic

Inventor commands list in iLogic

PiazzaD
Contributor Contributor
2,171 Views
3 Replies
Message 1 of 4

Inventor commands list in iLogic

PiazzaD
Contributor
Contributor

Hi, every now and then I need to look for the name of the Inventor commands "attached" to the ribbon to run them using the Execute/Execute2 methods.

So I finally decided to write few lines of iLogic code to dump and run the commands.

I though this might be of some help for others so I wrote a post and provided the code.

 

Here is the link (sorry is a business address): 

 

http://www.qsinformatica.it/index.php?option=com_content&view=article&id=251:list-and-run-autodesk-i...

 

You can spend few hours looking for hidden commands in Inventor...

 

Smiley Wink

2,172 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Very nice. Thanks
0 Likes
Message 3 of 4

MechMachineMan
Advisor
Advisor
Hey Piazza! Looks like a pretty nifty routine.
Just curious - does it provide any information that this doesnt?

Sub Main()
Dim oControlDefs As ControlDefinitions
oControlDefs = ThisApplication.CommandManager.ControlDefinitions

Dim oControlDef As ControlDefinition
oWriteDoc = "C:\Windows\Temp\Command Names.txt"
oWrite = System.IO.File.CreateText(oWriteDoc)

For Each oControlDef In oControlDefs

oWrite.WriteLine(oControlDef.InternalName & " :: " & oControlDef.DescriptionText)

Next

oWrite.Close
ThisDoc.Launch(oWriteDoc)

End Sub

--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
Message 4 of 4

PiazzaD
Contributor
Contributor

More or less the same. Just wanted to provide a GUI to list and run/test commands. Useful info are:

 

InternalName --> for execution

DisplayName --> for short description

DescriptionText --> for a detailed description (when available)

 

Daniele