I am trying to get the geometry of structural framing objects trought a python script, that sorts the objects by the relative position.
the problem is, I am getting this message:
Warning: One or more geometries have failed to convert due to this error: The call is ambiguous between the following methods or properties: ‘Revit.GeometryConversion.GeometryObjectConverter.Transform(System.Collections.Generic.IEnumerable<Autodesk.DesignScript.Geometry.Geometry>, Autodesk.DesignScript.Geometry.CoordinateSystem)’ and ‘Revit.GeometryConversion.GeometryObjectConverter.Transform(Autodesk.DesignScript.Geometry.Geometry, Autodesk.DesignScript.Geometry.CoordinateSystem)’
The script still works, but it always returns completed with warnings.
Wich method is the correct one? And how do I chose since both are from the same “Autodesk.DesignScript.Geometry.Geometry” class
my script is:
# Enable Python support and load DesignScript library import clr clr.AddReference('ProtoGeometry') from Autodesk.DesignScript.Geometry import * # The inputs to this node will be stored as a list in the IN variables. dataEnteringNode = IN def takeThird(elem): return elem studs=IN loc=IN m= i=0 for p in studs: s= j=0 for e in p: s.append([e, loc[i][j], loc[i][j].X]) j+=1 i+=1 s.sort(key=takeThird) m.append(s) # Place your code below this line re= for l in m: r= for n in l: r.append(n) re.append(r) re2= for l in m: r= for n in l: r.append(n.Geometry()) re2.append(r) # Assign your output to the OUT variable. OUT = re, re2