Programmatically display custom families in property palette to allow user to choose and create an instance

Programmatically display custom families in property palette to allow user to choose and create an instance

jay.lei
Participant Participant
450 Views
3 Replies
Message 1 of 4

Programmatically display custom families in property palette to allow user to choose and create an instance

jay.lei
Participant
Participant

Hi, I would like to know if it is possible to programmatically display some of my own custom families in the "property" palette to allow the user to choose a family and place an instance in the document.  I already learned how to programmatically load families into the document, but I would like to display them in the property palette to allow the user to choose.  Just like what the "Mechanical Equipment" button in the "System" ribbon does.  The only difference is that I would like to display my own families in the "property palette", not mechanical equipment.

 

I'm grateful for any help here.  

451 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni

The built-in Revit property palette only displays Revit element properties, afaik. I don't think you have any direct programmatic access to the palette itself. You could implement your own modeless floating family selection palette, though. Such a task was discussed right here just yesterday:

  

https://forums.autodesk.com/t5/revit-api-forum/user-defined-family-palette/td-p/11373330

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 4

mhannonQ65N2
Collaborator
Collaborator

I did a quick test with placing a family by calling PostRequestForElementTypePlacement and found that I could edit the instance's properties before placing it. So you don't need to do anything specific to make Revit use the properties pallet.

0 Likes
Message 4 of 4

jay.lei
Participant
Participant

Thanks a lot!  I will try this method.  

0 Likes