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

AutoCAD 2007 - Where's my old XREF Manager?

CUI Dialogue BoxA lot of people using AutoCAD 2007 and above don't like the new XREF Manager, so here's a simple way to get the old one back.

AutoCAD 2007 introduced a new way to manage XREFs and to bring up the "old" XREF Manager, you have to type CLASSICXREF at the command line. Well, if you want things back the way they were and use the classic XREF Manager as the default from the keyboard and from the menu, a few adjustments will get you there…

First, go to Tools ❯ Customize ❯ Edit Program Parameters (acad.pgp). This command opens the ACAD.PGP file in Notepad. This is where all the keyboard shortcuts are defined.

Next, scroll down until you see XR (or use Edit ❯ Find…), change the value from *XREF to *CLASSICXREF and save (File ❯ Save). Close Notepad and return to AutoCAD. Enter the command REINIT, check the "PGP File" checkbox and click "OK". That fixes the keyboard so that next time you type XR, you'll see the old manager and not the new one.

To change your Menu, type CUI at the command line. In the "Customizations in All CUI Files" pane of the "Custom User Interface" dialogue, go to Menus ❯ Insert ❯ External References… and click on it once to highlight it.

Now, in the "Properties" pane, change the "Macro" setting from ^C^C_externalreferences to ^C^C_classicxref, click "OK" to save the changes and you're done.

Today's tip is by StykFacE

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.