Hello,
how can i covert lines to curves?
A Line
is a type of Curve
, so that shouldn’t be the issue. It also says the level
input expects an element but was called with a string.
I’ve seen this question here a few times
obviously not the post i saw, let me check
apparently i forgot that the method i had in mind, stopped working in Dynamo 2.12
Check the level input - you appear to be proving a string instead of a level element.
how can you know that when dynamo is complaning about the geometry
the level was uncorrect and the typename was not set correct
As @Nick_Boyts noted, a line is a type of Curve - it has object inheritance of all things curve. Plus I can confirm they work for this node.
However a String is not a Level, and it doesn’t inherit the class so you might as well be giving the node an antelope.
Amigo @Draxl_Andreas buenas. quite enoying to use the correct type of element but every object must have his own type of propertys i think, here is an alternative that i use, to change betwen types of curves!!
it was to late yesterday… today i have a clear view to the topic… i had just the wrong datatype. The script works well right now.