Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extrusion in Adaptive Component Family

1 REPLY 1
Reply
Message 1 of 2
GeomGym
1505 Views, 1 Reply

Extrusion in Adaptive Component Family

Hi All,

 

Thanks in advance to anyone who can point in the right direction to achieve the following.

 

I've attached a .rfa with an adaptive component family (2014).  Between adaptive points 4 and 5 I've manually created an instance of the nested adaptive component family forming a profile (hosting it on the reference line) and then selected the host line and profile to create a form (extrusion).

 

How can I do the same in code from the API?  I can create and load the profile family, but I can't see appropriate methods for hosting it on the line and then creating a form.

 

Thanks in advance for assistance,

 

Jon

 

140918 adaptive component extrusion.png

Tags (2)
1 REPLY 1
Message 2 of 2
jeremytammik
in reply to: GeomGym

Dear Jon,

 

Thank you for your query.

 

I assume that you would have to create some constraints to 'host' the form on the line.

 

Have you worked through the Family API labs?

 

http://thebuildingcoder.typepad.com/blog/2009/08/the-revit-family-api.html

 

The are part of the ADN Revit API training labs:

 

 

Here is another overview of the key concepts of the family editor and how to use them programmatically:

 

 

In all these discussions, a strict basic approach for creating families is advocated:

 

  1. Plan (insertion point, parametric origin).
  2. Lay out reference planes (the bones).
  3. Add parameters.
  4. Add multiple host thickness types.
  5. Add two or more types.
  6. Flex types and host (testing procedure).
  7. Add a single level of geometry.
  8. Repeat steps 6 and 7 until you are satisfied with the results.
  9. Test in project environment (create testing project).

 

Therefore, I would assume that it will help to lay out reference planes contrained to the host line and build your form on top of that.

 

Lab 3 of the Family API labs demonstrates how that can be achieved programmatically:

 

http://thebuildingcoder.typepad.com/blog/2009/08/the-revit-family-api.html#4

 

I hope this helps.

 

Best regards,

 

Jeremy



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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community