Page 1 of 1

Change Layer outline in DXF

Posted: Wed Aug 24, 2016 9:41 pm
by slymn++
Hello

I have some dxf files.
I want to find outline and change layer in dxf

How do you make automatically?

Re: Change Layer outline in DXF

Posted: Wed Aug 24, 2016 11:44 pm
by Husky
Hi,

I don't think that I really understood what do you mean. Could you please post an example drawing and elaborate a little bit more about your plan. Thanks

Re: Change Layer outline in DXF

Posted: Mon Aug 29, 2016 6:57 am
by slymn++
Hi

Thanks for your reply

I attached a sample dxf.

I want to change layer only outside rectangle. For example
in my attached dxf, Layer of outside rectangle is HOLES. But its should be LASER Layer by script

Re: Change Layer outline in DXF

Posted: Mon Aug 29, 2016 7:25 am
by Husky
Hi slymn - thanks for the test drawing.

Ok, here is step by step how to change the Layer:

Menu / Select / (De)Select Couture,

Left Mouse click on the green couture,

Menu / View / Property Editor: look below General Properties for Layer, change the layer in the drop-down list from "Holes" to "Laser" - done.

Re: Change Layer outline in DXF

Posted: Mon Aug 29, 2016 8:12 am
by slymn++
Hi Husky

Thanks for reply

I understand. I am a programmer. I have too dxf files.
I want to make automatically.
My software generate this dxf files. After I want to change layer with QCAD

Re: Change Layer outline in DXF

Posted: Wed Sep 07, 2016 6:16 pm
by slymn++
Hi Husky

is it imposibble in QCAD?

Re: Change Layer outline in DXF

Posted: Wed Sep 07, 2016 6:24 pm
by Husky
slymn++ wrote:Hi Husky

is it imposibble in QCAD?
I don't know - I'm not a programmer. :(

Maybe Andrew can answer this question?

@Andrew: What do you think?

Re: Change Layer outline in DXF

Posted: Thu Sep 08, 2016 7:15 am
by andrew
slymn++: QCAD comes with a very complete and powerful ECMAScript (JavaScript) interface with full access to the QCAD and Qt APIs:
http://www.qcad.org/en/qcad-documentati ... -scripting

The entire QCAD user interface and all tools are at the top level implemented as scripts. If you are willing to program, the only limit to what can be done using the script interface is your imagination.