Is there a way to convert line to curve?

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.

2 Likes

@Nick_Boyts

i got it from here

it looks right

I’ve seen this question here a few times
:slight_smile:

1 Like

yes i followed them it does not work… :wink: @Marcel_Rijsmus

f.e.

obviously not the post i saw, let me check

@Marcel_Rijsmus , @Nick_Boyts

here what i try


PyWallToLayer.dyn (58.4 KB)

apparently i forgot that the method i had in mind, stopped working in Dynamo 2.12

@Marcel_Rijsmus

yes …

i got this

:wink:

Check the level input - you appear to be proving a string instead of a level element.

2 Likes

@jacob.small ,

how can you know that when dynamo is complaning about the geometry :slight_smile:

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.

1 Like

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!!


Line to Polycurve.dyn (12.1 KB)

@gilberto.arechigaiba ,

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. :wink:

3 Likes