What is layer '0' used for?

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
cjs94
Junior Member
Posts: 13
Joined: Thu Jul 10, 2014 3:07 pm

What is layer '0' used for?

Post by cjs94 » Wed Jul 23, 2014 11:41 am

Hi,

In a mechanical drawing what is intended to be drawn on layer '0', as opposed to, say, the Outline layer? (I'm referring to the AEC layer template shipped with QCAD.)

Chris

User avatar
andrew
Site Admin
Posts: 9034
Joined: Fri Mar 30, 2007 6:07 am

Re: What is layer '0' used for?

Post by andrew » Wed Jul 23, 2014 11:50 am

Layer '0' is for historical reasons always present and cannot be deleted.

In most cases, it should not be used unless you are working on a very simple drawing that does not use layers. In this simple case, you might want to create everything on layer '0' and not worry about layers at all.

User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

Re: What is layer '0' used for?

Post by Clive » Wed Jul 23, 2014 12:25 pm

Traditionally Blocks (symbols) can be created on Layer 0 in programs like AutoCAD and Microstation with Colour, Line type and Line width set to 'by layer', once inserted the block/symbol will then have the attributes of the layer upon which it is inserted. Hope this makes sense e_confused
For the best support please state your operating system, QCAD version and add any supporting DXF/DWG files, screenshots etc...

riverbuoy
Senior Member
Posts: 121
Joined: Thu Oct 03, 2013 5:37 pm

Re: What is layer '0' used for?

Post by riverbuoy » Fri Jul 25, 2014 6:09 pm

Hi Clive,
Clive wrote:Traditionally Blocks (symbols) can be created on Layer 0 in programs like AutoCAD and Microstation with Colour, Line type and Line width set to 'by layer', once inserted the block/symbol will then have the attributes of the layer upon which it is inserted. Hope this makes sense e_confused
That is how it works in Autocad.
However, in QCAD, if you draw your entities on layer 0, and set Colour, Linetype and Lineweight to 'ByLayer', and then add those entities to a block, when the block is inserted the entities always take on the values of layer 0, not the values of the layer on which it is inserted. You need to set the Colour, Linetype and Lineweight to 'ByBlock' to have the entities take on the values of the layer on which it is inserted.

riverbuoy

User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

Re: What is layer '0' used for?

Post by Clive » Fri Jul 25, 2014 9:20 pm

riverbuoy wrote:That is how it works in Autocad ....However, in QCAD
Ah, yes the story continues, thanks for the next chapter.
For the best support please state your operating system, QCAD version and add any supporting DXF/DWG files, screenshots etc...

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4933
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: What is layer '0' used for?

Post by Husky » Fri Jul 25, 2014 10:06 pm

Hi everybody 8)
riverbuoy wrote:... to have the entities take on the values of the layer on which it is inserted.
For what do I need that? Usually my blocks are build with using a couple different layers - like this one:
Husky-2014.07.25-05.png
Husky-2014.07.25-05.png (1.38 KiB) Viewed 12169 times
... and I'm pretty happy that this block doesn't adopts the actual Layer attributes. 8)

If I need a block with just one layer I would design this block in first place onto the right layer. Isn't that right?
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

Re: What is layer '0' used for?

Post by Clive » Fri Jul 25, 2014 10:09 pm

Husky wrote:... and I'm pretty happy that this block doesn't adopts the actual Layer attributes. 8)
agreed :wink:
For the best support please state your operating system, QCAD version and add any supporting DXF/DWG files, screenshots etc...

PCe
Junior Member
Posts: 13
Joined: Sat Oct 01, 2016 11:20 am

Re: What is layer '0' used for?

Post by PCe » Sun Feb 05, 2017 8:33 pm

Using layer 0 to draw library object has the advantage of NOT creating any new layer (with names you can not figure out any more what they should mean) when you insert the block in a design maybe already crowded with very meaningful layer and sublayernames...
Layers other than 0 used to define your block will pop up in your layer list and create some hard to understand behavior like "parts of the object disappear when hiding the unwanted layers". Am I right? Somewhat puzzling to me.
I would prefer that a block/library object would be just ONE object belonging to the layer where it is placed on with no addition of new, unwanted layers to the list.
Am I missing the point?
PCe

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4933
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: What is layer '0' used for?

Post by Husky » Sun Feb 05, 2017 10:00 pm

Basically there is no right or wrong doing! It depends on what everybody needs to be accomplished with his block/library management.
PCe wrote:... Layers other than 0 used to define your block will pop up in your layer list and create some hard to understand behavior like "parts of the object disappear when hiding the unwanted layers". Am I right? Somewhat puzzling to me.
Yes and no. To show the correct Linetyp like dashed for invisible or dash/dot for axis/symmetry is a very important information in your drawing. Just to draw everything in the same Linetyp will put a drawing to the status "unusable'.
PCe wrote:I would prefer that a block/library object would be just ONE object belonging to the layer where it is placed on with no addition of new, unwanted layers to the list.
Possible!

Check this test drawing. I have a block which is sometimes needed as it is (1) - sometimes hidden behind other objects (2). I needed an easy way to insert this block for this two occasions without creating or watching additional layer or the visible/invisible status. This will work for the two mentioned situations - it will fail if the block is partly behind an other object. Only then I have to modify the inserted block.
Husky-2017.02.05-01.png
Husky-2017.02.05-01.png (11.43 KiB) Viewed 10039 times
The behavior is based on this settings:
Husky-2017.02.05-02.png
Husky-2017.02.05-02.png (35.94 KiB) Viewed 10039 times
Now you: Can you figure out what I have done to receive this effect?
layer test.dxf
(103.2 KiB) Downloaded 406 times
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

PCe
Junior Member
Posts: 13
Joined: Sat Oct 01, 2016 11:20 am

Re: What is layer '0' used for?

Post by PCe » Sun Feb 05, 2017 10:52 pm

Husky,
you overestimate my understanding of the issue... ;-) I don' really see your point. Your block is drawn on layer 0 (everything) with different line types and colors which is preserved (I welcome this behavior) when using the block.
Can you please comment on "Entities in blocks on layer 0 take on attributes of .... (compatibility)"?
What's the effect?
TNX - PCe

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4933
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: What is layer '0' used for?

Post by Husky » Mon Feb 06, 2017 12:04 am

PCe wrote:Husky,
you overestimate my understanding of the issue... ;-)
I don't think so - you already figured out what I have done with the block .... :wink:
PCe wrote:Your block is drawn on layer 0 (everything) with different line types and colors which is preserved.
Correct!
PCe wrote:Can you please comment on "Entities in blocks on layer 0 take on attributes of .... (compatibility)"?
What's the effect?
The benefit is that every entities in the block which has been drawn on 0 WITHOUT getting it own attributes like color, linetyp etc. will adopt the attributes from the layer on which it is insert.

Make a test with my example drawing: Insert the block on layer 0 and then insert the same block on layer Hidden. You will see that only the outline will adopt the Attributes of the chosen layer. Create a couple more layers with different attributes to test it with them too.
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

Post Reply

Return to “QCAD 'How Do I' Questions”