Hi, I’m getting different lines returned between data shape select edges and Revit. Is there a way to incorporate revit select edges into data shapes so I can use it with dynamo player? Possibly another input into the python to add revit select curves? Or is there a different class or something I can call?
@Mostafa_El_Ayoubi
#Copyright (c) mostafa el ayoubi , 2016
#Data-Shapes www.data-shapes.net , elayoubi.mostafa@gmail.com
class uiselectedges():
def __init__(self,inputname,buttontext):
self.inputname = inputname
self.buttontext = buttontext
def __repr__(self):
return 'UI.SelectEdges input'
x = uiselectedges(IN[0],IN[1])
OUT = x
def pickedges(self, sender, event):
edges = []
for c in self.Controls:
c.Enabled = False
try:
seledge = uidoc.Selection.PickObjects(Selection.ObjectType.Edge,'')
for s in seledge:
e = uidoc.Document.GetElement(s).GetGeometryObjectFromReference(s).AsCurve().ToProtoType(True)
e.Tags.AddTag("RevitFaceReference", s)
edges.append(e)
sender.Tag = edges
except:
pass
for c in self.Controls:
c.Enabled = True
Topo_Align Edges.dyn (91.9 KB)