Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic Automation Addin - RunExternalRule not working in Inventor 2025

1 REPLY 1
Reply
Message 1 of 2
dave_taylor
113 Views, 1 Reply

iLogic Automation Addin - RunExternalRule not working in Inventor 2025

Anyone have issues writing PowerShell/API code to use the iLogic Add-in Automation within Inventor 2025?

 

In 2024 and older releases, I can reference and activate the iLogic Add-in Automation using code like this ($invApp is the Inventor 2024 instance):

 

$oDoc = $invApp.Documents.Open($file.LocalPath, $true) # open the file
$addIns = $invApp.ApplicationAddIns

foreach ($addIn In $addIns) {
	if ($addIn.DisplayName.Contains("iLogic")) {
		$iLogicAddIn = $invApp.ApplicationAddIns.ItemById("$($addIn.ClientId)")
		if ($iLogicAddIn.Activated -eq $true) {
		} else {
			$iLogicAddIn.Activate()
		}
		$iLogicAuto = $iLogicAddIn.Automation
		break
	}
}

 

...and $iLogicAuto.RunExternalRule($oDoc, $RuleName) works great.

 

$iLogicAuto.RunExternalRule($oDoc, $RuleName)

 

...but when I try to run this code when using Inventor 2025 (with $invApp as the Inventor 2025 instance), I get this error:

dave_taylor_0-1730152473962.png

 

Any ideas? The exact same code works when using Inventor 2024 with no errors, but in 2025 I get the "Type Library is not registered" exception.


Dave Taylor
Innovation and Development Strategist
Hagerman & Co./Synergis Engineering Design Solutions


Autodesk Certified Instructor - Platinum



Try out our custom add-ins:
Vault Sidekick
Inventor Sidekick

*Likes to this post are appreciated if the information I have shared is helpful to you and/or others...
**Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.
1 REPLY 1
Message 2 of 2
dave_taylor
in reply to: dave_taylor

Anyone having this same issue or tried it?


Dave Taylor
Innovation and Development Strategist
Hagerman & Co./Synergis Engineering Design Solutions


Autodesk Certified Instructor - Platinum



Try out our custom add-ins:
Vault Sidekick
Inventor Sidekick

*Likes to this post are appreciated if the information I have shared is helpful to you and/or others...
**Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report