Adding content center part with custom lenght and variant with iLogic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I have a question regarding adding a custom content center part with iLogic.
First I want to say, that I am not very familiar with iLogic. Just startet working with it, so there might be a obvious solution for this but during my research I could not find something that is working for me.
For my application I need to get profiles from the cc, which I want to do with iLogic.
When manually placing the part from the cc the variant of the profile (Schwer, Eco or Leicht) has to be selected and the lenght needs to be typed in. (Schwer and 1mm is always pre selected when clicking the part)
Looks like this:
The familiy in the cc looks like this:
Basically for now, just to understand how it might work, I want the iLogic rule to do the same thing. Open a window in which the user can select the variant and type in the lenght. I just cant figure out, what command to use to place the profile. I would guess the Components.AddContentCenterPart() is the right one. But where do I insert the selected variant and the value for lenght in this command?
I know its possible to create a family for each of the three variants with all the lenghts I need. But I wonder if its possbile to get it to work with the family I created.
I am using Inventor 2023.
I hope someone can give me an advise how to do it.
Thank you!