Thanks in advance for the time invested!
I would like to transform a list of points of type Autodesk.DesignScript.Geometry.Point
into a list of points of type Autodesk.Revit.DB.Point.
CUSTOM_automaticRoomTags(temp).dyn (86.9 KB)
I have set up a PythonScript to do this, which is to transform the items of the lists into Revit points in a loop and then run out an articulated list.
I wanted to accomplish that with this script:
import clr clr.AddReference('ProtoGeometry') from Autodesk.DesignScript import * clr.AddReference("RevitAPI") from Autodesk.Revit.DB import * clr.AddReference("RevitAPIUI") from Autodesk.Revit.UI import * clr.AddReference("RevitServices") from RevitServices import * clr.AddReference("RevitNodes") import Revit clr.ImportExtensions(Revit.Elements) clr.ImportExtensions(Revit.GeometryConversion) x = IN y = IN z = IN RESULT =  for a in range(len(x)): for b in range(len(x[a])): p = XYZ(x[a][b], y[a][b], z[a][b]).ToPoint() RESULT.append(p) OUT = RESULT
But the generated output items are of type:
Autodesk.DesignScript.Geometry.Point, where the coordinates are represented /3,281.
I would have expected the following output:
List items of type: Autodesk.Revit.DB.Point
Point coordinates: value * 3.281 for feet
I think I have something mixed up in the order of the commands?
The first node (GetViewsByType) is from the package “Modelical”.