Hi, I wanna use the Node of DirectShape.ByMesh by python script with the same inputs and also output.
Why don’t you use the same Custom node?
I need it as a python script, not custom node
@MAIA17112 This worked for me. See if it helps you:
import clr
clr.AddReference("RevitNodes")
import Revit
from Revit.Elements import *
mesh = IN[0]
category = Revit.Elements.Category.ByName(IN[1])
material = IN[2]
name = IN[3]
OUT = Revit.Elements.DirectShape.ByMesh(mesh, category, material, name)
2 Likes
I appreciate that thank you so much ^^