I am having an confusing Error in my GH and I can’t figure out why. Can anybody help me please?
20190320shark rebuild.gh (55.1 KB)
My script:OffsetSrf = rs.OffsetSurface(Srf,Thicken,None,False,True)<a class=“attachment”
Here is the Test Result in the PythonScript:
Runtime error (ValueErrorException): unable to convert None into Brep geometry
line 981, in coercebrep, “C:\Users\anvae\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\utility.py”
line 2094, in OffsetSurface, “C:\Users\anvae\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\surface.py”
line 12, in script<a class=“attachment”
This means that your
Srf variable is not a surface or brep, it is
None (i.e. it is nothing/null). So backtrack upstream within your code/definition to where this surface comes from, and try to figure out why it is
None (properly the method/component that generated it failed and returned a null/none).
Edit: Make sure to internalise your geometry inputs in your definition, and also format your code in your post to make it more readable. Both helps tremendously with troubleshooting/debugging .
How can I “internalise my geometry inputs in my definition”?
Runtime error (ValueErrorException): unable to convert 4540c658-859d-4b3c-aa38-1cdfdab5c53c into Brep geometry
Is “4540c658-859d-4b3c-aa38-1cdfdab5c53c” a object ID？
I don’t know how to use it as a Brep geometry to do something like this: rs.IntersectBreps(curve,surface)