How to get curves from a .dwg?

@c.poupin ,

grafik

i got this message, the code runs well when the string(LayerName) does not exist…

Has it to be modeled clean? i mean the .dwg to get the layer i testet this

hmmm:/

KR

Andreas