The objective is to create a loft surface in Rhino. I want to achieve this by using Rhino.Compute in Python. The loft is supposed to be based on two circles created using Rhino3DM. I am seeking clarification on the correct parameter types for the .CreateFromLoft() method as I think that the problem lies in the definition of the argument types.
When executing the code, an error message is received that indicates incorrect arguments have been provided. Therefore, I would like to know how I should call this method to ensure that the code works. Are there any code snippets I could use as an example?
Any help is appreciated!
Thanks for the fast response! Thanks for sharing the API guide with me. Unfortunately I already knew that website. I can see that the Brep.CreateFromLoft() method requires an IEnumerable List. As far as I know, this type of list is generally being found in C. How does one do this in Pyhton?
Thanks for the advice! I was just going to try this out. However I have problems importing from Rhino.Geometry import Curve;
Could you tell what me the prerequisites are or how to import this properly?
Your “curves” variable should be recognized as a IEnumerable List.
I think your problem is with the loft type.
You need to insert Rhino.Geometry.LoftType.Normal as your argument for loft type instead of using 0. Either use that directly or assign a vatiable to Rhino.Geometry.LoftType.Normal and use that as the loft type argument `
Its pretty dumb that the documentation tells you Rhino.Geometry.LoftType.Normal=0 but then won’t allow zero as an argument.