I am trying to use Geometry.Intersect in my python code.
ending in an error:
type error: expected Geometry, got Solid
my code ran like:
result = Geometry.Intersect(ASolid,BSolid)
to keep things easy i was thinking to use
Element.Solids
actually i am failing to include Element.Solids in my code.
anyone solved that?
my code is like:
Elements.Element.Solids(element)
import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *
Awall = UnwrapElement(IN[0])
Bwall = UnwrapElement(IN[1])
Asolid = Elements.Element.Solids(Awall)
Bsolid = Elements.Element.Solids(Bwall)
result = Geometry.Intersect(Asolid, Bsolid)
OUT = result