Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Suppress a part in an sub assembly through ilogic

Simon.robertsX5M9D
Contributor

Suppress a part in an sub assembly through ilogic

Simon.robertsX5M9D
Contributor
Contributor

Hi peeps

 

Question

 

Trying to find a way to suppress a part/s within a sub assemblies via top level using ilogic

 

is it possible please see the snip below

 

0 Likes
Reply
825 Views
5 Replies
Replies (5)

johnsonshiue
Community Manager
Community Manager

Hi Simon,

 

Yes, this is doable. Here is what you need to do. Create a custom LOD and activate the LOD. Then in the iLogic dialog, right-click on the occurrence you like to suppress -> Capture Current State. It will be set to True by default. Simply set it to False. The occurrence will be suppressed.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes

Simon.robertsX5M9D
Contributor
Contributor

Ok thanks very much 

 

another question ...is it possible to delete all the parts under a folder please see the snip attached

 

and how do you create a custom LOD please

0 Likes

johnsonshiue
Community Manager
Community Manager

Hi Simon,

 

In an assembly, the browser folder is just a cosmetic organizer. It does not alter the structure. To delete the components, you do need to open the assembly file and delete (iLogic rule) them one by one.

Creating custom LOD is pretty straightforward. You just need to right-click on LOD folder in the browser -> New.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes

Simon.robertsX5M9D
Contributor
Contributor

Ok thanks that answers a few questions :slightly_smiling_face:

 

Right i have another question , this maybe a little confusing but i like to have a excel spreadsheet which has the list of items which i want to delete from the assembly and sub assemblies....that way i can simple update the list to delete the correct parts from the assembly and not fix it in the code...hopefully that makes sense?

 

and also is there a way to read in the assembly names as a string so it not fixed in the code too...

 

thanks

 

 

0 Likes

johnsonshiue
Community Manager
Community Manager

Hi Simon,

 

I am not an iLogic expert but I think it should be doable. The Excel table (or a text file) contains static strings. Then the iLogic rule read it and assign it a text parameter, which can be the file name within the rule.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes