Inventor General

Reply
Distinguished Contributor
Posts: 204
Registered: ‎03-04-2009
Message 1 of 11 (1,015 Views)

Best iLogic workflow?

1015 Views, 10 Replies
03-09-2011 10:53 PM

I am just getting into using iLogic for some of our products. It seems to be quite a steep learning curve and the the Autodesk claim that no "programming experience" is needed is a little exaggerated. I feel that if I had good programming knowledge this would be alot easier.

 

My current method is to create a single multibody part with various features which can be suppressed, unsuppressed, dims modified, predominantly from the fx parameters. These are linked to iLogic rules. My intention is that once the correct configuration has bee selected the cad user would then use the create parts function to create the individual ipt's and the iam. Would others agree with this method or would you recommend creating the assembly with the individual ipt's and then use rules to control suppression states of the ipt's in the assembly.

 

So far it seems a little easier doing it from one ipt instead of trying to figure out how to get rules to work accross mulitple parts and still be able it control it all from one location. The problem is that the single ipt multibody approach also starts to get quite complicated as I attempt adding more design variations.

 

Your thoughts please?

*Expert Elite*
PaulMunford
Posts: 860
Registered: ‎11-13-2006
Message 2 of 11 (981 Views)

Re: Best iLogic workflow?

03-11-2011 06:00 AM in reply to: wseaston

It's really hard to say without knowing more about your usual workflow.

 

I suggest considering external rules...

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!
Employee
Posts: 948
Registered: ‎02-24-2009
Message 3 of 11 (965 Views)

Re: Best iLogic workflow?

03-11-2011 11:38 AM in reply to: wseaston

I think most people work with assemblies rather than multibody parts.  We have more support for that in iLogic.

How many bodies do you have in a typical model?  Do you have a lot of bodies that are identical (and will always remain identical when you modify the model)?  If so, assembly modeling would be better.

 Mark Randa at http://opendesignproject.org/ shows some examples of using iLogic with multibody parts.

 

We could provide more support for multibody modeling in iLogic. I have attached an external rule that acts like an add-in to iLogic (in Inventor 2011) and gives you functions dedicated to solid bodies.  It allows you to suppress or unsuppress a body by name without specifying the features.  There are functions to change the visibility and color of bodies.

  

To allow iLogic to find this external rule file (SolidBodies.vb), you can either:

- Save it to your project workspace folder. 

- Or save it to another directory, and then tell iLogic where the directory is using the Tools -> Options -> iLogic Configuration command.

 

Here's a sample rule that uses the solid body functions.   In this example, Solid1_on and Solid2_Visible are True/False parameters.  Solid1_Color is a Text parameter.

AddVbFile "SolidBodies.vb"

Dim bodies as New SolidBodies(ThisDoc.Document)

bodies.BodyIsActive("Solid1") = Solid1_on
bodies.Body("Solid2").Visible = Solid2_Visible

If (Solid1_on) Then
  bodies.Body("Solid1").Color = Solid1_Color
End If

 



Mike Deck
Software Developer
DLS - Mechanical Design
Autodesk, Inc.

*Expert Elite*
mcgyvr
Posts: 6,382
Registered: ‎12-01-2004
Message 4 of 11 (942 Views)

Re: Best iLogic workflow?

03-11-2011 01:31 PM in reply to: wseaston

Have you though about just using iparts. No "complicated" coding required to suppress features/modify dims,etc..

Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

Down with IDW/DWG files..... Long live 3D PMI... Hurry it up already..
-------------------------------------------------------------------------------------
2014 Product Design Suite Ultimate
Windows 7 64 bit
Core i7 4820k processor (OC'd to 4.4Ghz), Nvidia GTX 770, 16G RAM


Distinguished Contributor
Posts: 204
Registered: ‎03-04-2009
Message 5 of 11 (914 Views)

Re: Best iLogic workflow?

03-14-2011 12:10 AM in reply to: MjDeck

Thanks for your reply. I would estimate that the average product which I am developing the iLogic setup for constists of about 6 part files. There is generally only one  part which doesn't change much but it does change size. No parts remain identical.

 

So far I have created a multibody ipt which seems to work so far but it doesn't cover the full range of design variations as it is starting to get a little complicated for me do add the new variations and rules to control them. I will try to investigate the assembly method as it may be easier to control all the variations we have??

 

Thanks for the external rule. My current rules require suppression of each feature of a body resulting a a fairly long rule just to suppress one body. Does your external rule actually suppress the body or just hide it? Will the mass property change based on the suppression stated of the bodies?

 

Cheers.

Distinguished Contributor
Posts: 204
Registered: ‎03-04-2009
Message 6 of 11 (911 Views)

Re: Best iLogic workflow?

03-14-2011 12:19 AM in reply to: mcgyvr

Hi there. I have used iParts and iAssemblies for quite some time now. I am trying to develop an iLogic part for our product designers to help them carry out the design task quicker and to a set standards as far as possible. I have found that iParts and iAssemblies take getting used to and so far I am the only CAD user who has adopted iPart and iAssembly modeling for some of the work I do in machine design. I think this indicates to some extent the fact that these methods are not "simple" enough to attract the other users. I have also found it quite difficult to get my head around the way in which vault deals with iParts and iAssemblies.

 

The hard part for me is creating a solid iLogic master part or assembly. Once that has been done, the job of the product designer should be "easy". They would simply use the master iLogic part or assembly, save a copy and specify the requirements, sizes, etc.

 

Thanks for your comments and suggestions.

Distinguished Contributor
Posts: 204
Registered: ‎03-04-2009
Message 7 of 11 (877 Views)

Re: Best iLogic workflow?

03-14-2011 06:54 AM in reply to: wseaston

Well I have completed what seems to be a working iLogic part. This is not the more complex Multibody part discussed earlier in this thread.

 

Instead for now I have created an iLogic part for one of the ipt's which end up in our product assembly.

 

I have a long way to go but pleased that I was at least able to get one part working...:smileyhappy:

 

http://www.screencast.com/t/Upd2Nual

Employee
Posts: 948
Registered: ‎02-24-2009
Message 8 of 11 (874 Views)

Re: Best iLogic workflow?

03-14-2011 06:58 AM in reply to: wseaston

Yes, the external rule (SolidBodies.vb) can be used to suppress a body.  It does this by suppressing all the features that contribute to the body.  If you have features that are affect multiple bodies, that method won't work so well.  But if everything is separate then it should be as effective as suppressing individual features, and it makes for simpler rule code.  The effect on the mass properties will be the same as suppressing the features.

Here's sample code for body suppression:

bodies.BodyIsActive("Solid1") = Solid1_on

 



Mike Deck
Software Developer
DLS - Mechanical Design
Autodesk, Inc.

Valued Contributor
GavoGarmo
Posts: 77
Registered: ‎10-10-2012
Message 9 of 11 (576 Views)

Re: Best iLogic workflow?

10-10-2012 05:49 AM in reply to: MjDeck

Will SolidBodies.vb work with Inventor 2013?

 

It seems like it could be the answer to my problem:

 

I have a part with many solid bodies, all of which have one of 4 prefixes. Softwood,Softshell,Celufoam,Canexcel.

 

I would like to control the visibility of each group of bodies through a parameter 'CladdingSelection' =1,2,3,4 ect...

 

I have iLogic code that names newly created solids (created with the split tool) with the relevant prefix, depending on the value of the 'CladdingSelection' parameter at the time of creation.

 

It seems I like need the code to read the first 8 characters of the name of each body, and activate visibility according to the vaule of the parameter.

 

I'm very stuck, so any help would be amazing.

 

Thanks

 

GavoGarmo

 

Employee
Posts: 948
Registered: ‎02-24-2009
Message 10 of 11 (549 Views)

Re: Best iLogic workflow?

10-10-2012 11:40 AM in reply to: GavoGarmo

SolidBodies.vb will work in Inventor 2013.  But it doesn't provide a way to iterate over the bodies to find names that begin with a given word.
 But this is easy to do with the API.  I attached a rule that you should be able to use by itself, or add it to one of your existing rules.



Mike Deck
Software Developer
DLS - Mechanical Design
Autodesk, Inc.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube