Run Internal Rule from External Rule

Run Internal Rule from External Rule

Anonymous
Not applicable
701 Views
2 Replies
Message 1 of 3

Run Internal Rule from External Rule

Anonymous
Not applicable

I'm trying to get a drawing document to open up and run a rule by using an external rule but I can't find anything showing how to do that. I thought it would be a simple "open this document and run this rule" but its not turning out that way.  Here is what I'm using for my external rule

 

SyntaxEditor Code Snippet

ThisApplication.Documents.Open("C:\Users\mine\Desktop\My File\Assembly1.dwg")

iLogicVb.RunRule("FIRST")

 

When I first run the external rule it opens the drawing and then says it can't find the internal rule. BUT with the drawing file still opened, if I run the external rule again, it will run the internal rule like its suppose to.

 

I'm new to ilogic and still getting it down so sorry in advance. Also I'm using Inventor Professional 2015

0 Likes
Accepted solutions (1)
702 Views
2 Replies
Replies (2)
Message 2 of 3

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi mmason86,

 

Welcome to the forum.

 

See this link for an example:

http://forums.autodesk.com/t5/inventor-customization/run-ilogic-rule-from-an-external-part-file/m-p/...

 

Also just as a tip, you can search and ask programming questions of this type on the Inventor Customization forum too:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

Message 3 of 3

Anonymous
Not applicable

GOT IT TO WORK!!!!!! THANKS A MILLION!