Working with Layout Blocks and Viewports

Tips and tricks you want to share with other users. Tutorials, user submitted documentation, etc.

Moderator: andrew

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

Working with Layout Blocks and Viewports

Post by andrew » Tue Nov 07, 2017 9:52 pm

What are Layouts?

When starting a new drawing in QCAD, the model space (also "model" or "drawing model") is shown. This is a special block where the main drawing is created in real size (1:1).

A layout (also "layout block" or "paper space") is another special block that is usually used for printing a drawing or parts of a drawing. A layout shows one or multiple parts of the drawing, often accompanied by a drawing border and drawing header. Each part of the drawing can be shown at a selected scale and angle.

Consider the example "flange.dxf" which comes with every installation of QCAD. When you open the drawing in QCAD, you can see the model space where all the geometry is created in real size. The geometry is typically arranged in a way that made it convenient to construct it.
Screen Shot 2017-11-07 at 20.43.41.png
Screen Shot 2017-11-07 at 20.43.41.png (186.13 KiB) Viewed 3167 times
If you switch to the first layout (listed as "Layout (*Paper_Space)" in the block list), you can see that the same drawing has been re-arranged, a border has been added and a detail of the drawing is shown at a different scale:
Screen Shot 2017-11-07 at 20.42.15.png
Screen Shot 2017-11-07 at 20.42.15.png (191.72 KiB) Viewed 3167 times
It is important to understand at this point, that this is still the same drawing. These elements have not been copied and when the drawing model is changed, the layout will reflect these changes immediately.

What are Viewports?

The rectangular areas with a dashed orange border in the layout above are called viewports. A viewport is a window to the drawing model. It shows a part of the drawing model in a layout. You can also think of a viewport as a special kind of a block reference that always references the model space block and happens to be clipped at a given size.

Creating Layouts

Every new drawing automatically has a layout block. New layout blocks can be added using Block > Add Layout Block.

Creating Viewports

Viewports can be created using Draw > Viewport > Add Viewport

Locked

Return to “QCAD Tips and Tutorials”