@Moonpick wrote:
Hello all,
I am new to GH Development, coming from other CAD horizons, I am still in discovering modus, but it’s cool I enjoy the tool so far.
And here comes my first question to the forum, I feel a bit sorry about it as it sounds quite trivial, but I couldn’t find any answer here:
I just try to check the type of an object given as a GeometryBase in a C# Script.
The function in the component requires a NurbsSurface or a NurbsCurve, that’s why I set the input typ to GeometryBase and check afterward the real type.
To do that I basicaly test if (inputGeometrie is NurbsSurface) but it always gives false (altough giving a nurbssurface to the component of course). I saw that the given NurbsSurface is somehow seen by the component as a Brep which I can’t cast back into a NurbsSurface.
What disturbs me at most, is that the exact same code with the exact same use case works as expected, if used in form of a C# plug-in (and not a script). And unfortunatly I have to deliver a script. How can it be so?Any help appreciated! Thanks.
Posts: 4
Participants: 2