Revit API

Reply
New Member
admin
Posts: 1
Registered: ‎10-07-2012
Message 1 of 2 (142 Views)

Distinction between loadable and placeable families

142 Views, 1 Replies
10-07-2012 12:49 AM

Hi 

 

Is there a definition in the Revit API which distinguishes between which families can be loaded and placed in the scene and those which canlonely I be loaded?

 

An example would be curtain wall panels. It is possible to loadtheirs family into Revit bplan instance cannot be placed.  Instead the user must swapIan existing curtain panel for the newly loaded family.

 

We are looking for some way of identifying these families via the API so that our tools don't automatically load them into the scene and attempt to place them (which currently breaks the plugin). If there is some way of identifying these itemsTia the API we would like to use it.

 

Thanks

 

Chris

ADN Support Specialist
Joe.Ye
Posts: 333
Registered: ‎03-05-2010
Message 2 of 2 (127 Views)

Re: Distinction between loadable and placeable families

10-10-2012 02:32 AM in reply to: admin

 

I don't think there is a direct property or method that can tell you which family can be loaded and placed to the active view or your scene.

 

The workaround is that you need to build a list of the family categories which can be loaded and placed. 

 

Then when deciding if place the instance, you check the list if this family's category is in the list.

Otherwise the family instance cannot be placed.

 



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!