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: 

Family type paramiter as a reference in a family.

1 REPLY 1
Reply
Message 1 of 2
CRJFusco
227 Views, 1 Reply

Family type paramiter as a reference in a family.

CRJFusco
Enthusiast
Enthusiast

I am trying to make a family with a changing steel angle. I want to have a few dimensions to change/update depending on the angle size. I have nested in an angle family with a changing profile extrusion to adjust its shape. When I make a family type paramiter it shows up as L-(zero) : L6X4X1/2 with only the L6X4X1/2 differing between types. Another type is L-(zero) : L4X3X1/4. That information would I use to reference the changed type. The parameter I have named as Angle_Type.

0 Likes

Family type paramiter as a reference in a family.

I am trying to make a family with a changing steel angle. I want to have a few dimensions to change/update depending on the angle size. I have nested in an angle family with a changing profile extrusion to adjust its shape. When I make a family type paramiter it shows up as L-(zero) : L6X4X1/2 with only the L6X4X1/2 differing between types. Another type is L-(zero) : L4X3X1/4. That information would I use to reference the changed type. The parameter I have named as Angle_Type.

1 REPLY 1
Message 2 of 2
jeremy_tammik
in reply to: CRJFusco

jeremy_tammik
Autodesk
Autodesk

I would assume that an ElementId parameter data type would be appropriate.

 

The safest way to find out is to set up the required family definition manually through the user interface first and ensure that is all works as expected. Once that is complete, you can analyse the result and see how to create it programmatically. This approach is described in the worksop on the Key Concepts of the Family Editor:

 

https://thebuildingcoder.typepad.com/blog/2013/06/key-concepts-of-the-family-editor.html

 

Other hints on defining families and the Family API are provided in The Building Coder topic group:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.25.1

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes

I would assume that an ElementId parameter data type would be appropriate.

 

The safest way to find out is to set up the required family definition manually through the user interface first and ensure that is all works as expected. Once that is complete, you can analyse the result and see how to create it programmatically. This approach is described in the worksop on the Key Concepts of the Family Editor:

 

https://thebuildingcoder.typepad.com/blog/2013/06/key-concepts-of-the-family-editor.html

 

Other hints on defining families and the Family API are provided in The Building Coder topic group:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.25.1

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open

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

Post to forums  

Autodesk Design & Make Report