Create Family runtime

Create Family runtime

devX6MRR
Contributor Contributor
2,798 Views
2 Replies
Message 1 of 3

Create Family runtime

devX6MRR
Contributor
Contributor

Hi to everyone,

it's quite difficult to explain what is my aim, but i'll try:

 

i have to create by code a generic family (it could be a cube or similar) with specific dimension (L, H, D) that will be inserted in my revit project.

I tried to refer to this article by @jeremytammik http://thebuildingcoder.typepad.com/blog/2009/08/the-revit-family-api.html#2

, but it seems it uses old Revit API and it start becoming quite hard to complete my aim.

 

At the moment i use 2017 API version.

Thanks

0 Likes
Accepted solutions (1)
2,799 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk
Accepted solution

Hi.

 

For a generic family, look at: 

 

http://thebuildingcoder.typepad.com/blog/2011/06/creating-and-inserting-an-extrusion-family.html

 

In general, for all discussions of this topic, read this:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.25

 

If you do not really need a family, just a shape in the project, using a direct shape is easier and much more efficient:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.50

 

Cheers,

 

Jeremy



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

Message 3 of 3

devX6MRR
Contributor
Contributor

Thank you @jeremytammik,

at the moment i tried the directshape solution and it fits perfectly my aim.

 

I don't know if there colud be problems in the future, but i think it will be all ok.

 

Thank you again 

Giorgio

0 Likes