Coordinates of families in Properties Sets

Dear forum member,

I need to create the following shared parameters for each family inserted in Revit using Dynamo:

X Coordinate
Y Coordinate
Z Coordinate

I would like these parameter values to be automatically filled in within Revit.

This requires a Revit add-in, not Dynamo.

Dynamo is a ‘run on demand’ tool, rather than a run constantly on every model update tool…

I have already created the shared parameters in Revit as numbers and set them as instance parameters. Now, I’m unsure how to automatically populate them

Hi you need to have a script that will select the required elements, work out a coordinate translation from Revit’s internal origin and the Survey Point taking into account the True North rotation. Then push the calculated coordinate values to the parameter names specified in your Shared Parameter File. The setparametervaluebyname node is a key part of the script .

It is not an automated process the script should be re-run as the model updates. It will also only process the current document. If multiple files need to be processed, that would need to be done via the API.