« Connector Orientation | Main | Object Relationships »

March 05, 2010

Comments

I have adapted this code to extract nested family instances and it works beautifully. However, I have a new problem.

How can I extract the nested family instances if the quantity and position of the nested family instances is different for each instance of the parent family in the project.

Example: I have a lighting fixture family (track light) that contains nested lighting fixture family instances (each can-light on the track). The nested instances are part of an array which is defined by the parent instance in the project. Each parent instance can have a different number of nested instances.

http://docs.autodesk.com/REVIT/2010/ENU/Revit%20Architecture%202010%20Users%20Guide/RAC/index.html?url=WS73099cc142f487553b93539f117a2602bd5-62b4.htm,topicNumber=d0e97197

Initially I thought that the FamilyInstance.SubComponents property would work for this, however it is always null! When does the SubComponents property return anything? The API documentation is very sparse.

Any ideas on how to access nested family instances from the parent instance?

Dear Joel,

First of all, I am glad to hear that it works well so far.

I have described a few other aspects of nested family instances that may be of use to you:

http://thebuildingcoder.typepad.com/blog/2009/05/nested-instance-geometry.html

http://thebuildingcoder.typepad.com/blog/2009/11/nested-family.html

http://thebuildingcoder.typepad.com/blog/2010/02/nested-family-instance.html

I am also checking for more info on the SubComponents property for you.

Cheers, Jeremy.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource