CADTutor

Learn AutoCAD with our Free Tutorials

Welcome to CADTutor

CADTutor provides the best free tutorials and articles for AutoCAD, 3ds Max and associated applications along with a friendly community forum. If you need to learn AutoCAD, or you want to be more productive, you're in the right place. See our tip of the day to start learning right now!

Free Tutorials and More…

The Tutorials section provides over 100 original tutorials for AutoCAD, 3ds Max and other design applications. Michael’s Corner is an archive of productivity articles that brings you the best AutoCAD tips and tricks. Our Forum is a lively community where AutoCAD users can ask questions and get answers. The Downloads area provides free AutoCAD blocks, free AutoLISP routines and free images.

Tutorials of the Moment

Recently viewed tutorials

CADTutor Tutorials

Our tutorials are comprehensive but straightforward introductions to AutoCAD and related software. They are designed to help beginners get to grips with design workflows as quickly as possible. There are over 100 to choose from, some text/image based and others in video format. Whatever stage you are at in your learning, you should find a tutorial to help.

Forum Latest

Currently Active Topics

This Week's Hot Topics

CADTutor Forums

Our forum is a vibrant community of experts and beginners. The main focus is helping beginners get to grips with AutoCAD and to help more advanced users become more productive. The AutoLISP forum is one of the busiest out there, providing expert advice for busy professionals.

AutoCAD Productivity

“Best of” Basics: Irregular Viewport

by Michael Beall

From: AutoCAD Productivity Articles #145
Originally published: April 2016

When you need a viewport shape other than a rectangle, the first order of business is to be able to view the objects in Model Space at the desired scale. From there, you can create a polyline to essentially ‘crop’ the objects in Model space, then turn it into a viewport.

Setting the scaleThe best drawing for testing this is in the path

C:\Program Files\Autodesk\AutoCAD 20xx\Sample\Database Connectivity

If you have AutoCAD 2014 or prior, the drawing name is db_samp.DWG

If you have AutoCAD 2015 or later, the drawing name is Floor Plan Sample.DWG

Sample drawing with polyline

How to Create an Irregular Shaped Viewport

  1. Right-click on a layout tab and make a new layout with a large viewport.

  2. Double-click in the viewport, then set the desired scale from the scale list on the Status bar. You may want to start with 1/64″ = 1′-0″ so you can see all of it.

  3. Return to Paper space and create any closed polyline, spline or circle to be the viewport.

    Note: If you are creating a Polyline, you must use the Close option if it is to be converted into a viewport. If you did not use the Close option, use Pedit and select the polyline, then use the Close option.

    In this illustration, I created a polyline around the perimeter of the floorplan. (Ideally, this would be on a dedicated layer on which you typically create your viewports).

  4. ClipOn the Layout tab, click Clip.

  5. When prompted to select the ‘viewport to clip’, select the rectangular viewport.

  6. When prompted to select the ‘clipping object’, select the polyline (or whatever object you created in Step 3, above).

Sample drawing with irregular viewport

AutoCAD will convert the polyline into a viewport and erase the original rectangular viewport!

See all the articles published in April 2016

Michael's Corner

Between 2003 and 2016, Michael Beall (and one or two guests) wrote almost 600 articles for CADTutor. The focus of these articles is AutoCAD productivity, and although some of them are now more than a few years old, most remain relevant to current versions of AutoCAD. The article above is just one example. Check out Michael's Corner for a full listing.

Tip of the Day

Auto-repeating Commands

Editing the Circle macro in the CUISometimes you need to repeat a command lots of times and it can be a bit tedious doing the usual Right-Click and Repeat… or even using the Enter key on the keyboard. It would be really useful if you could just keep a command auto-repeating until you hit the Escape key Esc. Well, you can. All you need to do is make a small change to the CUI.

For example, say you want to draw lots of circles and have the circle command auto-repeat so that you can just pick center, radius, center, radius etc. Here's what you do:

  1. Select View ❯ Toolbars… from the pull-down menu to display the CUI dialogue box.
  2. In the "Customizations in All CUI Files" section, click on "Toolbars" and then "Draw" to reveal the Draw commands, and then click "Circle".
  3. The Properties area now changes to display the Circle button properties and under the "Macro" heading, you will see the macro used to start the Circle command. By default, this macro is: ^C^C_circle. To cause the Circle command to auto-repeat, simply add a "*" before the existing macro. Once edited, your macro should look like this: *^C^C_circle.
  4. Now click the "OK" button to save and return to the drawing.

Try the circle command and see what happens.

This technique can be used with most commands. For example, if you are doing a lot of dimensioning, you could auto-repeat the Linear Dimension command so that you can draw all your dimensions without breaking stride.

Today's tip is by fuccaro

Missed a Tip?

Did you miss yesterday's tip? Maybe you forgot to drop by or maybe you don't visit over the weekend. If so, you can now see all the tips published during the past week. Also, if you have a tip you'd like to share with us, you can post it on our forum and if we like it, we'll publish it here.