I have an assembly that builds itself with a series of iLogic rules from a user input via a form, selecting from lots of components. Each component has about 10 different sizes. Currently the assembly places the component and sends the required size to a component and the component has a rule with all the measurements for each model size. The assembly then constrains the component to other components with face entities.
I have been exploring the idea of creating the components as iParts as it opens up the idea of saving entire model states without a new saved model state with different sizes affecting first saved model state. This is a good idea, however when I generate the iPart files it doesn't carry the face entities. These are essential for the assembly constraining stage. Is there anyway to add face entity names to the iPart member models, or have them carried from the master file?
This is possible see this article here. The reason you can't see the entities is that there only stored in the factory file and not the member file. What needs to be done is to get the named face in the factory, loop over the member faces and compare the face.ReferenceEntity to the face. When they match you have the correct face. And can get the assembly proxy and away you go.
This unfortunately falls down if you make assembly level modifications to the face as now you have to loop through assembly faces, match the fragmented face.nativeobject to the factory face and back to the member face. It gets complicated quickly. I can share this portion if you will need that.
Can't find what you're looking for? Ask the community or share your knowledge.