Explode FamilyInstance. To get all the components of the family in project.

Anonymous

Explode FamilyInstance. To get all the components of the family in project.

Anonymous
Not applicable

I have inserted families of structures into projects.

I'm trying to exploit each FamilyInstance to get all the components of the family to remain as FamiliInstances in the project and to be able to edit them individually.

It is a final process that we perform in a development to clean and facilitate the editing and elimination of certain overlapping components.

I have not been able to remove the nested FamiliInstances and have started to create new ones. But I see that I have problems.

You can "Explode" a FamilyInstance in some way that you do not need to re-insert and configure.

0 Likes
Reply
Accepted solutions (1)
2,275 Views
2 Replies
Replies (2)

Anonymous
Not applicable

I have already managed to exploit a familyinstance by following the process below:

- Select Original FamilyInstance
- Find the Ids from all the FamilyInstances that it contains with "GetSubComponentIds"
- Iterate with each id to catch each original FamilyInstance (fOri)
- Find the insertion point of "fOri"
- Insert each new FamilyInstance with "NewFamilyInstance Method (fOri.Origin, FamilySymbol, fOri.Orientation, Element, StructuralType)" -> fFin
- Copy all parameters from fOri to fFin
- Move and rotate fFin to the point of insertion and rotation of fOri.

** The problem I have with the elements that have Symmetries, since I can not get them to be positioned in their place, twist and correct orientation. Can someone help me with this?

0 Likes

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Alberto,

 

Thank you for your query and congratulations on the progress you have made so far.

 

What you have achieved sounds very good indeed, if that is what suits your needs.

 

For the elements with symmetries, I can imagine a number of factors that need checking: the transform may include mirroring and rotation, FacingFlipped, HandFlipped, etc.

 

It is very hard to say anything as long as the exact details of your situation remain vague.

 

The best way to nail down a solution is often to create a reproducible case to show people the exact context and code that you have so far, and exactly where you encounter an issue with it:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b

 

I hope this helps.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes