Grasshopper: datatype of input geometry

Hi All,

I am creating this Grasshopper procedure where it will, depending on the incoming geometry type, do a different thing.

If input is a Point do A.
If input is a Curve do B.

My attempt in using code in a python block was unsuccesfull, since for both cases the type “Guid” will be found.
Anyone who knows how to solve this?

GH-file is in the appendix.


GH_check_geometry_type.gh (6.4 KB)

Hi,

You can set the type hint for the x-input to “No Type Hint” and than do the following:

GH_check_geometry_type-re.gh (4.7 KB)

1 Like