Cross Part iLogic

Cross Part iLogic

Anonymous
Not applicable
757 Views
9 Replies
Message 1 of 10

Cross Part iLogic

Anonymous
Not applicable

I haven't done anything with iLogic (apart from the iLogic tutorial). I want to know if there is a way to drive the dimension of one part (with an iFeature sketch) from another part (with an iFeature sketch) using iLogic or any other method...?

 

ie, a Universal Column (extruded from an iFeature sketch), driving the Width & Length of the Base Plate...?

 

I am thinking, if I could drive/select the size of the Column, and at the same time this drives the Width & Length of the baseplate

0 Likes
758 Views
9 Replies
Replies (9)
Message 2 of 10

MjDeck
Autodesk
Autodesk

Not using iLogic:

Within the baseplate part, you could link to the parameters in the column part.  Use the Link button in the Parameters dialog.  Then use equations to connect the linked parameters to the Width and Length of the baseplate.

 

 Using iLogic:

You can create parameters at the assembly level to drive (by way of rules) parameters in both parts.  


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes
Message 3 of 10

Anonymous
Not applicable

Thanks Mike, I think what I am wanting to do my require me to learn Visual Basic.

 

Cheers

0 Likes
Message 4 of 10

MjDeck
Autodesk
Autodesk

 In the linked parameters scenario, you can use iLogic rules instead of equations to relate the parameters.  This gives you more flexibility.

 


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes
Message 5 of 10

Anonymous
Not applicable

So can you drive the table of a table driven iFeature sketch, with iLogic?

 

for e.g.  I have created table driven iFeature sketches for all Australian Structural sections,  I have also created table driven iFeature sketches for suitable End Plates, Base Plates, Haunches etc..... I position this using a master sketch "frame" . When I create 2 parts to make up an assy (say a Beam and an End Plate) , they are both created from their own Table Driven  iFeature sketch, so when I want to change the size of one part (using it's iFeature sketch table) I want to at the same time change the size of the 2nd part (using it's iFeature sketch table) ie Drive 2 seperate iFeature tables with one command.

0 Likes
Message 6 of 10

MjDeck
Autodesk
Autodesk

You can use iLogic do choose a different row (configuration) of a table driven iFeature in a part.  The iFeature.FindRow function will find a row based on given parameter values, and select that row. 

 

 It would be easier to use in rules driven by assembly parameters.  But you might be able to use it in a cross-part method with linked parameters.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes
Message 7 of 10

Anonymous
Not applicable

How do you create a new iLogic parameter? I have the code to find already created ones and change their values.

 

I looked everywhere with no luck and its hard as there is no .dll that can show a list of the options.

 

Thanks

0 Likes
Message 8 of 10

MjDeck
Autodesk
Autodesk

In Inventor 2009 and 2010, you can't use the API to create new iLogic parameters.  You have to create them manually.  (There's one workaround: you can use the iLogicAutomation function ParametersXmlLoad to load a list of parameters from an XML file that was previously exported from another model.)

 

 In Inventor 2011, you can use the Inventor API to create Text and True/False (Boolean) parameters.

 


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes
Message 9 of 10

Anonymous
Not applicable

Thanks for the quick reply.

 

We have inventor 2010 for now. is the code for loading from xml: iLogicAuto.ParametersXmlLoad

 

thanks again

0 Likes
Message 10 of 10

MjDeck
Autodesk
Autodesk

If you look in the Inventor 2010 iLogic Help contents under

 

Supplementary Information -> iLogic Automation -> interface source file

 

You will see a short description of ParametersXmlLoad.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes