Deleting a layer(s) doesn't prevent creating a new one, even with a same name. Please try the following code to create a new layer:
- Code: Select all
TsgDXFLayer* layer = new TsgDXFLayer();
layer->Name = "layer_name";
FSortEntList is the list of different objects that filled automatically. It's marked with private modifier that makes it not recommended for using. A new layer must be created even if FSortEntList contains an old one with a same name.
Is any error appears on unsuccessful creating attempt?