Transfer properties from host to point based element

Transfer properties from host to point based element

jcupps
Explorer Explorer
308 Views
1 Reply
Message 1 of 2

Transfer properties from host to point based element

jcupps
Explorer
Explorer

Hello, 

I have a parameter in various families that are of either the structural framing or structural connection categories. I am using them to create wall panels. For production we need all members of the panel to be associated to each other and we do this through a parameter that each family has called "FM HostMemberSortMark", if the value of that parameter matches the items are in the same panel. Because of programing the structural framing families automatically populate this value from the basic wall family used which holds the value. However the structural connection families do not. The structural connections are placed on stud families that have this parameter filled out. I have been told to create a second property in the structural connection families, that is a Family > Instance parameter called "#FM HostMemberSortMark"  where the hashtag/pound sign is meant to read the stud families "FM HostMemberSortMark" and automatically fill out the structural connections "#FM HostMemberSortMark" value when the component is inserted and hosted to the stud, however this is not does not happen, the # parameter value remains empty. Does anyone have an suggestions or types on how to use this # named parameter to transfer parameter values from one element to the next? Or another suggestion to automatically populate this information in the structural connections when hosted to the structural framing?

Thank you! 

0 Likes
309 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

Before discussing any implementation details, a fundamental question, please:

 

Afaict, you would like to duplicate certain information in your model, copying it from properties on one specific element A to lots of other elements B that have a certain relationship to the first.

 

In principle, duplicating information is a waste of space, time and effort and should be avoided.

 

Why not simply implement code to determine the relationship from A to B (or, probably better, from B to A) reliably and efficiently? Then you can use that to retrieve the original properties and information any time you require.

  

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