I’m trying to get the walls that picked from the lines from Revit to get the right location line from the beginning.
The code in the upper group changes the location line to core face: interior after the second run. But the problem is that the walls don’t get the core face: interior location line from the beginning. So, the wall starts with wall center line the first run and when the walls are selected. And when the script runs for the second time the wall position doesn’t change but only the location line.
How can I make the wall location line change before adding the wall? So, the wall position will be correct before adding the wall. I know you can do it in Revit but how can we do it in Dynamo?
So basically, how can the code from the upper group run before the group downwards?
Not sure what your issue is, but it sounds like you are looking to create a wall by the face of the core rather than by the centerline. I am not sure this is exposed by the API.
I know you can offset the line by the distance from the centerline of the wall to the face of the core, effectively finding the wall’s centerline as if the face aligned.
The custom node seems to have a small glitch with the height input. I don’t know what does 92902.8 refer to as unit but it seems to work (in metric units).
Hi, I’m testing this node right now. Did exactly what you did in your example, but it throws an error. Do you have any idea what might be causing it?
(snapshot attached)
P.S. The Wall constructor in the API is an overloaded function. Do you know which input represents the location line when creating a new wall?
@iliaspitserov,
try to feed simple line, not from Revit.
Share Revit and Dyn files, we’ll try to fix it.
Just checked with model lines and Element.Curves. Works fine.
thanks, Alban.
tried it now. it creates the walls, but still wouldn’t align them to the location line (uses center-line for location)
it only sets the “Location Line” parameter, while a need to actually offset the wall.
Is that how your node works? Cos as far as I understand, there’s no API method for creating a wall by an exterior/interior location line…
If I don’t find any other solution, I’ll go for the 1/2 width trick.
I am having the same issue. Is there more advise on how to use this node so that the walls are created on either the interior or exterior face on the annotation/model line? My walls are created on the centre line, every time.