Delete one layer as XML

Discuss and ask questions about CADEditorX and XML API.

Moderators: admin, support, SDS

Post Reply
agvs
Posts: 30
Joined: 16 Jun 2016, 11:10

Delete one layer as XML

Post by agvs » 19 Apr 2017, 10:25

Hello,
I'd like to delete one layer.

For example,
First, I make A, B, C, and D layer.
And I work with A, B, C, and D layer.
Last, I'd like to delete only C layer.

Let me know deleting one layer as Xml.
Thanks,

support
Posts: 2811
Joined: 30 Mar 2005, 11:36
Contact:

Re: Delete one layer as XML

Post by support » 19 Apr 2017, 18:18

Hello,

To delete a certain layer and all objects on this layer, use the following XML code:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<cadsofttools version="2">
    <select Layer="C" Marker="True"/>       
    <delete/>
    <select PathName="TABLES;LAYER;C;" Marker="False"/>   
    <delete/>  
</cadsofttools>
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply