Inventor General Discussion

Inventor General Discussion

Reply
Valued Contributor
70 Posts
2 Kudos
Registered: ‎03-26-2008
Post 1 of 7
Accepted Solution

ILogic user form on inventor 2011

2255 Views, 6 Replies
04-15-2012 01:33 PM

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

 

 

 

 

*Expert Elite*
940 Posts
198 Kudos
Registered: ‎11-13-2006
Post 2 of 7

Re: ILogic user form on inventor 2011

04-15-2012 11:38 PM 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!

CSO

The CAD Setter Out Blog @CadSetterOut

Inventor Surfacing | AutoCAD | CAD Standards

Please use the Mark Solutions! Accept as Solution or Give Kudos! Kudos functions - Thank you!
Valued Contributor
70 Posts
2 Kudos
Registered: ‎03-26-2008
Post 3 of 7

Re: ILogic user form on inventor 2011

04-15-2012 11:47 PM 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

 

*Expert Elite*
940 Posts
198 Kudos
Registered: ‎11-13-2006
Post 4 of 7

Re: ILogic user form on inventor 2011

04-16-2012 02:54 AM in reply to: dclunie
Product Support
578 Posts
47 Kudos
Registered: ‎11-23-2005
Post 5 of 7

Re: ILogic user form on inventor 2011

04-17-2012 03:11 PM 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

Valued Contributor
70 Posts
2 Kudos
Registered: ‎03-26-2008
Post 6 of 7

Re: ILogic user form on inventor 2011

04-17-2012 09:36 PM 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

*Expert Elite*
940 Posts
198 Kudos
Registered: ‎11-13-2006
Post 7 of 7

Re: ILogic user form on inventor 2011

04-17-2012 11:39 PM in reply to: dclunie

Glad to hear it Dave!

CSO

The CAD Setter Out Blog @CadSetterOut

Inventor Surfacing | AutoCAD | CAD Standards

Please use the Mark Solutions! Accept as Solution or Give Kudos! Kudos functions - Thank you!
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post