Family type paramiter as a reference in a family.

Family type paramiter as a reference in a family.

CRJFusco
Enthusiast Enthusiast
436 Views
1 Reply
Message 1 of 2

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
437 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

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