From reading this I found that I can set my model curves to Sketch plane in my family (standard Adaptive family current) metric Meters but it does not work as i need it too when i try and code this using. Autodesk.Revit.DB.CurveElement.SetSketchPlaneAndCurve()
It says it requires 3 arguments not just 2 but all the documentation just asks for a SketchPlane and Curve as input.
They maybe other errors in the code i am still learning how to code Python in Dynamo/Revit
import clr
clr.AddReference('RevitAPI')
import Autodesk
from Autodesk.Revit.DB import *
import System
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.Elements)
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
# The inputs to this node will be stored as a list in the IN variables.
Crv = IN [0]
Skplane =IN[1]
# Place your code below this line
Autodesk.Revit.DB.CurveElement.SetSketchPlaneAndCurve(Skplane,Crv)
# Assign your output to the OUT variable.
OUT = 0
File Here:SetSketchPlaneAndCurves Error.dyn (26.0 KB)