libredwg
libredwg copied to clipboard
dwgadd: set table by name
In doc is construct like:
line (0 0 0) (100 0 100)
line.layer = "1"
But output is:
ERROR: dwg_dynapi_entity_set_value: Invalid LINE field layer
in dwgadd -v9 --as r11 -o line.dwg foo.dwgadd
you cannot reference a layer, which does not exist yet. so the error is correct
you cannot reference a layer, which does not exist yet. so the error is correct
ok, that's a good point. Thanks
But when I have:
layer "foo"
line (0 0 0) (100 0 100)
line.layer = "foo"
The layer was created and error is same
this does not work yet, as the layer must be a handle, not a name. with r11 even a number (index) only. maybe we should accept table names also
There is another use case in R_1_4, where is a table of indexed layers. When I set:
line (0 0 0) (100 0 100)
line.layer = "2"
This could be layer index = 2 automatically.
This is up to r12, and should work already