Suppressing sub-assembly components at the TLA using iLogic

Suppressing sub-assembly components at the TLA using iLogic

chayman
Enthusiast Enthusiast
1,056 Views
5 Replies
Message 1 of 6

Suppressing sub-assembly components at the TLA using iLogic

chayman
Enthusiast
Enthusiast

Is there a way, using iLogic, that I can suppress parts in a subassembly at the top level assembly?

 

For example, I have a TLA called "PB". It already as a LoD named "iLogic".

Within the TLA there is a subassembly called "Wheel". What I want to do is suppress an ipt called "gusset" in the "Wheel" sub-assembly but from the TLA "PB". 

 

Is this possible? 

 

0 Likes
Accepted solutions (1)
1,057 Views
5 Replies
Replies (5)
Message 2 of 6

johnsonshiue
Community Manager
Community Manager
Accepted solution

Hi! I believe it can be done in iLogic. You can set any component IsActive() at any level within TLA to false. Please note that in order to do that, you will need to create a non-Master LOD at each level, including the top level. You can create "iLogic" LOD for example. Then you need to activate this iLogic LOD. After that, you will be able to set IsActive() to false.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes
Message 3 of 6

chayman
Enthusiast
Enthusiast

Awesome, that's what did it!

 

Thanks for your help!

0 Likes
Message 4 of 6

trevorauman
Contributor
Contributor

I missed something here, can you give me a sample of the code used to reach down into the sub, it is not working for me. I have a LOD called 'iLogic' at each level. I captured the state and it says True, changed this to False and it still won't change.

0 Likes
Message 5 of 6

trevorauman
Contributor
Contributor

So this worked, for some reason, must be that i am using derived parts to create my sub-assembly.

 

Feature.IsActive("SubAssembly:1", "SubAssembly-01::SubAssemblyRef.ipt") = True

Where the SubAssemblyRef is the .ipt driving the upper assembly. I still think this is not an elegant solution as the part still shows in a BOM. Love some help if you can share your code so I can see where I am going wrong.

 

If I manually suppress the part it works nicely, so if I can do it with iLogic it would be perfect.

0 Likes
Message 6 of 6

trevorauman
Contributor
Contributor

Alright, my stupidity. The occurence of the sub assembly in my TLA was not set to the correct LOD and for this reason was not updating. don't make the same mistake I did.

0 Likes