How to save constraint for replication in other assembly with same parts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I want to save a constraint between two parts/assemblies in oder to replicate this constraint in another assembly containing the same parts in the future.
Up to now, I did it by saving the transientkey of both entities (eg planes of the parts) and the constraint parameters (offset, ...). To insert the constraint again I just bind the entities from the surface body and create the constraint.
Now with assemblies and nested assemblies it gets more complicated because there is not only one surface body. Also I need to implement a lot of edge cases to cover all constraint types. Do you have any other ideas?
- One idea of mine was to just "save" the complete object of the constraint and load it again, exchange to references to the correct occurences and add it to the assembly. Not sure if it is possible to save it.
- Another idea was to resolve the way to the surface body. Either by indexing them somehow or by using the name of the surface body. Sadly there can be two surface bodies with the same name in nested assemblies.
- Also i tried using references instead of transientkeys but I was not able to make it work with C#
Thanks for all ideas!