-
Hey, Using layers = dwg_get_layers(&dwg);, I have retrieved all the layers. The user can select the layers they want to convert. After the user selects the layers, I need to sort the entities according to their layer names. This way, only the entities on the user-selected layers will be saved. However, I don't know how to retrieve the layer name of an entity. I attempted the following approach:
However, I keep encountering a segmentation fault (core dumped) every time I try to access the value in layer->name. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
See programs/dwglayers.c |
Beta Was this translation helpful? Give feedback.
See programs/dwglayers.c