Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ILogic user form on inventor 2011

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
dclunie
4805 Views, 6 Replies

ILogic user form on inventor 2011

Hi All

 

I have several external rules that I use on a regular basis and I have one lets say master external rule that runs all other external rules  to save time.

 

However is it possible to create some kind of user form to ask to run all rules or select certain rules if only one is required to run either via check box or list box or radio button.

 

I am using inventor 2011 and as we know the new user form creator in 2012 is not available in this version so I am after a work around until we eventually upgrade our software.

 

  1. List all external rules in ilogic rule
  2. some kind of selection to either run all or part of code
  3. cancel ilogic rule run (to stop incase wrong rule is selected)

Any feed back on this would be appreciated

 

Thanks Dave

 

 

 

 

6 REPLIES 6
Message 2 of 7
PaulMunford
in reply to: dclunie

It is possible to build your own form in .net and then hook it up to your iLogic rules. However, to be quite honest, unless you are a .net whizz this could be quite laborius and painful.

 

Unless you are desperate, I would wait for 2012!

 


Autodesk Industry Marketing Manager UK D&M
Opinions are my own and may not reflect those of my company.
Linkedin Twitter Instagram Facebook Pinterest

Message 3 of 7
dclunie
in reply to: PaulMunford

Hi

 

I thought that would be the answer I am in the process of doing a vb.net course however not that advanced enough to figure out how to link my user form to a class .dll then back to ilogic rule.And I cannot find any reference on internet how this achieved.

 

When I get more experiance I will figure it out .

 

Thanks for your response

 

Dave

 

Message 4 of 7
PaulMunford
in reply to: dclunie

Here you go:

http://wikihelp.autodesk.com/Inventor/enu/2011/Help/User's_Guide/106iLogic/Visual_Basic

 


Autodesk Industry Marketing Manager UK D&M
Opinions are my own and may not reflect those of my company.
Linkedin Twitter Instagram Facebook Pinterest

Message 5 of 7
bobvdd
in reply to: PaulMunford

If you want to get a quick and dirty idea on how you could manoeuver external iLogic rules through VBA, attached is a sample part file that can help you make the first steps without being a proficient guru in VBA or VB.NET.

 

 

  • Unzip all files from the attachment.
  • Open the part DEMOPART.ipt
  • Run the VBA macro called ShowRules

 

It will run all or some of your external rules. So I think I answered your first two questions.
Unfortunately I would not know how to interrupt a running iLogic rule.

 

If you want to use this in another ipt, simply load the VBA project called ExternalRules.ivb in the VBA editor.

The rule names are strict and have to be called Rule 1.txt, Rule 2.txt and Rule 3.txt to make the code work.

 

VBA to drive iLogic.jpg

 

bob




Bob Van der Donck


Principal UX designer DMG group
Message 6 of 7
dclunie
in reply to: bobvdd

HI THANKS

 

For your solution this is a good work around until i get good enough on vb .net.but as last solution there is a very good explanation on how to write the dll in vb.net by David Reaume on the AU university site and i have managed to achieve this on his tutorial.

 

Just in process of trying to link me own user form to all my external rules.

 

Many thanks for your help

 

Dave

Message 7 of 7
PaulMunford
in reply to: dclunie

Glad to hear it Dave!

 


Autodesk Industry Marketing Manager UK D&M
Opinions are my own and may not reflect those of my company.
Linkedin Twitter Instagram Facebook Pinterest

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

Post to forums  

Autodesk Design & Make Report