Inventor General Discussion

Inventor General Discussion

Reply
Valued Contributor
dclunie
Posts: 70
Registered: ‎03-26-2008
Message 1 of 7 (2,020 Views)
Accepted Solution

ILogic user form on inventor 2011

2020 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*
PaulMunford
Posts: 917
Registered: ‎11-13-2006
Message 2 of 7 (2,001 Views)

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!

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
dclunie
Posts: 70
Registered: ‎03-26-2008
Message 3 of 7 (1,999 Views)

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*
PaulMunford
Posts: 917
Registered: ‎11-13-2006
Message 4 of 7 (1,996 Views)

Re: ILogic user form on inventor 2011

04-16-2012 02:54 AM in reply to: dclunie
Product Support
bobvdd
Posts: 560
Registered: ‎11-23-2005
Message 5 of 7 (1,971 Views)

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
dclunie
Posts: 70
Registered: ‎03-26-2008
Message 6 of 7 (1,960 Views)

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*
PaulMunford
Posts: 917
Registered: ‎11-13-2006
Message 7 of 7 (1,957 Views)

Re: ILogic user form on inventor 2011

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

Glad to hear it Dave!

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!
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.