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
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:
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