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: 

VBA automation of iLogic External Rule Fails.

1 REPLY 1
Reply
Message 1 of 2
Anonymous
529 Views, 1 Reply

VBA automation of iLogic External Rule Fails.

VBA automation of iLogic External Rule Fails.

 

Error says cannot find the External Rule in the current Document.

Is there some way I can tell the iLogicAuto.Getrule(doc, "RunDll_Test") method that the rule is external and not inside the current document?

1 REPLY 1
Message 2 of 2
MjDeck
in reply to: Anonymous

The GetRule function will only work on internal rules.

Do you want to run the external rule?  If so, use the function:

iLogicAuto.RunExternalRule(doc, fileName)

fileName can be a relative or absolute path name.

 


Mike Deck
Software Developer
Autodesk, Inc.

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

Post to forums  

Autodesk Design & Make Report