I am trying to use Springs.Element.SetLocation to move a Reference Point in a conceptual mass. You can see my graph in the attached picture. I think I have everything set up correctly but the RP does not move.
Also I know that in 1.2 there is a new built in node for moving Revit objects but I am stuck with 1.1 for now
I tried setting the Set Location with a point instead of a vector but it still does not work. I can see the dynamo point moving but the Revit point is still in same spot.
Iām having similar issues. Afraid i donāt work much in the massing environment so I wonāt be of much help here. Maybe try re-building the mass by importing points, filtering the one you want to move out of the list, adding the new point, and recreating the geometry?
The problem is I am trying to control the geometry indefinitely. Right now if I close out of Revit Dynamo losses all association with the model. Then when I try and update it I need to start all over again.
This might be happening because the point is hosted on a line or a plane and youāre trying to move it off its associated plane. In that case Revit will just ignore the command.
Reference points can move off of the plane though. They are hosted but should be able to move anywhere. In any cased though it wont move in any direction even across the planes surface. Any thoughts?
Had a thought last night about this and ran a little experiment on my lunch break. I thought that it might have been due to Revit preventing people from editing an in-place mass without opening the āedit in-placeā command. Dynamo wonāt run much of anything for me when I start that command. Sadly itās also non-responsive when I was in an conceptual mass family.
So i tried wiring in an element.location node to the reference point and found some odd results - namely iām getting a FALSE result for āHas Locationā
This occurs even though the location is clearly listed in the watch node for the element and it clearly has a point as we can create geometry for and by itā¦ I would water that these problems are linked. Sadly my python and API knowledge arenāt advanced enough for me to confirm in the time I had available, and likely are nowhere near far enough along to fix the issue at hand.
Had a quick look and yes, reference points do not have a location property. Instead they are controlled by a coordinateSystem/Position property that can be set through the apiā¦gotta love Revit
hi guys can you share the python script if you already made for this ( I want to move a reference point in massing environment)
or let me know if there is any node for like set element location by coordinate system
I tried to give an example code which shows you how to do thingsā¦ you can customise it as you like, e.g. if you want to input X values as well, you can just make a new input
xValuesList = IN[2]
then you can amend your zipā¦
for point, newZLocation in zip(pointsList, zValuesList, xValuesList)
and use your X valuesā¦
newLocation = XYZ(newXLocation, locationY, newZLocation)
Cheers,
Mark
Edit: I think that you can feed a list of points and use .ToXYZ() to convert them to a Revit element