Ilogic/derived part/base model

Ilogic/derived part/base model

JamieSENG
Advocate Advocate
493 Views
1 Reply
Message 1 of 2

Ilogic/derived part/base model

JamieSENG
Advocate
Advocate
Hi all,

Sometimes when we use derived parts we place the derived part and its base model into an assembly setting it to phantom. This way on the b.o.m it shows the base model as the first opp and the derived part as the second opp.

Is there a way using ilogic while in the derived part to open up a new assembly and automatically place both the base model and derived part into it.

If it is possible then this would allow me create a new assembly template preconfigured i.e. set to phantom.

Any ideas will be appreciated. Thanks in advance.
0 Likes
494 Views
1 Reply
Reply (1)
Message 2 of 2

wayne.brill
Collaborator
Collaborator

Hi Jamie,

 

The Inventor API should be able to do what you describe. I would try this from VBA to get code that does what you need. The VBA MoldBaseSample()   in the Programming help could be a starting point. Here is the description of this example:

 

>> >>

This example used is a simple case of a part subtracted from a mold. To simplify setup, the program creates the parts representing the part and the mold. It then uses derived parts and assemblies to scale the part and subtract it from the mold.

<< <<

 

Once you have the VBA code working you can try running it in a rule. You would need to edit it so that it was VB.NET. (Remove the Set statements for one thing) Also I am not sure if iLogic is the best way to run code that creates new documents. 

 

Thanks,

Wayne



Wayne Brill
Developer Technical Services
Autodesk Developer Network

0 Likes