Python use Element.Solids and Geometry.Intersect

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

actually i am failing to include Element.Solids in my code.
anyone solved that?

my code is like:


import clr
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

Please post your dyn and/or formatted code so we can review. Hard to fix what we can’t see.

@JacobSmall ike that?

Copy all the text out of your python code, and paste it into a new post, using the </> button, which is next to the upload button.

not too much a difference :wink: