Hi everyone,
I’m finding way to get location of wall’ s corecenter line.
Doesn’t Dynamo have node for it?
Thank you.
Hi everyone,
I’m finding way to get location of wall’ s corecenter line.
Doesn’t Dynamo have node for it?
Thank you.
Hi @Ke2king,
You can retrieve the location of the CoreCenter Line like this :
I think the Get Wall Layer Location Lines
of Bakery package can also be found here :
@Ke2king, or you can try this;
import clr
clr.AddReference('RevitAPI')
clr.AddReference('RevitNodes')
# for geometry conversion
import Revit
clr.ImportExtensions(Revit.GeometryConversion)
from Autodesk.Revit.DB import *
# wall input
walls = IN[0]
# make list
if isinstance(walls,list):
walls = UnwrapElement(walls)
else:
walls = UnwrapElement([walls])
#output
centerLines = []
# loop wall
for wall in walls:
# collect center line
centerLines.append(wall.Location.Curve.ToProtoType(True))
OUT = centerLines
The reuslt of your script is identical to the Element.GetLocation
node.
I’m not sure that’s what OP is looking for.
@Alban_de_Chasteigner thanks mate , good to know OOTB has a node for that.
Hi @Ke2king ,
I would suggest something similar to what Alban said, minus the bakery node. I’ve had several instances of it not actualy returning the correct exterior/interior core lines.
Thank you for your cooperation.
That’s what i wanna do.
But can you check the following?
I think that Get Wall Layer Location Lines isn’t correct.
I don’t know why it is different after copying from the Bakery node.
After copying it’s correct.
↓NG
↓OK
Thank you for your help.
And it’s solution.
Thank you again.
Thank you everyone!!
any chance to report those to shared parameters?
Sorry, I don’t understand your question exactly.
However, you may be able to use “Element.SetParameterByName” node.
Thanks.