How to delete an Ilogic part from an Ilogic assembly

How to delete an Ilogic part from an Ilogic assembly

Anonymous
Not applicable
1,280 Views
2 Replies
Message 1 of 3

How to delete an Ilogic part from an Ilogic assembly

Anonymous
Not applicable

Hi everyone, 

I hope this topic hasnt been already create.

 

I'm trying to do a simple task with Ilogic, i made researchs here and on youtube but i did not find the answer....

 

To make it simple: 

I'm looking to delete (inactive?) an Ilogic part from my Ilogic assembly using a command. It's like an option who can be part of the assemby or not ( with option or without option)

In my ILOGIC ASSEMBLY, I went into the Fx parameters , I write a new ''text paramater", using the "Add text".

I named it ''OPTION" and chose 2 texts value for the Equation " WITH" and ''EMPTY" (Empty for without option).

 

Right after that, I started a new RULES (don't have a name yet so "TEST" will be the name).

Here, I decide to create a rule to active or inactive the part whenever  the option "WITH" or "EMPTY" is set (no option= empty= no part in the assembly=super)

 

pOUR FORUM.png

 

And this is where it stop to work, I don't understand how to procede 

 

 

Could someone help me please ? 

 

 

0 Likes
1,281 Views
2 Replies
Replies (2)
Message 2 of 3

A.Acheson
Mentor
Mentor

 

When your deleting a part you can target the occurrence of the part(unique identifier which index by 1 depending on how many copies of the part you have already in the assembly).

 

 

https://forums.autodesk.com/t5/inventor-forum/ilogic-delete-occurence/td-p/3104770

 

 

And another with for loops for multiple occurrences by part number.

 

https://forums.autodesk.com/t5/inventor-customization/ilogic-delete-specific-files/td-p/6551630


Ilogic snippets are a good start in ilogic but sometimes items are missing so you then need to turn to the API help
which comes with your inventor install

 

https://inventortrenches.blogspot.com/2013/10/?m=0

 

In here there are multiple examples under samples and then choose category. Or do a target search if you know the name of the operation or object you want to work with  use this with one word searches like occurrence, balloon  or symbols.  Of course you may have to search the internet first to get the correct search phrase for the topic first 

 

 

 

 

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 3

bhavik4244
Collaborator
Collaborator

@Anonymous 

 

There are 3 ways to do this,

 

1. By controling the level of detail,

 Make a new level of detail As "iLogic"and activate it and put rule like,

 

If OPTION= "WITH" 

Component.IsActive("ComponentName") = True

Else If OPTION= "EMPTY"

Component.IsActive("ComponentName") = False

End If

 

2. By controling the visibility of components,

 

If OPTION= "WITH" 

Component.Visible("ComponentName") = True

Else If OPTION= "EMPTY"

Component.Visible("ComponentName") = False

End If

 

3. With use if Begin Mange function, this is a bit tricky but effective way to delete and place part in an assmbly.

 

https://knowledge.autodesk.com/support/inventor/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/Inventor-WhatsNew/files/GUID-80AD0392-0B8C-4A27-A9B3-7466D53999BF-htm.html

 

 

 


Bhavik Suthar
0 Likes