Woodworking for inventor commands ilogic

Woodworking for inventor commands ilogic

simonford026
Contributor Contributor
374 Views
2 Replies
Message 1 of 3

Woodworking for inventor commands ilogic

simonford026
Contributor
Contributor

Can anyone tell me how to write a I logic code to perform the refresh material in woodworking for inventor. 

 

  1. Alternatively is it possible to find and add commands into ilogic image001.png

0 Likes
375 Views
2 Replies
Replies (2)
Message 2 of 3

bradeneuropeArthur
Mentor
Mentor
Can you run the code from the help file (programming help) that exports all commands to a txt file and send me the result. After i have that i can help you further.

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 3

A.Acheson
Mentor
Mentor

To work with inventor commands here is two rules to retrieve commands and then execute. It may not be able to retrieve the Woodworking addin commands but try it anyhow. I know it can retrieve the T&P Addin commands. From the API Help here is the ControlDefinition Object

 

Get Commands List

 

 

' Get the CommandManager object.
Dim oCommandMgr As CommandManager  = ThisApplication.CommandManager

' Get the collection of control definitions.
Dim oControlDefs As ControlDefinitions = oCommandMgr.ControlDefinitions
oWrite = System.IO.File.CreateText("C:\Temp\CommandNames.txt")'Create and write to a text file

For Each oControlDef In oControlDefs ' iterate through the commands and write to file
	oWrite.WriteLine(oControlDef.InternalName & "                        " & oControlDef.DescriptionText)
Next

oWrite.Close() ' Close the temp file
ThisDoc.Launch("C:\Temp\CommandNames.txt")'open the file

 

 

Execute

 

 

' Get the control definition for the Place Component command.
	Dim ctrlDef As Inventor.ControlDefinition = ThisApplication.CommandManager.ControlDefinitions.Item("TP:Fitting:Delete")

	'Enable in the ribbon (if necessary)
	'ctrlDef.Enabled = True

	' Execute the command.
	ctrlDef.Execute

 

 

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes