Use the design script .Translate method to move ends of EXISTING beams?


#1

Is there a way to use the design script .Translate method to move ends of EXISTING beams in the code block of Dynamo?.. or any other EXISTING (already drawn in Revit) element in Revit?

<span style=“line-height: 1.5em;”> </span>

For example, (consider the example below)

// create a point at x = 1, y = 2, z = 3
p = Point.ByCoordinates(1, 2, 3);
// translate the point 10 units in the x direction,
// -20 in y, and 50 in z
// p’s now position is x = 11, y = -18, z = 53
p = p.Translate(10, -20, 50);

Instead of using the p.Translate to move a dynamo generated point use (Existing Beam (drawn in Revit) end point …whatever it would be called.Translate(X,Y,Z)?

THANKS