196
AutoCAD 2011 for Mac Customization Guide September 2010

AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

AutoCAD 2011 for Mac

Customization Guide

September 2010

Page 2: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

© 2010 Autodesk, Inc. All Rights Reserved. Except as otherwise permitted by Autodesk, Inc., this publication, or parts thereof, may not bereproduced in any form, by any method, for any purpose. Certain materials included in this publication are reprinted with the permission of the copyright holder. TrademarksThe following are registered trademarks or trademarks of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and other countries:3DEC (design/logo), 3December, 3December.com, 3ds Max, Algor, Alias, Alias (swirl design/logo), AliasStudio, Alias|Wavefront (design/logo),ATC, AUGI, AutoCAD, AutoCAD Learning Assistance, AutoCAD LT, AutoCAD Simulator, AutoCAD SQL Extension, AutoCAD SQL Interface,Autodesk, Autodesk Envision, Autodesk Intent, Autodesk Inventor, Autodesk Map, Autodesk MapGuide, Autodesk Streamline, AutoLISP, AutoSnap,AutoSketch, AutoTrack, Backburner, Backdraft, Built with ObjectARX (logo), Burn, Buzzsaw, CAiCE, Civil 3D, Cleaner, Cleaner Central, ClearScale,Colour Warper, Combustion, Communication Specification, Constructware, Content Explorer, Dancing Baby (image), DesignCenter, DesignDoctor, Designer's Toolkit, DesignKids, DesignProf, DesignServer, DesignStudio, Design Web Format, Discreet, DWF, DWG, DWG (logo), DWGExtreme, DWG TrueConvert, DWG TrueView, DXF, Ecotect, Exposure, Extending the Design Team, Face Robot, FBX, Fempro, Fire, Flame, Flare,Flint, FMDesktop, Freewheel, GDX Driver, Green Building Studio, Heads-up Design, Heidi, HumanIK, IDEA Server, i-drop, ImageModeler, iMOUT,Incinerator, Inferno, Inventor, Inventor LT, Kaydara, Kaydara (design/logo), Kynapse, Kynogon, LandXplorer, Lustre, MatchMover, Maya,Mechanical Desktop, Moldflow, Moonbox, MotionBuilder, Movimento, MPA, MPA (design/logo), Moldflow Plastics Advisers, MPI, MoldflowPlastics Insight, MPX, MPX (design/logo), Moldflow Plastics Xpert, Mudbox, Multi-Master Editing, Navisworks, ObjectARX, ObjectDBX, OpenReality, Opticore, Opticore Opus, Pipeplus, PolarSnap, PortfolioWall, Powered with Autodesk Technology, Productstream, ProjectPoint, ProMaterials,RasterDWG, RealDWG, Real-time Roto, Recognize, Render Queue, Retimer,Reveal, Revit, Showcase, ShowMotion, SketchBook, Smoke, Softimage,Softimage|XSI (design/logo), Sparks, SteeringWheels, Stitcher, Stone, StudioTools, ToolClip, Topobase, Toxik, TrustedDWG, ViewCube, Visual,Visual LISP, Volo, Vtour, Wire, Wiretap, WiretapCentral, XSI, and XSI (design/logo). All other brand names, product names or trademarks belong to their respective holders. DisclaimerTHIS PUBLICATION AND THE INFORMATION CONTAINED HEREIN IS MADE AVAILABLE BY AUTODESK, INC. "AS IS." AUTODESK, INC. DISCLAIMSALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY ORFITNESS FOR A PARTICULAR PURPOSE REGARDING THESE MATERIALS. Published by:Autodesk, Inc.111 McInnis ParkwaySan Rafael, CA 94903, USA

Page 3: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Contents

Chapter 1 Basic Customization . . . . . . . . . . . . . . . . . . . . . . . . 1Overview of Customization . . . . . . . . . . . . . . . . . . . . . . . . 1Organize Program and Support Files . . . . . . . . . . . . . . . . . . . . 3

Overview of File Organization . . . . . . . . . . . . . . . . . . . . 3Multiple Drawing Folders . . . . . . . . . . . . . . . . . . . . . . 6Locate Customized Files . . . . . . . . . . . . . . . . . . . . . . . 10

Locate Plot Style Files . . . . . . . . . . . . . . . . . . . . . 11Locate Plotter Files . . . . . . . . . . . . . . . . . . . . . . 11Locate Support Files . . . . . . . . . . . . . . . . . . . . . . 12Locate Drawing Template Files . . . . . . . . . . . . . . . . 15Locate Texture Files . . . . . . . . . . . . . . . . . . . . . . 16

Create Command Aliases . . . . . . . . . . . . . . . . . . . . . . . . . 16

Chapter 2 Custom Linetypes . . . . . . . . . . . . . . . . . . . . . . . . . 19Overview of Linetype Definitions . . . . . . . . . . . . . . . . . . . . . 19Simple Custom Linetypes . . . . . . . . . . . . . . . . . . . . . . . . . 20Text in Custom Linetypes . . . . . . . . . . . . . . . . . . . . . . . . . 24Shapes in Custom Linetypes . . . . . . . . . . . . . . . . . . . . . . . 27

Chapter 3 Custom Hatch Patterns . . . . . . . . . . . . . . . . . . . . . . 31Overview of Hatch Pattern Definitions . . . . . . . . . . . . . . . . . . 31Hatch Patterns with Dashed Lines . . . . . . . . . . . . . . . . . . . . 34Hatch Patterns with Multiple Lines . . . . . . . . . . . . . . . . . . . . 37

iii

Page 4: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Chapter 4 User Interface Customization . . . . . . . . . . . . . . . . . . . 41Understand User Interface Customization . . . . . . . . . . . . . . . . 41

Overview of the Customization . . . . . . . . . . . . . . . . . . . 41Customization Glossary . . . . . . . . . . . . . . . . . . . . . . . 42

Customize Commands . . . . . . . . . . . . . . . . . . . . . . . . . . 43Overview of Commands . . . . . . . . . . . . . . . . . . . . . . 43Create, Edit, and Reuse Commands . . . . . . . . . . . . . . . . . 44Create Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47

Overview of Macros . . . . . . . . . . . . . . . . . . . . . . 47Use Special Control Characters in Macros . . . . . . . . . . 49Pause for User Input in Macros . . . . . . . . . . . . . . . . 51Provide International Support in Macros . . . . . . . . . . . 53Use Built-in Commands in Macros . . . . . . . . . . . . . . 54Repeat Commands in Macros . . . . . . . . . . . . . . . . . 54Use Single Object Selection Mode in Macros . . . . . . . . . 55Use Conditional Expressions in Macros . . . . . . . . . . . 56Use AutoLISP in Macros . . . . . . . . . . . . . . . . . . . . 57

Create Tooltips for Commands . . . . . . . . . . . . . . . . . . . 59Create and Manage Images for Commands . . . . . . . . . . . . . 59

Assign Images to a Command . . . . . . . . . . . . . . . . 59Customize User Interface Elements . . . . . . . . . . . . . . . . . . . . 60

Menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60Overview of Menus . . . . . . . . . . . . . . . . . . . . . . 60Create and Manage Pull-down Menus . . . . . . . . . . . . 61

Tool Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64Overview of Tool Sets and Tool Groups . . . . . . . . . . . 64Create and Manage Tool Sets . . . . . . . . . . . . . . . . . 65

Chapter 5 DIESEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71DIESEL Expressions in Macros . . . . . . . . . . . . . . . . . . . . . . 71Catalog of DIESEL Functions . . . . . . . . . . . . . . . . . . . . . . . 75

+ (addition) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75- (subtraction) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75* (multiplication) . . . . . . . . . . . . . . . . . . . . . . . . . . 76/ (division) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76= (equal to) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76< (less than) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77> (greater than) . . . . . . . . . . . . . . . . . . . . . . . . . . . 77!= (not equal to) . . . . . . . . . . . . . . . . . . . . . . . . . . . 78<= (less than or equal to) . . . . . . . . . . . . . . . . . . . . . . 78>= (greater than or equal to) . . . . . . . . . . . . . . . . . . . . 78and . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79angtos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79edtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80e q . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2

iv | Contents

Page 5: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

eva l . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82fix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82getenv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83getvar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83if . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84nth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84o r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 5rtos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85strlen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86substr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86upper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87xor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87

DIESEL Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . 87

Chapter 6 Command Scripts . . . . . . . . . . . . . . . . . . . . . . . . . 89Create Command Scripts . . . . . . . . . . . . . . . . . . . . . . . . . 89

Overview of Command Scripts . . . . . . . . . . . . . . . . . . . 89Run Scripts at Startup . . . . . . . . . . . . . . . . . . . . . . . . 91

Chapter 7 Introduction to Programming Interfaces . . . . . . . . . . . . . 93AutoLISP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

Overview of AutoLISP . . . . . . . . . . . . . . . . . . . . . . . . 93Use AutoLISP Applications . . . . . . . . . . . . . . . . . . . . . 95Automatically Load and Run AutoLISP Routines . . . . . . . . . . 96

Overview of AutoLISP Automatic Loading . . . . . . . . . . 96The ACAD.LSP File . . . . . . . . . . . . . . . . . . . . . . 97The ACADDOC.LSP File . . . . . . . . . . . . . . . . . . . . 99Prevent AutoLISP Errors When Loading Startup Files . . . . 100S::STARTUP Function: Postinitialization Execution . . . . . 101

ObjectARX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102Overview of ObjectARX . . . . . . . . . . . . . . . . . . . . . . 102Use ObjectARX Applications . . . . . . . . . . . . . . . . . . . . 103

Chapter 8 Shapes and Shape Fonts . . . . . . . . . . . . . . . . . . . . . 105Overview of Shape Files . . . . . . . . . . . . . . . . . . . . . . . . . 105Create Shape Definition Files . . . . . . . . . . . . . . . . . . . . . . 107

Shape Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . 107Vector Length and Direction Code . . . . . . . . . . . . . . . . 108Special Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110

Use Special Codes . . . . . . . . . . . . . . . . . . . . . . 110Codes 0, 1, and 2: End of Shape and Draw Mode

Control . . . . . . . . . . . . . . . . . . . . . . . . . . . 111Codes 3 and 4: Size Control . . . . . . . . . . . . . . . . . 112

Contents | v

Page 6: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Codes 5 and 6: Location Save/Restore . . . . . . . . . . . . 112Code 7: Subshape . . . . . . . . . . . . . . . . . . . . . . 113Codes 8 and 9: X-Y Displacements . . . . . . . . . . . . . 113Code 00A: Octant Arc . . . . . . . . . . . . . . . . . . . . 114Code 00B: Fractional Arc . . . . . . . . . . . . . . . . . . 116Codes 00C and 00D: Bulge-Specified Arcs . . . . . . . . . . 117Code 00E: Flag Vertical Text Command . . . . . . . . . . . 118

Text Font Descriptions . . . . . . . . . . . . . . . . . . . . . . . 119Sample Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

Extended Simplex Roman . . . . . . . . . . . . . . . . . . 122Extended Standard Font for UNICODE . . . . . . . . . . . 150

Big Font Descriptions . . . . . . . . . . . . . . . . . . . . . . . 170Define a Big Font . . . . . . . . . . . . . . . . . . . . . . 170Define an Extended Big Font File . . . . . . . . . . . . . . 171Use Big Font Text in a Drawing . . . . . . . . . . . . . . . 177Use a Big Font to Extend a Font . . . . . . . . . . . . . . . 179

Unicode Font Descriptions . . . . . . . . . . . . . . . . . . . . 180Superscripts and Subscripts in SHX Files . . . . . . . . . . . . . 181

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185

vi | Contents

Page 7: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Basic Customization

Your dealer can offer you independently developed applications that can further tailorAutoCAD for Mac to your needs.

Overview of CustomizationAutoCAD for Mac can be customized in simple ways. For example, you canchange the directory structure or create a custom title block to use on a layout.If you want to change the interface further, you can edit the Workflow paletteor menu bar, and use DIESEL statements to create custom commands.

You can also use a number of powerful application programming interfaces(APIs) to add to and modify AutoCAD for Mac to suit your needs.

The list that follows is arranged from least to most complex:

■ Organize files. You can organize program, support, and drawing files. Forexample, you can make a separate folder for each project that includes onlythe support files that project needs.

■ Create custom drawing templates (DWTs). You can create custom drawingtemplates to use when creating a new drawing. Drawing templates are usedto store the layers, blocks, and styles that you might use across all yourdrawings.

■ Run external programs and utilities from within AutoCAD for Mac. You can,for example, copy a disk or delete a file from within AutoCAD for Mac byadding the appropriate external command to the program parameters (PGP)file, acad.pgp.

■ Define command aliases. You can define simple abbreviations, or aliases,for frequently used commands from within AutoCAD for Mac by adding

1

1

Page 8: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

the command to the PGP file acad.pgp. For example, you might want tostart the BLOCK command by entering b.

■ Create custom linetypes, hatch patterns, shapes, and text fonts. You cancreate linetypes, hatch patterns, shapes, and text fonts that conform toyour company standards and working methods.

■ Customize the user interface. You can control many aspects of the userinterface, including the functionality and appearance of the Workflowpalette and menu bar. You use the CUI command to create and editcommands, and assign them to a menu on the menu bar or a tab on theWorkflow palette.

■ Customize the status line. You can toggle the display of the controls onthe status bar. Right-click an empty area of the status bar and choose whichcontrols to turn on or off.

■ Automate repetitive tasks by writing scripts. A script is an ASCII text filecontaining commands that are processed like a batch file when you runthe script. For example, if a set of drawings needs to be plotted a certainway, you can write a script that opens each drawing, hides and displaysvarious layers, and issues PLOT commands.

In addition to the methods described in the Customization Guide, there areapplication programming interfaces (APIs) available for customizing AutoCADfor Mac. Introduction to Programming Interfaces on page 93 briefly describesthese APIs and provides cross-references to more information.

See also:

■ “Organize Program and Support Files”

■ “Create Command Aliases”

■ “Custom Linetypes”

■ “Custom Hatch Patterns”

■ “DIESEL”

■ “Introduction to Programming Interfaces”

■ “Slides and Command ScriptsCommand Scripts”

2 | Chapter 1 Basic Customization

Page 9: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

Commands

REDEFINE

Restores AutoCAD internal commands overridden by UNDEFINE.

UNDEFINE

Allows an application-defined command to override an internal command.

Organize Program and Support FilesYou can change the default directory structure for the program and supportfiles to suit your needs.

Overview of File Organization

See also:

■ Overview of AutoLISP Automatic Loading on page 96

■ “Specify Search Paths and File Locations” in the User's Guide

AutoCAD for Mac uses support files for purposes such as storing customizationdefinitions, loading AutoLISP and ObjectARX applications, and describingtext fonts.

AutoCAD for Mac® uses support files for purposes such as storing customizationdefinitions and describing text fonts.

The default directory structure for the AutoCAD for Mac program and supportfiles is designed to efficiently organize those files into logical groups. If thisorganization does not suit your needs, you can change it. However, someapplications look for certain files in specific locations, and you should verifythat your modifications do not conflict with the requirements of thoseapplications. Without the full path, including drive and directory, AutoCADfor Mac can locate only those files that are found in the library search path.

The location of local customizable files is stored in the LOCALROOTPREFIXsystem variable. The location of roamable customizable files is stored in theROAMABLEROOTPREFIX system variable. If a network supports roaming,customizable files in the user's roaming profile are available on the machinethe user is logged onto.

Organize Program and Support Files | 3

Page 10: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Library Search Path

The library search path specifies where the program searches for files whenyou do not specify a full path name, as follows:

■ Current directory. (This is typically determined by the “Start In” settingin your shortcut icon.)

■ Directory that contains the current drawing file.

■ Directories listed in the search path specified on the Applications tab inOPTIONS. (See Specify Search Paths and File Locations in the User's Guide.)

■ Directory that contains the AutoCAD for Mac program files.

Depending on the current environment, two or more directories may be thesame.

If a file is not in this search path, you must specify both its path name andfile name before AutoCAD for Mac can find it. For example, if you want toinsert the part5.dwg drawing into your current drawing and it is not in thelibrary search path, you must specify its full path name, as shown here:

Command: insertEnter block name or [?]: /files2/olddwgs/part5

If the drawing exists in that location, AutoCAD for Mac prompts you to finishthe INSERT command in the usual manner.

Directory Structure

AutoCAD for Mac uses tree-structured directories and subdirectories. It isrecommended that you keep supplemental files (such as AutoLISP applicationsand customization files) separate from the AutoCAD for Mac program andsupport files. This makes it easier to track possible conflicts and to upgradeeach application without affecting the others.

The default location for AutoCAD for Mac is in the Applications folder. Youcan create a new directory on the same level (for example, /AcadApps) andstore your custom AutoLISP and ObjectARX application files, custom linetypesand hatch pattern files, and other third-party applications in subdirectorieson the next level. If you want to maintain multiple drawing directories (forseparate job files), you can create a directory such as /AcadJobs withsubdirectories for each job.

4 | Chapter 1 Basic Customization

Page 11: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Command Search Procedure

When you enter a command, AutoCAD for Mac goes through a series of stepsto evaluate the validity of the command name. A command can be a built-incommand or system variable, an external command or alias defined in theacad.pgp file, or a user-defined AutoLISP command. Commands can also bedefined by ObjectARX applications or a device driver command. You can entera command on the command prompt or choose a command from theappropriate menu. Commands can also be entered from a script file or by anAutoLISP or ObjectARX application.

The following list describes the search order AutoCAD for Mac uses to validatea command name.

1 If the input is a null response (Spacebar or Enter), AutoCAD for Mac usesthe name of the last command issued.

2 AutoCAD for Mac checks the command name against the list of built-incommands. If the command is in the list and is not preceded by a period(.), AutoCAD for Mac then checks the command against a list of undefinedcommands. If the command is undefined, the search continues.Otherwise, the command is run, unless another reason prevents it fromdoing so. Running it transparently or in Perspective mode might beimpossible.

3 AutoCAD for Mac checks the command name against the names ofcommands defined by a device driver, and then by those defined by thedisplay driver.

4 AutoCAD for Mac checks the command name against the externalcommands defined in the program parameters file (acad.pgp). If thecommand name corresponds to a defined external command, thatcommand runs, and the search is complete.

5 AutoCAD for Mac checks the command name against the list ofcommands defined by AutoLISP or ObjectARX applications. At this point,an autoloaded command is loaded.

6 AutoCAD for Mac checks the command name against the list of systemvariables. If the command name is in the list, AutoCAD for Mac executesthe SETVAR command, using the input as the variable name.

7 If the command name corresponds to a command alias defined in theprogram parameters file, AutoCAD for Mac uses the expanded commandname and continues the search, starting a new search against the list ofbuilt-in commands.

Overview of File Organization | 5

Page 12: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

8 If all the preceding steps fail, the search terminates with a warningmessage about illegal command names.

Quick Reference

Commands

OPTIONS

Customizes the program settings.

System Variables

LOCALROOTPREFIX

Stores the full path to the root folder where local customizable files wereinstalled.

ROAMABLEROOTPREFIX

Stores the full path to the root folder where roamable customizable files wereinstalled.

Multiple Drawing FoldersKeeping your drawing and other associated files in separate directories makesit easier to perform basic file maintenance.

Keeping your drawing files and other associated files in separate directoriesmakes it easier to perform basic file maintenance. The scenario described inthis topic is based on the sample directory structure described in Overview ofFile Organization on page 3, but you can expand or alter it to meet yourneeds.

You can set up the /AcadJobs directory to contain your drawing subdirectories.The drawing subdirectories can contain other subdirectories that hold relatedsupport files for a particular drawing type or job. The /AcadJobs/Job1/Supportdirectory can contain blocks and AutoLISP files specific to the drawing filesin /AcadJobs/Job1. Specifying support (with no path prefix) in the Support pathadds the support directory within the current directory to the Support path.

Notice that if you use the Application Preferences dialog box to specify adirectory, AutoCAD for Mac creates a hard-coded path to that directory. To usethe relative naming convention previously described, you must specify theSupport path with the /s switch on the command line. See “Customize Startup”in the User's Guide.

6 | Chapter 1 Basic Customization

Page 13: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

To make sure that the required drawing directory is the current directory whenyou start AutoCAD for Mac, and that all files and subdirectories in thatdirectory are easily accessible, you can create a program icon or a Start menuitem that specifies the correct working directory for each job. This functionalityworks only if you set the AutoCAD for Mac system variableREMEMBERFOLDERS to 0.

Multiple Drawing Folders | 7

Page 14: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

You can use a batch program to create new job directories automatically. Thefollowing batch program verifies that a specified directory exists, sets thatdirectory to be current, and then runs AutoCAD for Mac.

8 | Chapter 1 Basic Customization

Page 15: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

#!/bin/sh

prj="$1"

#Switch to the project folder and start AutoCAD

function startACAD() {

cd /AcadJobs/Jobs/$prj

echo "Starting AutoCAD"

/Applications/Autodesk/AutoCAD 2011 for Mac/AutoCAD.app/Con

tents/MacOS/AutoCAD

}

#Clear Terminal and check for the existence of the folder

clear

cd .

if [ -d /AcadJobs/Jobs/$prj ]

then

startACAD

fi

#Prompt to create folder

echo .

echo Creating /AcadJobs/Jobs/$prj

echo 'Press Y to continue (or A to abort)'

echo .

cont="True"

answer=""while [ "$cont" = "True" ]

do

read -n1 -t10 answer

echo

if [ "$answer" = "y" ] || [ "$answer" = "Y" ] || [ "$answer" =

"a" ] || [ "$answer" = "A" ]

then

cont="False"

fi

done

#Check to see if the user requested to abort or continue

if [ "$answer" = "a" ] || [ "$answer" = "A" ]

then

exit 1

else

mkdir -p /AcadJobs/Jobs/$prj

fi

#Switch to the project folder and start AutoCAD

startACAD

Multiple Drawing Folders | 9

Page 16: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Using an ASCII text editor (such as Notepad), save the batch program to a filenamed acad.sh. Be sure to change the drive and directory names to matchthose on your system.

Place this file in your home directory or a shared location that is on yoursystem. You can run this shell script program using the Terminal window in/Applications/Utilities on the drive the operating system is installed. If yousaved the file as acad.sh, use the following syntax:

./acad.sh jobname

where jobname is the name of the job directory to make current.

Quick Reference

System Variables

CMDECHO

Controls whether prompts and input are echoed during the AutoLISPcommand function.

Locate Customized FilesAutoCAD for Mac supports a wide range of files that can be customized. Theprogram stores files that can be customized by user profile, as well as allowyou to add your own customized file locations. The following locations aredefined by the program:

■ Local profiles. Local profiles are used to log on a computer and they storesettings and files that are not available when roaming. Some files, such asmaterials and drawing templates are stored under your local profile becauseof their size, they do not follow you from computer to computer.

■ Roaming profiles. Roaming profiles allow you to log on to any computerwithin a network and retain your user settings. Some files, such as yourpersonal settings and documents, follow you from computer to computer.If roaming profiles are allowed on your network, your “roamable” files arelocated in the <user>/Library/Application Support/Autodesk/Roaming/<ProductVersion> folder, and your “nonroamable” files are located in the<user>/Application Support/Autodesk/Local/<Product Version> folder.

10 | Chapter 1 Basic Customization

Page 17: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Locate Plot Style FilesThe location AutoCAD for Mac uses for plot style files defines on how theprogram was installed and configured. You can use the OPTIONS commandto locate which folder is being used to store your plot styles.

To locate your plot style files

1 From the Finder menu bar, click Go ➤ Applications.

2 In the Applications window, double-click Autodesk ➤ AutoCAD 2011for Mac ➤ AutoCAD for Mac.

3 From the AutoCAD 2011 for Mac menu bar, click AutoCAD 2011 for Mac ➤ Preferences.

NOTE A drawing must be open to see the Preferences menu item.

4 In the Application Preferences dialog box, Application tab, click the arrowto the left of Printer Support File Path.

5 Click the arrow to the left of the Plot Style Table Search Path file.

6 Under Plot Style Table Search Path, click the path name to view thelocation of your plot style files.

Locate Plotter FilesThe location AutoCAD for Mac looks in for custom printer settings is storedin the Application Preferences dialog box. You can use the OPTIONS commandto locate which folder is being used to store your plot configuration files.

To locate your plotter files

1 From the Finder menu bar, click Go ➤ Applications.

2 In the Applications window, double-click Autodesk ➤ AutoCAD 2011for Mac ➤ AutoCAD for Mac.

3 From the AutoCAD 2011 for Mac menu bar, click AutoCAD 2011 for Mac ➤ Preferences.

NOTE A drawing must be open to see the Preferences menu item.

Locate Customized Files | 11

Page 18: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

4 In the Application Preferences dialog box, Application tab, click the arrowto the left of Printer Support File Path.

5 Click the arrow to the left of Printer Configuration Search Path.

6 Under Printer Configuration Search Path, click the path name to viewthe location of your plotter files.

Locate Support FilesSupport files include the following:

■ Configuration file (acad*.cfg)

■ Custom icon files

■ Help and miscellaneous files

■ Font mapping file (acad.fmp)

■ Alternate font file (simplex.shx)

■ Support path files (acad.lin, acad.mln, acad.pat, acad.pgp, acad.psf, acad.unt,acadiso.lin, acadiso.pat, gdt.shx, inches.pss, and mm.pss)

To find the default location of the configuration file

1 From the Finder menu bar, click Go ➤ Applications.

2 In the Applications window, double-click Autodesk ➤ AutoCAD 2011for Mac ➤ AutoCAD for Mac.

3 From the AutoCAD 2011 for Mac menu bar, click AutoCAD 2011 for Mac ➤ Preferences.

NOTE A drawing must be open to see the Preferences menu item.

4 In the Application Preferences dialog box, Application tab, click the arrowto the left of Help and Miscellaneous File Names.

5 Click the arrow to the left of Configuration File.

6 Under Configuration File, click the path name to view the location ofyour configuration file.

12 | Chapter 1 Basic Customization

Page 19: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

To find the default location of the customization files

1 From the Finder menu bar, click Go ➤ Applications.

2 In the Applications window, double-click Autodesk ➤ AutoCAD 2011for Mac ➤ AutoCAD for Mac.

3 From the AutoCAD 2011 for Mac menu bar, click AutoCAD 2011 for Mac ➤ Preferences.

NOTE A drawing must be open to see the Preferences menu item.

4 In the Application Preferences dialog box, Application tab, click the arrowto the left of Customization Files.

5 Click the arrow to the left of Main Customization File.

6 Under Main Customization File, click the path name to view the locationof your main customization file.

To find the default location of the custom icon files

1 From the Finder menu bar, click Go ➤ Applications.

2 In the Applications window, double-click Autodesk ➤ AutoCAD 2011for Mac ➤ AutoCAD for Mac.

3 From the AutoCAD 2011 for Mac menu bar, click AutoCAD 2011 for Mac ➤ Preferences.

NOTE A drawing must be open to see the Preferences menu item.

4 In the Application Preferences dialog box, Application tab, click the arrowto the left of Customization Files.

5 Under Custom Icon Location, click the path name to view the locationfor the custom button image files used with your customization files.

To find the default location of the Help and miscellaneous files

1 From the Finder menu bar, click Go ➤ Applications.

2 In the Applications window, double-click Autodesk ➤ AutoCAD 2011for Mac ➤ AutoCAD for Mac.

Locate Customized Files | 13

Page 20: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

3 From the AutoCAD 2011 for Mac menu bar, click AutoCAD 2011 for Mac ➤ Preferences.

NOTE A drawing must be open to see the Preferences menu item.

4 In the Application Preferences dialog box, Application tab, click the arrowto the left of Help and Miscellaneous File Names.

5 Click the arrow to the left of the file you want to locate, and then clickthe path name to view the location of the files.

To find the default location of the font mapping file

1 From the Finder menu bar, click Go ➤ Applications.

2 In the Applications window, double-click Autodesk ➤ AutoCAD 2011for Mac ➤ AutoCAD for Mac.

3 From the AutoCAD 2011 for Mac menu bar, click AutoCAD 2011 for Mac ➤ Preferences.

NOTE A drawing must be open to see the Preferences menu item.

4 In the Application Preferences dialog box, Application tab, click the arrowto the left of Text Editor, Dictionary, and Font File Names.

5 Click the arrow to the left of Font Mapping File.

6 Under Font Mapping File, click the path name to view the location ofyour font mapping file.

To find the default location of the alternate font file

1 From the Finder menu bar, click Go ➤ Applications.

2 In the Applications window, double-click Autodesk ➤ AutoCAD 2011for Mac ➤ AutoCAD for Mac.

3 From the AutoCAD 2011 for Mac menu bar, click AutoCAD 2011 for Mac ➤ Preferences.

NOTE A drawing must be open to see the Preferences menu item.

4 In the Application Preferences dialog box, Application tab, click the arrowto the left of Text Editor, Dictionary, and Font File Names.

14 | Chapter 1 Basic Customization

Page 21: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

5 Click the arrow to the left of Alternate Font File.

6 Under Alternate Font File, click the path name to view the location ofyour alternate font file.

To find the default location of the support path files

1 From the Finder menu bar, click Go ➤ Applications.

2 In the Applications window, double-click Autodesk ➤ AutoCAD 2011for Mac ➤ AutoCAD for Mac.

3 From the AutoCAD 2011 for Mac menu bar, click AutoCAD 2011 for Mac ➤ Preferences.

NOTE A drawing must be open to see the Preferences menu item.

4 In the Application Preferences dialog box, Application tab, click the arrowto the left of Support File Search Path.

5 Under Support File Search Path, click a path name to view the locationof your support files.

Locate Drawing Template FilesThe location AutoCAD for Mac looks in for drawing templates is stored in theApplication Preferences dialog box. You can use the OPTIONS command tolocate which folder is being used to store your drawing templates.

To locate your drawing template files

1 From the Finder menu bar, click Go ➤ Applications.

2 In the Applications window, double-click Autodesk ➤ AutoCAD 2011for Mac ➤ AutoCAD for Mac.

3 From the AutoCAD 2011 for Mac menu bar, click AutoCAD 2011 for Mac ➤ Preferences.

NOTE A drawing must be open to see the Preferences menu item.

4 In the Application Preferences dialog box, Application tab, click the arrowto the left of Template Settings.

Locate Customized Files | 15

Page 22: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

5 Under Template Settings, click the arrow sign (+) to the left of DrawingTemplate File Location.

6 Under Drawing Template File Location, click the path name to view thelocation of your drawing template files.

Locate Texture FilesThe locations AutoCAD for Mac looks in for material texture files are storedin the Application Preferences dialog box. You can use the OPTIONS commandto locate which folders are being used to store your material texture files.

To locate your texture files

1 From the Finder menu bar, click Go ➤ Applications.

2 In the Applications window, double-click Autodesk ➤ AutoCAD 2011for Mac ➤ AutoCAD for Mac.

3 From the AutoCAD 2011 for Mac menu bar, click AutoCAD 2011 for Mac ➤ Preferences.

NOTE A drawing must be open to see the Preferences menu item.

4 In the Application Preferences dialog box, Application tab, click the arrowto the left of Texture Maps Search Path.

5 Under Texture Maps Search Path, click the path name to view the locationof your texture files.

Create Command AliasesA command alias is an abbreviation that you enter at the command promptinstead of entering the entire command name.

For example, you can enter c instead of circle to start the CIRCLE command.An alias is not the same as a keyboard shortcut, which is a combination ofkeystrokes, such as Ctrl-S for SAVE.

The acad.pgp file defines command aliases. You can change existing aliases oradd new ones by editing acadlt.pgp in an ASCII text editor. In addition tocommand aliases in acad.pgp, you will also find comment lines which are

16 | Chapter 1 Basic Customization

Page 23: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

preceded by a semicolon (;). Comment lines allow you to add textualinformation to acad.pgp, such as when or who revised the file last.

NOTE Before you edit acad.pgp, create a backup so that you can restore it later,if necessary.

To define a command alias, add a line to the acad.pgp file using the followingsyntax:

abbreviation,*command

where abbreviation is the command alias that you enter at the commandprompt and command is the command being abbreviated. You must enter anasterisk (*) before the command name to identify the line as a command aliasdefinition.

If you can enter a command transparently, you can also enter its aliastransparently. When you enter the command alias, the full command nameis displayed at the command prompt and the command is executed.

You can create command aliases that include the special hyphen (-) prefix,such as those listed here, that accesses the version of a command that displayscommand prompts instead of a dialog box.

BH, *-BHATCH

BD, *-BOUNDARY

NOTE You cannot use command aliases in command scripts. Using commandaliases in custom commands is not recommended.

Restarting AutoCAD for Mac automatically reloads the file.

To open the program parameters file (acad.pgp)

1 From the Finder menu bar, click Go ➤ Home.

2 In the Username window, double-click Library. Continue to navigate toApplication Support/Autodesk/Roaming/AutoCAD 2011 forMac/<version>/<language>/Support and double-click acad.pgp. If promptedfor an application to use, select TextEdit.

Create Command Aliases | 17

Page 24: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

18

Page 25: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Custom Linetypes

AutoCAD for Mac® provides a library of standard linetypes in the acad.lin and acadiso.lin files.You can use the linetypes as they are, modify them, or create your own custom linetypes.

Overview of Linetype DefinitionsLinetypes are defined in one or more linetype definition files that have a .linfile extension.

The linetype name and definition determine the particular dash-dot sequence,the relative lengths of dashes and blank spaces, and the characteristics of anyincluded text or shapes. You can use any of the standard linetypes that AutoCADfor Mac provides, or you can create your own linetypes.

examples of linetypes

A LIN file can contain definitions of many simple and complex linetypes. Youcan add new linetypes to an existing LIN file, or you can create your own LINfile. To create or modify linetype definitions, edit the LIN file using a text editoror word processor or use LINETYPE at the command prompt.

When you create a linetype, you must load the linetype before you can use it.

The LIN files included in AutoCAD for Mac are acad.lin and acadiso.lin. You candisplay or print these text files to better understand how to construct linetypes.

2

19

Page 26: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

Commands

LINETYPE

Loads, sets, and modifies linetypes.

System Variables

MEASUREINIT

Controls whether a drawing you start from scratch uses imperial or metricdefault settings.

Simple Custom LinetypesEach linetype is defined on two lines in a linetype definition file. The firstline contains the linetype name and an optional description. The second lineis the code that defines the actual linetype pattern.

The second line must begin with the letter A (alignment), followed by a listof pattern descriptors that define pen-up lengths (spaces), pen-down lengths(dashes), and dots. You can include comments in an LIN file by beginningthe line with a semicolon (;).

Linetype Definition Format

The format of the linetype definition is

*linetype_name,description

A,descriptor1,descriptor2, ...

For example, a linetype called DASHDOT is defined as

*DASHDOT,Dash dot __ . __ . __ . __ . __ . __ . __ . __

A,.5,-.25,0,-.25

This indicates a repeating pattern starting with a dash 0.5 drawing units long,a space 0.25 drawing units long, a dot, and another space 0.25 drawing unitslong. This pattern continues for the length of the line, ending with a dash 0.5drawing units long. The linetype would be displayed as shown below.

__ . __ . __ . __ . __ . __ . __ . __

LIN files must be saved in ASCII format and use an .lin file extension. Additionalinformation about each field in a linetype definition follows.

20 | Chapter 2 Custom Linetypes

Page 27: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Linetype Name

The linetype name field begins with an asterisk (*) and should provide aunique, descriptive name for the linetype.

Description

The description of the linetype should help you visualize the linetype whenyou edit the LIN file. The description is also displayed in the Linetype Managerand in the Load or Reload Linetypes dialog box.

The description is optional and can include

■ A simple representation of the linetype pattern using ASCII text

■ An expanded description of the linetype

■ A comment such as "Use this linetype for hidden lines"

If you omit the description, do not insert a comma after the linetype name.A description cannot exceed 47 characters.

Alignment Field (A)

The alignment field specifies the action for pattern alignment at the ends ofindividual lines, circles, and arcs. Currently, AutoCAD for Mac supports onlyA-type alignment, which guarantees that the endpoints of lines and arcs startand stop with a dash.

For example, suppose you create a linetype called CENTRAL that displays therepeating dash-dot sequence commonly used as a centerline. AutoCAD forMac adjusts the dash-dot sequence on an individual line so that dashes andline endpoints coincide. The pattern fits the line so that at least half of thefirst dash begins and ends the line. If necessary, the first and last dashes arelengthened. If a line is too short to hold even one dash-dot sequence, AutoCADfor Mac draws a continuous line between the endpoints. For arcs also, thepattern is adjusted so that dashes are drawn at the endpoints. Circles do nothave endpoints, but AutoCAD for Mac adjusts the dash-dot sequence to providea reasonable display.

You must specify A-type alignment by entering a in the alignment field.

Simple Custom Linetypes | 21

Page 28: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Pattern Descriptors

Each pattern descriptor field specifies the length of segments making up thelinetype, separated by commas (no spaces are allowed):

■ A positive decimal number denotes a pen-down (dash) segment of thatlength.

■ A negative decimal number denotes a pen-up (space) segment of thatlength.

■ A dash length of 0 draws a dot.

You can enter up to 12 dash-length specifications per linetype, provided theyfit on one 80-character line in the LIN file. You need to include only onecomplete repetition of the linetype pattern defined by pattern descriptors.When the linetype is drawn, AutoCAD for Mac uses the first pattern descriptorfor the starting and ending dashes. Between the starting and ending dashes,the pattern dash specifications are drawn sequentially, beginning with thesecond dash specification and restarting the pattern with the first dashspecification when required.

A-type alignment requires that the first dash length be 0 or greater (a pen-downsegment). The second dash length should be less than 0 if you need a pen-upsegment and more than 0 if you are creating a continuous linetype. You musthave at least two dash specifications for A-type alignment.

To create a simple linetype from the Command prompt

1 At the command prompt, enter -linetype.

2 Enter c (Create).

3 Enter a name for the linetype and press Enter.

The linetype name can include up to 255 characters. Linetype names cancontain letters, digits, and the special characters dollar sign ($), hyphen(-), and underscore (_). Linetype names cannot include blank spaces.

4 In the Create or Append Linetype File dialog box, select a location fromthe Where drop-down list and specify a LIN linetype library file. ClickSave.

If you select an existing file, the new linetype name is added to thelinetype names in the file.

5 Enter text that describes the new linetype (optional).

22 | Chapter 2 Custom Linetypes

Page 29: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

6 At the Enter Pattern prompt, specify the pattern of the line. Follow theseguidelines:

■ All linetypes must begin with a dash.

■ Enter zeros for dots.

■ Enter negative real numbers for spaces. The value defines the lengthof the space in drawing units.

■ Enter positive real numbers for dashes. The value defines the lengthof the dash in drawing units.

■ Separate each dot, dash, or space value from the next with a comma.

■ Use a space between a dot and a dash.

7 Press Enter to end the command.

NOTE When you create a linetype, it is not loaded into your drawing automatically.Use the Load option of LINETYPE.

To add a simple linetype to a LIN file

1 Open the acad.lin or acadiso.lin file in a text editor that saves in ASCIIformat.

2 Create a header line that includes an asterisk and a linetype pattern name.The name of the linetype pattern is limited to 31 characters.

3 (Optional) To include a description in the header line, follow the linetypepattern name with a comma and description text.

4 Create a descriptor line that includes:

■ All linetypes must begin with a dash.

■ Enter zeros for dots.

■ Enter negative real numbers for spaces. The value defines the lengthof the space in drawing units.

■ Enter positive real numbers for dashes. The value defines the lengthof the dash in drawing units.

■ Separate each dot, dash, or space value from the next with a comma.

■ Use a space between a dot and a dash.

Simple Custom Linetypes | 23

Page 30: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

Commands

LINETYPE

Loads, sets, and modifies linetypes.

System Variables

MEASUREINIT

Controls whether a drawing you start from scratch uses imperial or metricdefault settings.

Text in Custom LinetypesCharacters from text fonts can be included in linetypes.

Characters from text fonts can be included in linetypes. Linetypes withembedded characters can denote utilities, boundaries, contours, and so on.As with simple linetypes, lines are dynamically drawn as you specify thevertices. Characters embedded in lines are always displayed completely; theyare never trimmed.

Embedded text characters are associated with a text style in the drawing. Anytext styles associated with a linetype must exist in the drawing before youload the linetype.

The format for linetypes that include embedded characters is similar to thatfor simple linetypes in that it is a list of pattern descriptors separated bycommas.

Character Descriptor Format

The format for adding text characters in a linetype description is as follows:

["text",textstylename,scale,rotation,xoffset,yoffset]

This format is added as a descriptor to a simple linetype. For example, alinetype called HOT_WATER_SUPPLY is defined as

*HOT_WATER_SUPPLY,---- HW ---- HW ---- HW ---- HW ---- HW ----

A,.5,-.2,["HW",STANDARD,S=.1,U=0.0,X=-0.1,Y=-.05],-.2

This indicates a repeating pattern starting with a dash 0.5 drawing units long,a space 0.2 drawing units long, the characters HW with some scale andplacement parameters, and another space 0.2 drawing units long. The text

24 | Chapter 2 Custom Linetypes

Page 31: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

characters come from the text font assigned to the STANDARD text style at ascale of 0.1, an upright rotation of 0 degrees, an X offset of -0.1, and a Y offsetof -0.05. This pattern continues for the length of the line, ending with a dash0.5 drawing units long. The linetype would be displayed as shown below.

Notice that the total upstroke length is 0.2 + 0.2 = 0.4 and that the text originis offset -.01 units in the X direction from the end of the first upstroke. Anequivalent linetype would be

*HOT_WATER_SUPPLY,---- HW ---- HW ---- HW ---- HW ---- HW ----

A,.5,-.1,["HW",STANDARD,S=.1,U=0.0,X=0.0,Y=-.05],-.3

The total upstroke is still 0.1 + 0.3 = 0.4, but the text origin is not offset in theX direction.

Additional information about each field in the character descriptor follows.The values to be used are signed decimal numbers such as 1, -17, and 0.01.

text The characters to be used in the linetype.

text style name The name of the text style to be used. If no text style isspecified, AutoCAD for Mac uses the currently defined style.

scale S=value. The scale factor to be used for the text style relative to the scaleof the linetype. The height of the text style is multiplied by the scale factor.If the height is 0, the value for S=value alone is used as the height.

rotation U=value, R=value, or A=value. U= specifies upright or easy-to-readtext. R= specifies relative or tangential rotation with respect to the line. A=specifies absolute rotation of the text with respect to the origin; that is, alltext has the same rotation regardless of its position relative to the line. Thevalue can be appended with a d for degrees (degrees is the default value), r forradians, or g for grads. If rotation is omitted, 0 relative rotation is used.

Rotation is centered between the baseline and the nominal cap height.

Text in Custom Linetypes | 25

Page 32: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

NOTE Drawings containing legacy linetypes that do not use the U (upright)rotation flag can be updated to the latest linetype definition by reloading thelinetype from the LIN files. Custom linetypes can be updated by changing the R(rotation) flag to the U (upright) flag prior to reloading a linetype definition. Forinformation on loading a linetype, see Load Linetypes.

xoffset X=value. The shift of the text on the X axis of the linetype, which isalong the line. If xoffset is omitted or is 0, the text is elaborated with nooffset. Use this field to control the distance between the text and the previouspen-up or pen-down stroke. This value is not scaled by the scale factor definedby S=value, but it is scaled to the linetype.

yoffset Y=value. The shift of the text in the Y axis of the linetype, which is ata 90-degree angle to the line. If yoffset is omitted or is 0, the text is elaboratedwith no offset. Use this field to control the vertical alignment of the text withrespect to the line. This value is not scaled by the scale factor defined byS=value, but it is scaled to the linetype.

To include text characters in linetypes

1 Create a simple linetype, as described in To add a simple linetype to aLIN file on page 23.

2 Add the text character descriptor within the linetype pattern, using thefollowing format:

["text",textstylename,scale,rotation,xoffset,yoffset]

Quick Reference

Commands

LINETYPE

Loads, sets, and modifies linetypes.

System Variables

MEASUREINIT

Controls whether a drawing you start from scratch uses imperial or metricdefault settings.

26 | Chapter 2 Custom Linetypes

Page 33: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Shapes in Custom LinetypesSee also:

■ Shapes and Shape Fonts on page 105

A complex linetype can contain embedded shapes that are saved in shapefiles. Complex linetypes can denote utilities, boundaries, contours, and so on.

As with simple linetypes, complex lines are dynamically drawn as the userspecifies vertices. Shapes and text objects embedded in lines are alwaysdisplayed completely; they are never trimmed.

The syntax for complex linetypes is similar to that of simple linetypes in thatit is a comma-delimited list of pattern descriptors. Complex linetypes caninclude shape and text objects as pattern descriptors, as well as dash-dotdescriptors.

The syntax for shape object descriptors in a linetype description is as follows:

[shapename,shxfilename] or [shapename,shxfilename,transform]

where transform is optional and can be any series of the following (eachpreceded by a comma):

R=## Relative rotation

A=## Absolute rotation

U=## Upright rotation

S=## Scale

X=## X offset

Y=## Y offset

In this syntax, ## is a signed decimal number (1, -17, 0.01, and so on), therotation is in degrees, and the remaining options are in linetype-scaled drawingunits. The preceding transform letters, if they are used, must be followed byan equal sign and a number.

The following linetype definition defines a linetype named CON1LINE thatis composed of a repeating pattern of a line segment, a space, and theembedded shape CON1 from the ep.shx file. (Note that the ep.shx file must bein the support path for the following example to work properly.)

*CON1LINE, --- [CON1] --- [CON1] --- [CON1]

A,1.0,-0.25,[CON1,ep.shx],-1.0

Shapes in Custom Linetypes | 27

Page 34: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Except for the code enclosed in square brackets, everything is consistent withthe definition of a simple linetype.

As previously described, a total of six fields can be used to define a shape aspart of a linetype. The first two are mandatory and position-dependent; thenext four are optional and can be ordered arbitrarily. The following twoexamples demonstrate various entries in the shape definition field.

[CAP,ep.shx,S=2,R=10,X=0.5]

The code above draws the CAP shape defined in the ep.shx shape file with ascale of two times the unit scale of the linetype, a tangential rotation of 10degrees in a counterclockwise direction, and an X offset of 0.5 drawing unitsbefore shape elaboration takes place.

[DIP8,pd.shx,X=0.5,Y=1,R=0,S=1]

The code above draws the DIP8 shape defined in the pd.shx shape file with anX offset of 0.5 drawing units before shape drawing takes place, and a Y offsetof one drawing unit above the linetype, with 0 rotation and a scale equal tothe unit scale of the linetype.

The following syntax defines a shape as part of a complex linetype.

[shapename,shapefilename,scale,rotate,xoffset,yoffset]

The definitions of the fields in the syntax follow.

shapename The name of the shape to be drawn. This field must be included.If it is omitted, linetype definition fails. If shapename does not exist in thespecified shape file, continue drawing the linetype but without the embeddedshape.

shapefilename The name of a compiled shape definition file (SHX). If it isomitted, linetype definition fails. If shapefilename is unqualified (that is, nopath is specified), search the library path for the file. If shapefilename is fullyqualified and not found at that location, remove the prefix and search thelibrary path for the file. If it is not found, continue drawing the linetype butwithout the embedded shape.

scale S=value. The scale of the shape is used as a scale factor by which theshape's internally defined scale is multiplied. If the shape's internally definedscale is 0, the S=value alone is used as the scale.

rotate U=value, R=value or A=value. R= signifies relative or tangential rotationwith respect to the line's elaboration. A= signifies absolute rotation of theshape with respect to the origin; all shapes have the same rotation regardlessof their relative position to the line. The value can be appended with a d for

28 | Chapter 2 Custom Linetypes

Page 35: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

degrees (if omitted, degree is the default), r for radians, or g for grads. Ifrotation is omitted, 0 relative rotation is used.

NOTE Drawings containing legacy linetypes that do not use the U (upright)rotation flag can be updated to the latest linetype definition by reloading thelinetype from the LIN files. Custom linetypes can be updated by changing the R(rotation) flag to the U (upright) flag prior to reloading a linetype definition. Forinformation on loading a linetype, see Load Linetypes.

xoffset X=value. The shift of the shape in the X axis of the linetype computedfrom the end of the linetype definition vertex. If xoffset is omitted or is 0,the shape is elaborated with no offset. Include this field if you want acontinuous line with shapes. This value is not scaled by the scale factor definedby S=.

yoffset Y=value. The shift of the shape in the Y axis of the linetype computedfrom the end of the linetype definition vertex. If yoffset is omitted or 0, theshape is elaborated with no offset. This value is not scaled by the scale factordefined by S=.

Quick Reference

Commands

LINETYPE

Loads, sets, and modifies linetypes.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

System Variables

MEASUREINIT

Controls whether a drawing you start from scratch uses imperial or metricdefault settings.

Shapes in Custom Linetypes | 29

Page 36: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

30

Page 37: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Custom Hatch Patterns

AutoCAD for Mac® provides a library of standard hatch patterns in the acad.pat and acadiso.patfiles. You can use the hatch patterns as they are, modify them, or create your own customhatch patterns.

Overview of Hatch Pattern DefinitionsIn addition to using the predefined hatch patterns that are supplied, you candesign and create your own custom hatch patterns.

In addition to using the predefined hatch patterns that are supplied, you candesign and create your own custom hatch patterns. Developing a hatch patterndefinition requires knowledge, practice, and patience. Because customizinghatches requires familiarity with hatch patterns, it is not recommended for newusers.

The hatch patterns supplied by AutoCAD for Mac are stored in the acad.pat andacadiso.pat text files. You can add hatch pattern definitions to this file or createyour own files.

Regardless of where the definition is stored, a custom hatch pattern has thesame format. It has a header line with a name, which begins with an asteriskand is no more than 31 characters long, and an optional description:

*pattern-name, description

It also has one or more line descriptors of the following form:

angle, x-origin,y-origin, delta-x,delta-y,dash-1,dash-2, …

The default hatch pattern ANSI31 shown in the Boundary Hatch and Fill dialogbox looks like this:

3

31

Page 38: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

and is defined as follows:

*ANSI31, ANSI Iron, Brick, Stone masonry

45, 0,0, 0,.125

The pattern name on the first line, *ANSI31, is followed by a description: ANSIIron, Brick, Stone masonry. This simple pattern definition specifies a linedrawn at an angle of 45 degrees, that the first line of the family of hatch linesis to pass through the drawing origin (0,0), and that the spacing betweenhatch lines of the family is to be 0.125 drawing units.

Hatch pattern definitions follow these rules:

■ Each line in a pattern definition can contain up to 80 characters. You caninclude letters, numbers, and the special characters underline (_), hyphen(-), and dollar sign ($). However, you must begin a pattern definition witha letter or number, not a special character.

■ AutoCAD for Mac ignores both blank lines and text to the right of asemicolon.

■ Each pattern line is considered to be the first member of a line family,created by applying the delta offsets in both directions to generate aninfinite family of parallel lines.

■ The delta-x value indicates the displacement between members of thefamily in the direction of the line. It is used only for dashed lines.

■ The delta-y value indicates the spacing between members of the family;that is, it is measured perpendicular to the lines.

■ A line is considered to be of infinite length. A dash pattern is superimposedon the line.

NOTE A blank line must be placed after the last hatch pattern definition in a PATfile. If a blank line is not placed after the last hatch pattern definition, the last hatchpattern definition will not be accessible when creating a hatch fill.

The process of hatching consists of expanding each line in the patterndefinition to its infinite family of parallel lines. All selected objects are checkedfor intersections with any of these lines; any intersections cause the hatchlines to be turned on and off as governed by the hatching style. Each family

32 | Chapter 3 Custom Hatch Patterns

Page 39: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

of hatch lines is generated parallel to an initial line with an absolute originto guarantee proper alignment.

NOTE When changing the value of MaxHatch, you must enter MaxHatch withthe capitalization as shown.

To create a simple hatch pattern

1 Open the acad.pat or acadiso.pat file in a text editor that saves in ASCIIformat.

2 Create a header line that includes an asterisk and a pattern name. Thename of the hatch pattern is limited to 31 characters.

3 (Optional) To include a description in the header line, follow the patternname with a comma and description text.

4 Create a descriptor line that includes

■ An angle at which the line is drawn

■ An X,Y origin point

■ A delta-x of 0

■ A delta-y of any value

Quick Reference

Commands

FILL

Controls the filling of objects such as hatches, 2D solids, and wide polylines.

HATCH

Fills an enclosed area or selected objects with a hatch pattern, solid fill, orgradient fill.

HATCHEDIT

Modifies an existing hatch or fill.

SOLID

Creates solid-filled triangles and quadrilaterals.

Overview of Hatch Pattern Definitions | 33

Page 40: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

System Variables

FILLMODE

Specifies whether hatches and fills, 2D solids, and wide polylines are filledin.

HPANG

Sets the angle for new hatch patterns.

HPBOUND

Controls the object type created by HATCH and BOUNDARY.

HPDOUBLE

Specifies hatch pattern doubling for user-defined patterns.

HPNAME

Sets the default hatch pattern name.

HPSCALE

Sets the hatch pattern scale factor.

HPSPACE

Sets the hatch pattern line spacing for user-defined patterns.

Hatch Patterns with Dashed LinesTo define dashed-line patterns, you append dash-length items to the end ofthe line definition item.

To define dashed-line patterns, you append dash-length items to the end ofthe line definition item. Each dash-length item specifies the length of asegment making up the line. If the length is positive, a pen-down segment isdrawn. If the length is negative, the segment is pen-up, and it is not drawn.The pattern starts at the origin point with the first segment and cycles throughthe segments in circular fashion. A dash length of 0 draws a dot. You canspecify up to six dash lengths per pattern line.

The hatch pattern ANSI33, shown in the Hatch and Gradient dialog box, lookslike this:

34 | Chapter 3 Custom Hatch Patterns

Page 41: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

and is defined as follows:

*ANSI33, ANSI Bronze, Brass, Copper

45, .176776695,0, 0,.25, .125,-.0625

For example, to modify a pattern for 45-degree lines to draw dashed lines witha dash length of 0.5 units and a space between dashes of 0.5 units, the linedefinition would be

*DASH45, Dashed lines at 45 degrees

45, 0,0, 0,.5, .5,-.5

This is the same as the 45-degree pattern shown in Overview of Hatch PatternDefinitions on page 31, but with a dash specification added to the end. Thepen-down length is 0.5 units, and the pen-up length is 0.5, meeting the statedobjectives. If you wanted to draw a 0.5-unit dash, a 0.25-unit space, a dot, anda 0.25-unit space before the next dash, the definition would be

*DDOT45,Dash-dot-dash pattern: 45 degrees

45, 0,0, 0,.5, .5,-.25, 0,-.25

The following example shows the effect of delta-x specifications ondashed-line families. First, consider the following definition:

*GOSTAK

0, 0,0, 0,.5, .5,-.5

This draws a family of lines separated by 0.5, with each line broken equallyinto dashes and spaces. Because delta-x is zero, the dashes in each familymember line up. An area hatched with this pattern would look like this:

Now change the pattern to

*SKEWED

0, 0,0, .5,.5, .5,-.5

It is the same, except that you have set delta-x to 0.5. This offsets eachsuccessive family member by 0.5 in the direction of the line (in this case,parallel to the X axis). Because the lines are infinite, the dash pattern slidesdown the specified amount. The hatched area would look like this:

Hatch Patterns with Dashed Lines | 35

Page 42: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

To create a hatch pattern with dashed lines

1 Open the acad.pat or acadiso.pat file in a text editor that saves in ASCIIformat.

2 Create a header line that includes an asterisk and a pattern name. Thename of the hatch pattern is limited to 31 characters.

3 (Optional) To include a description in the header line, follow the patternname with a comma and description text.

4 Create a descriptor line that includes

■ An angle at which the line is drawn

■ An X,Y origin point

■ A delta-x of any value if you want to offset alternating lines in theline family

■ A delta-y of any value

■ A value for a dash length

■ A value for a dot length

■ An optional second value for a different dash length

■ An optional second value for a different dot length

Quick Reference

Commands

FILL

Controls the filling of objects such as hatches, 2D solids, and wide polylines.

HATCH

Fills an enclosed area or selected objects with a hatch pattern, solid fill, orgradient fill.

HATCHEDIT

Modifies an existing hatch or fill.

SOLID

Creates solid-filled triangles and quadrilaterals.

36 | Chapter 3 Custom Hatch Patterns

Page 43: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

System Variables

FILLMODE

Specifies whether hatches and fills, 2D solids, and wide polylines are filledin.

HPANG

Sets the angle for new hatch patterns.

HPBOUND

Controls the object type created by HATCH and BOUNDARY.

HPDOUBLE

Specifies hatch pattern doubling for user-defined patterns.

HPNAME

Sets the default hatch pattern name.

HPSCALE

Sets the hatch pattern scale factor.

HPSPACE

Sets the hatch pattern line spacing for user-defined patterns.

Hatch Patterns with Multiple LinesComplex hatch patterns can have an origin that passes through offsets fromthe origin and can have multiple members in the line family.

Not all hatch patterns use origin points of 0,0. Complex hatch patterns canhave an origin that passes through offsets from the origin and can havemultiple members in the line family. In composing more complex patterns,you need to carefully specify the starting point, offsets, and dash pattern ofeach line family to form the hatch pattern correctly.

The hatch pattern AR-B816 shown in the Hatch and Gradient dialog box lookslike this:

Hatch Patterns with Multiple Lines | 37

Page 44: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

and is defined as follows with multiple lines describing the pattern:

*AR-B816, 8x16 Block elevation stretcher bond

0, 0,0, 0,8

90, 0,0, 8,8, 8,-8

The following figure illustrates a squared-off, inverted-U pattern (one line up,one over, and one down). The pattern repeats every one unit, and each unitis 0.5 high and wide.

This pattern would be defined as follows:

*IUS,Inverted U's

90, 0,0, 0,1, .5,-.5

0, 0,.5, 0,1, .5,-.5

270, .5,.5, 0,1, .5,-.5

The first line (the up bar) is a simple dashed line with 0,0 origin. The secondline (the top bar) should begin at the end of the up bar, so its origin is 0,.5.The third line (the down bar) must start at the end of the top bar, which is at.5,.5 for the first instance of the pattern, so its origin is at this point. The thirdline of the pattern could be the following:

90, .5,0, 0,1, .5,-.5

or

270, .5,1, 0,1, -.5,.5

The dashed pattern starts at the origin points and continues in the vectordirection given by the angle specification. Therefore, two dashed-line familiesthat are opposed 180 degrees are not alike. Two solid-line families are alike.

The following pattern creates six-pointed stars.

38 | Chapter 3 Custom Hatch Patterns

Page 45: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

This example can help you refine your skills at pattern definition. (Hint: 0.866is the sine of 60 degrees.)

The following is the AutoCAD for Mac definition of this pattern:

*STARS,Star of David

0, 0,0, 0,.866, .5,-.5

60, 0,0, 0,.866, .5,-.5

120, .25,.433, 0,.866, .5,-.5

To create a hatch pattern with multiple lines

1 Open the acad.pat or acadiso.pat file in a text editor that saves in ASCIIformat.

2 Create a header line that includes an asterisk and a pattern name. Thename of the hatch pattern is limited to 31 characters.

3 (Optional) To include a description in the header line, follow the patternname with a comma and description text.

4 Create a descriptor line that includes

■ An angle at which the line is drawn

■ An X,Y origin point

■ A delta-x of any value if you want to offset alternating lines in the linefamily

■ A delta-y of any value

■ A value for a dash length

■ A value for a dot length

■ An optional second value for a different dash length

■ An optional second value for a different dot length

5 Create a second line including all the parameters in the previous step.

6 (Optional) Create additional lines to complete the multiple-line hatchpattern.

Hatch Patterns with Multiple Lines | 39

Page 46: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

Commands

FILL

Controls the filling of objects such as hatches, 2D solids, and wide polylines.

HATCH

Fills an enclosed area or selected objects with a hatch pattern, solid fill, orgradient fill.

HATCHEDIT

Modifies an existing hatch or fill.

SOLID

Creates solid-filled triangles and quadrilaterals.

System Variables

FILLMODE

Specifies whether hatches and fills, 2D solids, and wide polylines are filledin.

HPANG

Sets the angle for new hatch patterns.

HPBOUND

Controls the object type created by HATCH and BOUNDARY.

HPDOUBLE

Specifies hatch pattern doubling for user-defined patterns.

HPNAME

Sets the default hatch pattern name.

HPSCALE

Sets the hatch pattern scale factor.

HPSPACE

Sets the hatch pattern line spacing for user-defined patterns.

40 | Chapter 3 Custom Hatch Patterns

Page 47: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

User InterfaceCustomization

When you work in the program, you use a variety of menus, tool sets, and shortcut menusto help you accomplish your tasks efficiently. You can also streamline your environment bycustomizing these elements.

Understand User Interface CustomizationUsing the customization tools of AutoCAD for Mac, you can tailor your drawingenvironment to suit your needs. The Customize dialog box helps you to easilycreate and modify the menus and tool sets that make up the user interface.

Overview of the CustomizationCustomization of the user interface is done with the Customize dialog box.From the Customize dialog box, you can

■ Create new custom commands or modify existing commands

■ Assign commands to various user interface elements

■ Add or change menus that are displayed on the Mac OS menu bar

■ Add or change tool sets that are displayed on the Tool Sets palette

4

41

Page 48: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Customizable User Interface Elements

The Customize dialog box allows you to create and manage commands thatare used by the user interface. Along with commands, you are able to customizethe following user interface elements

■ Menu bar menus

■ Tool sets

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

TOOLSETS

Opens the Tool Sets palette.

System Variables

DBLCLKEDIT

Controls the double click editing behavior in the drawing area.

MENUNAME

Stores the customization file name, including the path for the file name.

Customization GlossaryYou should know several terms for customizing AutoCAD 2011 for Mac.

Interface element An object that can be customized, such as a menu or toolset.

Interface item The individual parts of a user interface element, such as amenu item or tool set tool.

Macro A series of commands that are run in a defined sequence to accomplisha drawing task.

Palette A modeless interface element that can be docked or floating outsideof the drawing area. Palettes include the Properties Inspector, ReferenceManager, Command Line, and so on.

42 | Chapter 4 User Interface Customization

Page 49: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Tool set An interface element that displays tool groups made up of commandsand flyouts (or drop-downs) that are displayed vertically outside the drawingarea.

Tool group An organizational structure used to lay out commands and flyouts(or drop-downs) for display on the Tool Sets palette.

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

TOOLSETS

Opens the Tool Sets palette.

System Variables

DBLCLKEDIT

Controls the double click editing behavior in the drawing area.

MENUNAME

Stores the customization file name, including the path for the file name.

Customize CommandsCommands in the Customize dialog box are used to define custom macroswhich are used to start standard and custom commands which can be executedfrom the command prompt in AutoCAD for Mac.

Overview of CommandsYou can easily create, edit, and reuse commands. The Commands tab of theCustomize dialog box allows you to create and modify existing commandsthat can then be added to a user interface element.

When you change the properties of a command in the Commands list, theproperties of the command are changed everywhere the command isreferenced. Each property of a command in the Commands list controls whichactions are taken when the command is used and how the command lookswhen added to a user interface element.

Customize Commands | 43

Page 50: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

The following table shows the properties of the Scale command as they appearin the Properties section.

Properties for the Scale command in the Commands list

ExampleDescriptionProperty

ScaleString displayed as the caption of a menu itemor as a tooltip on the Tool Sets palette. The

Name

string must include alphanumeric characterswith no punctuation other than a hyphen (-) oran underscore (_).

Enlarges or reducesselected objects, keep-

String displayed as a tooltip when the cursorhovers over the tool on the Tool Sets palette.

Descrip-tion

ing the proportions ofthe object the sameafter scaling

^C^C_scaleThe command macro. It follows the standardmacro syntax.

Macro

RCDATA_16_SCALEID string of the small-image resource (16 × 16bitmap). The string must include alphanumeric

Image

characters with no punctuation other than ahyphen (-) or an underscore (_). It can also be

a user-defined raster image file. Click the [ ]button to open the Select Image File dialog box.

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

Create, Edit, and Reuse CommandsYou can create a new command from scratch, copy an existing command tocreate a new command, or edit the properties of an existing command.

44 | Chapter 4 User Interface Customization

Page 51: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

When you change the properties of a command in the Commands list, thecommand is updated for all user interface elements that reference thecommand.

To create a custom command

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Commands tab, click Create New Command(+).

A new command (named Command1) is added to the Commands listand properties for the new command are displayed in the Propertiessection.

3 In the Properties section, do the following:

■ In the Name box, enter a name for the command.The name is displayed in a tooltip on the Tool Sets palette and usedas the caption for a menu item.

■ In the Description box, enter a description for the command.The description is displayed in a tooltip on the Tool Sets palette.

■ In the Macro box, enter a macro for the command.

■ In the Image box, click the [ ] button to display the Select an ImageFile dialog box. Select the raster image you want to assign to thecommand, it should be 16x16 pixels

To edit a command

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Commands tab, Commands list, select thecommand to edit.

NOTE When you make a change to a command, the change is applied toall instances of the command in all menus and tool sets.

3 In the Properties section, do any of the following to edit the command:

■ In the Name box, enter a name for the command.The name is displayed in a tooltip on the Tool Sets palette and usedas the caption for a menu item.

■ In the Description box, enter a description for the command.The description is displayed in a tooltip on the Tool Sets palette.

Create, Edit, and Reuse Commands | 45

Page 52: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

■ In the Macro box, enter a macro for the command.

■ In the Image box, click the [ ] button to display the Select an ImageFile dialog box. Select the raster image you want to assign to thecommand, it should be 16x16 pixels

To delete a command

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Commands tab, Commands list, select thecommand to delete.

NOTE Commands assigned to a menu, tool set, shortcut key, or acceleratorcannot be deleted.

3 Click the Options action menu below the Commands list, Gear icon, andclick Delete.

To duplicate a command

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Commands tab, Commands list, select thecommand to duplicate.

3 Click the Options action menu below the Commands list, Gear icon, andclick Duplicate.

Make the desired changes to the new copy of the command.

To use a command

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, click the Menus or Tool Sets tab.

3 In the Commands list, locate the command you want to use and drag itto the menu or tool set you want to add the command to.

46 | Chapter 4 User Interface Customization

Page 53: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

Create MacrosA macro defines the action that results when an interface element is selected.A macro accomplishes a drawing task that would otherwise take a series ofactions by a user.

Overview of MacrosA macro can contain commands, special characters, DIESEL (DirectInterpretively Evaluated String Expression Language) or AutoLISP programmingcode.

You add macros to interface elements by using the Customize dialog box.Select an existing command or create a new command in the Commands liston the Commands tab. Enter a macro in the Macros text box under theProperties section. There are no length limitations for macros. However, youdo need to know how specific characters are used in macros and be aware ofother considerations or limitations.

Macro Basics

A macro in a user interface element can be as simple as a command (such ascircle) and some special characters (such as ^C^C).

For example, the macro ̂ C^C_circle \1, draws a circle with a radius of 1 unit.The components that define this macro are explained in the table below.

Components in CIRCLE macro

ResultComponent typeComponent

Cancels any running commandsSpecial control char-acter

^C^C

Automatically translates the commandthat follows into other languages

Special control char-acter

_

Create Macros | 47

Page 54: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Components in CIRCLE macro

Starts the CIRCLE commandCommandCIRCLE

Creates a pause for the user to specifythe center point

Special control char-acter

\

Responds to the prompt for the circle'sradius (1)

Special control char-acter

1

For a list of special control characters that you can use in macros, see UseSpecial Control Characters in Macros on page 49.

Cancel Running Commands

Make sure that you have no AutoCAD for Mac commands in progress beforeyou execute a macro. To automatically cancel a command before executinga macro, enter ^C^C at the beginning of the macro (which is the same aspressing ESC twice). Although a single ^C cancels most commands, ^C^C isrequired to return to the command prompt from a dimensioning commandand ^C^C^C is required based on the current option of the -LAYER command.^C^C handles canceling out of most command sequences and therefore is therecommended sequence used to ensure no command is active before the macrois started.

Verify Macro Characters

Every character in a macro is significant, even a blank space.

When you place a space at the end of the macro, AutoCAD for Mac processesthe macro as though you had entered a command (circle, for example) andthen pressed the Spacebar to complete the command.

Terminate Macros

Some macros require special terminators. Some commands (TEXT, for example)require you to press Enter rather than Spacebar to terminate the command.Some commands require more than one space (or Enter) to complete, butsome text editors cannot create a line with trailing blanks.

Two special conventions resolve these problems.

■ A semicolon (;) in a macro automatically issues Enter at the Commandprompt.

48 | Chapter 4 User Interface Customization

Page 55: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

■ If a line ends with a control character, a backslash (\), a plus sign (+), or asemicolon (;), AutoCAD for Mac does not add a blank space after it.

An item that ends with a backslash (\) pauses a macro for user input.

Compare the following macros:

ucs

ucs ;

The first example enters ucs at the command prompt and presses Spacebar.The following prompt is displayed.

Specify origin of UCS or[Face/NAmed/OBject/Previous/View/World/X/Y/Z/ZAxis] <World>:

The second example enters ucs, presses Spacebar, and presses Enter, whichaccepts the default value (World).

Suppress Echoes and Prompts in Macros

Characters in a macro appear at the command line as though you had typedthe characters on the keyboard. This display duplication is called “echoing”.You can suppress the “echoed” displays with the MENUECHO system variable.If echoes and prompts from item input are turned off, a ^P in the item turnsthem off.

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

Use Special Control Characters in MacrosYou can use special characters, including control characters, in macros. In amacro, the caret (^) is equivalent to pressing the Command key on thekeyboard. You can combine the caret with another character to constructmacros that do such things as turn the grid on and off (^G) or cancel acommand (^C).

Create Macros | 49

Page 56: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

The macro for the Address command below uses the backslash (\) to pausefor user input and the semicolon (;) for Enter.

text \.4 0 DRAFT Inc;;;Main St.;;;City, State;

The macro starts the TEXT command, pauses for the user to specify a startpoint, and then enters the address on three lines. In the triple semicolon (;;;),the first semicolon ends the text string, the second repeats TEXT, and thethird accepts the default placement below the previous line.

Macros use the special characters listed in the following table.

Special characters used in macros

DescriptionCharacter

Issues Enter;

Issues Enter^M

Issues Tab^I

Enters a space; a blank space between command sequences in acommand is equivalent to pressing the Spacebar

[blank space]

Pauses for user input (cannot be used with accelerators)\

Allows you to access a built-in AutoCAD for Mac command even if itwas undefined using the UNDEFINE command.

.

Translates AutoCAD for Mac commands and options that follow_

Displays the current top-level pull-down, shortcut, or image menu=*

Repeats a command until another command is chosen*^C^C

Introduces a conditional DIESEL macro expression ($M=)$

Turns Snap on or off (equivalent to Command-B)^B

Cancels the active command or command option (equivalent to Esc)^C

Turns Dynamic UCS on or off (equivalent to Control-D)^D

Sets the next isometric plane^E

50 | Chapter 4 User Interface Customization

Page 57: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Special characters used in macros

DescriptionCharacter

Turns Grid on or off (equivalent to Control-G)^G

Issues Backspace^H

Turns Ortho on or off^O

Turns MENUECHO on or off^P

Echoes all prompts, status listings, and input to the printer^Q

Turns command versioning on or off. Command versioning is requiredfor some commands to ensure command macros written in an olderrelease work properly in the latest release.

^R

Turns tablet on or off (equivalent to Control-T)^T

Changes the current viewport^V

Null character that suppresses the automatic addition of Spacebar atthe end of a command

^Z

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

TEXT

Creates a single-line text object.

Pause for User Input in MacrosTo accept input from the keyboard or pointing device in the middle of acommand, place a backslash (\) in the macro at the point where you wantinput.

circle \1

Create Macros | 51

Page 58: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

In the circle example, \1 pauses for the user to specify the center point andthen reads a radius of 1. Note that there is no space after the backslash.

-layer off \;

In this example, the macro starts -LAYER at the Command prompt, enters theOff option (off), and then pauses for the user to enter a layer name (\). Themacro then turns that layer off and exits the -LAYER command (;).

NOTE LAYER normally prompts for another operation and exits only if you pressSpacebar or Enter. In the macro, the semicolon (;) is the equivalent of pressingEnter.

A macro typically resumes after one user input, such as a single point location.Therefore, you cannot construct a macro that accepts a variable number ofinputs (as in object selection) and then continues. However, an exception ismade for SELECT: a backslash (\) suspends the SELECT command until objectselection has been completed. Consider the following example:

select \change previous ;properties color red ;

In this macro, SELECT creates a selection set of one or more objects (select \).The macro then starts CHANGE (change), references the selection set usingthe Previous option (previous;), and changes the color of all selected objectsto red (properties color red ;).

NOTE The backslash character (\) causes a macro to pause for user input. Youcannot use a backslash for any other purpose in a macro. When you need to specifya file directory path, use a forward slash (/) as the path delimiter: for example,/direct/file.

The following circumstances delay resumption of a macro after a pause:

■ If input of a point location is expected, object snap modes may be usedbefore the point is specified.

■ If X/Y/Z point filters are used, the command remains suspended until theentire point has been accumulated.

■ For SELECT only, the macro does not resume until object selection hasbeen completed.

■ If the user responds with a transparent command, the suspended macroremains suspended until the transparent command is completed and theoriginally requested input is received.

52 | Chapter 4 User Interface Customization

Page 59: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

■ If the user responds by choosing another command (to supply options orto execute a transparent command), the original macro is suspended, andthe newly selected item is processed to completion. Then, the suspendedmacro is resumed.

NOTE When command input comes from a command, the settings of the PICKADDand PICKAUTO system variables are assumed to be 1 and 0, respectively. Thispreserves compatibility with previous releases of AutoCAD for Mac and makescustomization easier because you are not required to check the settings of thesevariables.

Quick Reference

Commands

CHANGE

Changes the properties of existing objects.

LAYER

Manages layers and layer properties.

SELECT

Places selected objects in the Previous selection set.

System Variables

PICKADD

Controls whether subsequent selections replace the current selection set oradd to it.

PICKAUTO

Controls automatic windowing at the Select Objects prompt.

Provide International Support in MacrosTo develop menus that can be used with a non-English-language version ofAutoCAD for Mac, precede each command or option with the underscorecharacter (_). The underscore character allows the standard commands andoptions to be translated automatically.

Create Macros | 53

Page 60: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

Use Built-in Commands in MacrosTo develop macros that use built-in commands that are part of AutoCAD forMac, precede each command with the period character (.). The period characterallows the built-in command to be used even if it has been undefined withthe UNDEFINE command making the macro predicable when it is used onother systems that share the same customization file.

Quick Reference

Commands

REDEFINE

Restores AutoCAD internal commands overridden by UNDEFINE.

UNDEFINE

Allows an application-defined command to override an internal command.

Repeat Commands in MacrosYou can use a leading asterisk (*) to repeat a command in a macro until youchoose another command.

Once you have selected a command, you might want to use it several timesbefore moving on to another command. In a macro, you can repeat a commanduntil you choose another command. You cannot use this feature to chooseoptions.

If a macro begins with *^C^C, the command is repeated until you terminateby pressing Esc on the keyboard or by selecting another command.

NOTE Do not use ^C (Cancel) within a macro that begins with the string *^C^C;this cancels the repetition.

54 | Chapter 4 User Interface Customization

Page 61: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

The macros in the following examples repeat the commands:

*^C^Cmove Single

*^C^Ccopy Single

*^C^Cerase Single

*^C^Cstretch Single Crossing

*^C^Crotate Single

*^C^Cscale Single

Each macro in the example starts a command and then prompts you to selectan object. Any other prompts necessary to complete the command aredisplayed, and then the command ends and starts again.

NOTE Command repetition cannot be used in macros for image tile menus.

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

Use Single Object Selection Mode in MacrosSingle Object Selection mode cancels the normal repetition of the SelectObjects prompt in editing commands. After you select one object and respondto any other prompts, the command ends.

Consider the macro in the following example:

*^C^Cerase single

This macro terminates the current command and starts ERASE in Single ObjectSelection mode. After you choose this command, you either select a singleobject to be erased or click a blank area in the drawing and specify windowselection. Any objects selected in this way are erased, and the command isrepeated (due to the leading asterisk) so that you can erase additional objects.Press Esc to exit this mode.

Create Macros | 55

Page 62: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

Use Conditional Expressions in MacrosYou can add conditional expressions to a macro by using a command thatintroduces macro expressions written in DIESEL (Direct Interpretively EvaluatedString Expression Language).

The format is:

$M=expression

Introducing the macro with $M= tells AutoCAD for Mac to evaluate a string asa DIESEL expression, and that expression is the DIESEL expression. Thefollowing example defines a conditional expression in a macro:

FILLMODE $M=$(-,1,$(getvar,fillmode))

The macro switches the FILLMODE system variable on and off by subtractingthe current value of FILLMODE from 1 and returning the resulting value tothe FILLMODE system variable. You can use this method to toggle systemvariables whose valid values are 1 or 0.

Termination of Macros That Contain Conditional Expressions

If you use the DIESEL string language to perform “if-then” tests, conditionsmight exist where you do not want the normal terminating space or semicolon(resulting in Enter). If you add ^Z to the end of the macro, AutoCAD for Macdoes not automatically add a space (Enter) to the end of the macro expression.

As with other control characters in commands, the ^Z used here is a stringcomposed of ^ (a caret) and Z and is not equivalent to pressing Ctrl+Z.

In the following examples, ^Z is used as a macro terminator.

^C^C$M=$(if,$(=,$(getvar,tilemode),0),$S=mview _mspace )^Z

^C^C$M=$(if,$(=,$(getvar,tilemode),0),$S=mview _pspace )^Z

If these macros did not end with ^Z, AutoCAD for Mac would automaticallyadd a space (ENTER), repeating the last command entered.

56 | Chapter 4 User Interface Customization

Page 63: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

See also:

■ Use Special Control Characters in Macros on page 49

■ DIESEL on page 71

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

System Variables

FILLMODE

Specifies whether hatches and fills, 2D solids, and wide polylines are filledin.

Use AutoLISP in MacrosCreating commands that use AutoLISP is a more advanced way to use theAutoCAD for Mac customization feature.

You can use AutoLISP variables and expressions to create macros that performcomplex tasks. To use AutoLISP efficiently in macros, place AutoLISP code ina separate MNL file. AutoCAD for Mac loads the MNL file when it loads aCUIx file with the same name and in the same location.

You can specify additional AutoLISP files to load in the Customize UserInterface (CUI) Editor. Creating commands that use AutoLISP is a moreadvanced way to use the AutoCAD for Mac customization feature. Carefullystudy the following examples and the information in the AutoLISP Referenceand the AutoLISP Developer's Guide. To access the additional help resources, onthe InfoCenter toolbar, to the right of the Help button, click the drop-downarrow. Experimentation and practice will help you use this feature effectively.

Call a Macro

To programmatically execute a pull-down menu macro, use the followingsyntax:

(menucmd "Gcustomizationgroup.element_ID=|")

Create Macros | 57

Page 64: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

The previous syntax works only if the menu macro is part of a menu that ison the AutoCAD for Mac menu bar and is available for use. For moreinformation about this syntax, see the AutoLISP Reference.

Preset Values

An application that uses block insertion presets could provide commands likethese: [Set WINWID][Set WALLTHK][Insert Window]

^C^C^P(setq WINWID (getreal "Enter window width: ")) ^P

^C^C^P(setq WALLTHK (getreal "Enter wall thickness: ")) ^P

^C^C_INSERT window XScale !WINWID YScale !WALLTHK

This code inserts the block named “window,” scaling its X axis to the currentwindow width and its Y axis to the current wall thickness. In this example,the actual values come from the user-defined AutoLISP symbols WINWID andWALLTHK. The rotation is up to the user to decide so that the window canbe rotated in the wall.

Resize Grips

With the following commands, grip size adjustment can be done on the fly:

^P(setvar "gripsize"(1+ (getvar "gripsize")))(redraw)(princ)

^P(setvar "gripsize"(1- (getvar "gripsize")))(redraw)(princ)

To add validity checking to these commands, values less than 0 and greaterthan 255 cannot be used for the GRIPSIZE system variable.

Prompt for User Input

The following item prompts for two points and draws a rectangular polylinewith the specified points as its corners.

^P(setq a (getpoint "Enter first corner: "));\+

(setq b (getpoint "Enter opposite corner: "));\+

pline !a (list (car a)(cadr b)) !b (list (car b)(cadr a)) c;^P

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

58 | Chapter 4 User Interface Customization

Page 65: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Create Tooltips for CommandsTooltips are descriptive messages that are displayed near the cursor when ithovers over a tool set tool.

The Description property associated to a command provides a simpledescription for what the command does. The value of the Description propertyis displayed as part of a basic tooltip that is displayed when the cursor hoversover a tool set tool. Along with the description, the name of the command isalso displayed.

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

Create and Manage Images for CommandsImages can be assigned to commands, and can be of two different types:standard and custom. Standard images come with AutoCAD for Mac in alibrary, while external raster images can be assigned to commands in theCustomize dialog box.

Assign Images to a CommandStandard and custom images can be assigned to a command.

When a command is added to a tool set, the assigned image is displayed onthe tool.

AutoCAD for Mac comes with a library of standard images that are used forthe standard commands; these can be assigned to your own custom commands.You can create your own custom commands using an external image editor.

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

Create Tooltips for Commands | 59

Page 66: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Customize User Interface ElementsUser interface elements in the Customize dialog box are used to control howstandard and custom commands can be started.

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

MenusMenus are displayed on the Mac OS menu bar and are used to organizecommands by general task.

Overview of MenusEach menu can contain both standard and custom commands. Commandscan be grouped with separators and sub-menus. If a menu is longer than thecurrent display resolution in the vertical direction, it is truncated to fit.

When a menu is truncated, two arrows are added to the menu; one is addedat the top and another to the bottom. With the arrows, you can scroll throughthe list of menu items. Sub-menus areindicated on a menu by an arrow thatpoints to the right. When using a sub-menu, it appears to the right of itsassociated menu item normally. If a sub-menu reaches the edge of the display,additional nested sub-menus will be displayed to the left of the menu item.

Menu items on the Mac OS menu bar are executed by clicking it. Unlike amenu item, you do not need to click a sub-menu to access the assigned menuitems. Position the cursor over the sub-menu to expand it and then click themenu item you want to use.

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

60 | Chapter 4 User Interface Customization

Page 67: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Create and Manage Pull-down MenusYou can create pull-down menus, and add commands and sub-menus fordisplay on the Mac OS menu bar.

You can create and modify menus to display and organize the commands tobest match the way you work. Commands are added to a menu from theCommands list in the Customize dialog box. Once commands are added to amenu, you can reposition commands, and organize commands using separatorsand sub-menus.

Sub-menus and Separators

Sub-menus are used to organize and group similar commands together. Youcreate sub-menus in much the same way that you create a menu. Separatorscan also be inserted to group similar commands without adding an additionalnavigation level. There is no clear decision that can be made as to when youmight use a sub-menu over a separator. Some possible reason why you mightconsider to use a sub-menu over a separator is the current length of the menuand how frequently a command might be used.

To create a pull-down menu

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Menus tab, Menus List, select the menu inwhich you want to create the new menu after.

3 Click the Create Menu Element (+) button below the Menus list and clickAdd Menu.

A new menu (named Menu1) is created. The default name changes basedon the number of menus you previously created.

4 Enter a name for the new menu.

The name entered is what will appear on the Mac OS menu bar. Click amenu name twice to rename it.

5 In the Commands list, drag a command to the new menu.

6 Release the button on the pointer device when the menu or sub-menuis highlighted, or the desired location for the command is indicated bya horizontal line.

For information about creating a command, see Create, Edit, and ReuseCommands on page 44.

Menus | 61

Page 68: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

To create a sub-menu

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Menus tab, Menus list, expand the menuyou want to add a sub-menu to.

3 Select the menu item you want to insert the new sub-menu after.

4 Click the Create Menu Element (+) button below the Menus list and clickAdd Sub-menu.

A new sub-menu (named Sub-menu1) is created. The default namechanges based on the number of sub-menus you previously created.

5 Enter a name for the new menu.

The name entered is what will appear on the Mac OS menu bar. Click asub-menu name twice to rename it.

6 In the Commands list, drag a command to the new sub-menu.

7 Release the button on the pointer device when the menu or sub-menuis highlighted, or the desired location for the command is indicated bya horizontal line.

For information about creating a command, see Create, Edit, and ReuseCommands on page 44.

To add a command to a pull-down menu or sub-menu

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, click Menus tab.

3 In the Commands list, drag a command to the menu or sub-menu whichyou want to add a command.

NOTE If you hold the cursor over a menu or sub-menu, it will expand overa short interval of time.

4 Release the button on the pointer device when a menu or sub-menu ishighlighted, or the desired location for the command is indicated by ahorizontal line.

For information about creating a command, see Create, Edit, and ReuseCommands on page 44.

62 | Chapter 4 User Interface Customization

Page 69: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

To change the display name for a pull-down menu, sub-menu, or command

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Menus tab, Menus list, select a menu,sub-menu, or menu item so it is highlighted.

3 You need to click in the Display Name column to edit the name displayedfor a menu item.

4 Click the menu or menu item again to edit its name or display name.

5 Enter the new name and press Enter.

To insert a separator

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Menus tab, Menus list, select a sub-menuor menu item to insert a separator after.

3 Click the Options action menu below the Menus list, Gear icon, and clickInsert Separator.

To duplicate a pull-down menu, sub-menu, command, or separator

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Menus tab, Menus list, select a menu,sub-menu, command, or separator item to duplicate.

3 Click the Options action menu below the Menus list, Gear icon, and clickDuplicate.

4 Enter a new name for the duplicated item.

To delete a pull-down menu, sub-menu, command, or separator

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Menus tab, Menus list, select a menu,sub-menu, command, or separator item to delete.

3 Click the Options action menu below the Menus list, Gear icon, and clickDelete.

NOTE Be careful which item is selected because you cannot undo the deletionof the item. Click Cancel to abort the changes you made.

Menus | 63

Page 70: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

To reposition a pull-down menu, sub-menu, command, or separator

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Menus tab, Menus list, select a menu,sub-menu, command, or separator item to reposition.

3 Click and drag the selected item to its new location in the Menus list.

4 Release the button on the pointer device when the menu or sub-menuis highlighted, or the desired location for the command is indicated bya horizontal line.

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

Tool SetsYou can customize the Tool Sets palette by creating and modifying tool setsand tool groups.

Overview of Tool Sets and Tool GroupsTool Sets are made up of tool groups that contain tools. A tool can be eithera command or flytout (also known as a drop-down). Tool sets are accessedfrom the Tool Sets palette. Each tool group is a maximum of two tools wideand has two different display states: collapsed and expanded.

Position the cursor over a tool on the Tool Sets palette and click to use it. Ifthe tool is a flyout (or drop-down), click and hold the button on the pointerdevice, and release over the tool you want to use.

Tools are not the only interactions that you will interact on the Tool Setspalette. When the cursor is positioned over a tool group, a disclosure trianglemight appear that indicates the tool group can be expanded. Click thedisclosure triangle to expand the panel to access additional tools. After a toolgroup is expanded, click the Lock icon to keep the tool group from collapsing.

64 | Chapter 4 User Interface Customization

Page 71: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

TOOLSETS

Opens the Tool Sets palette.

Create and Manage Tool SetsTool sets are created to organize tool groups on the Tool Sets palette. AutoCADfor Mac comes with three tool sets that are used to organize drafting,annotation, and modeling tools. You create and manage tool sets on the ToolSets tab of the Customize dialog box. After a tool set is created, you click theTool Sets button near the top of the Tool Sets palette to set it current and usethe commands and flyouts (drop-downs) assigned to it.

Tool Groups

Tool sets are often made up of multiple tool groups which are used to organizecommands and flyouts (drop-downs). Each tool group is divided into twodifferent parts, commands that are displayed by default and those that aredisplayed when the tool group is expanded.

You insert a separator to divide a tool group into the two parts, by default atool group is not divided. Tools above the separator are those displayed bydefault. When using the Tool Sets palette, click the disclosure triangle toexpand a tool group so you can access the tools that are hidden by default.Click the Lock icon when the tool group is expanded to keep the tool groupfrom collapsing.

The order tool groups are displayed on the Tool Sets palette are controlled bythe Customize dialog box. Drag a tool set up or down on the Tool Sets tab tochange the order it appears on the Tool Sets palette.

Flyouts and Separators

Flyouts (or drop-downs) are used to help reduce the amount of space thatrelated commands take up. Commands on a flyout are displayed by pressingand holding the button to display a menu with all the commands assignedto the flyout. Release the button over a tool from the flyout to execute theassociated macro.

Tool Sets | 65

Page 72: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Separators can be added to a flyout to help provide an additional level oforganize. When a separator is added to a flyout, a solid horizontal line iscreated across the flyout when it is displayed. A separator can be added to atool group, but it is used to control which commands and flyouts are displayedby default and those that are available only when the tool group is expanded.

To create a tool set

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Tool Sets tab, Tool Sets list, select the toolset in which you want to create the new tool set after.

3 Click the Create Tool Set Element (+) button below the Tool Sets list andclick Add Tool Set.

A new tool set (named Tool Set1) is created. The default name changesbased on the number of tool sets you previously created.

4 Enter a name for the new tool set.

The name entered is what will appear on drop-down menu when theTool Sets button is clicked near the top of the Tool Sets palette. Click atool set name twice to rename it.

5 Expand the new tool set.

6 In the Commands list, drag a command to the default tool group underthe new tool set.

7 Release the button on the pointer device when the tool group or flyoutis highlighted, or the desired location for the command is indicated bya horizontal line.

For information about creating a command, see Create, Edit, and ReuseCommands on page 44.

To create a tool group

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Tool Sets tab, Tool Sets list, expand the toolset you want to add a tool group to.

3 Select the tool group you want to insert the new tool group after.

4 Click the Create Tool Set Element (+) button below the Tool Sets list andclick Add Tool Group.

66 | Chapter 4 User Interface Customization

Page 73: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

A new panel (named Panel1) is created. The default name changes basedon the number of panels you previously created.

5 Enter a name for the new tool group.

The name entered is displayed on the title bar of the tool group when itis expanded.

6 In the Commands list, drag a command to the new tool group.

7 Release the button on the pointer device when the tool group or flyoutis highlighted, or the desired location is indicated by a horizontal line.

For information about creating a command, see Create, Edit, and ReuseCommands on page 44.

To create a flyout

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Tool Sets tab, Tool Sets list, expand the toolset and then the tool group you want to add a flyout to.

3 Select the command or flyout you want to insert the new flyout after.

4 Click the Create Tool Set Element (+) button below the Tool Sets list andclick Add Drop-down.

A new flyout (named Drop-down1) is created. The default name changesbased on the number of flyouts you previously created.

5 Enter a name for the new flyout.

The name entered is not displayed on the Tool Sets palette.

6 In the Commands list, drag a command to the new flyout.

7 Release the button on the pointer device when the flyout is highlighted,or the desired location is indicated by a horizontal line.

For information about creating a command, see Create, Edit, and ReuseCommands on page 44.

To add a command to a tool group or flyout

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, click Tool Sets tab.

3 In the Commands list, drag a command to the tool group or flyout whichyou want to add a command.

Tool Sets | 67

Page 74: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

NOTE If you hold the cursor over a tool group or flyout, it will expand aftera short interval of time.

4 Release the button on the pointer device when a tool group or flyout ishighlighted, or the desired location is indicated by a horizontal line.

For information about creating a command, see Create, Edit, and ReuseCommands on page 44.

To insert a separator

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Tool Sets tab, Tool Sets list, select a toolgroup, flyout, or command to insert a separator after.

3 Click the Options action menu below the Tool Sets list, Gear icon, andclick Insert Separator.

To duplicate a tool group, flyout, command, or separator

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Tool Sets tab, Tool Sets list, select a toolgroup, flyout, command, or separator to duplicate.

3 Click the Options action menu below the Tool Sets list, Gear icon, andclick Duplicate.

4 Enter a new name for the duplicated item.

To delete a tool group, flyout, command, or separator

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Tool Sets tab, Tool Sets list, select a toolgroup, flyout, command, or separator to delete.

3 Click the Options action menu below the Tool Sets list, Gear icon, andclick Delete.

NOTE Be careful which item is selected because you cannot undo the deletionof the item. Click Cancel to abort the changes you made.

68 | Chapter 4 User Interface Customization

Page 75: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

To reposition a tool group, flyout, command, or separator

1 At the Command prompt, enter cui and press Enter.

2 In the Customize dialog box, Tool Sets tab, Tool Sets list, select a toolgroup, flyout, command, or separator to reposition.

3 Click and drag the selected item to its new location in the Tool Sets list.

4 Release the button on the pointer device when the tool group or flyoutis highlighted, or the desired location is indicated by a horizontal line.

Quick Reference

Commands

CUI

Manages the customized user interface elements in the product.

TOOLSETS

Opens the Tool Sets palette.

Tool Sets | 69

Page 76: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

70

Page 77: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

DIESEL

Because DIESEL expressions handle strings exclusively, the USERS1-5 system variables areuseful for passing information from an AutoLISP routine to a DIESEL expression. DIESELexpressions are evaluated by AutoLISP routines through the use of the AutoLISP menucmdfunction.

DIESEL Expressions in MacrosYou can use DIESEL string expressions in customization (CUI) files as anadditional method of creating macros.

These expressions can return string values (text strings) in response to standardAutoCAD for Mac commands, AutoLISP and ObjectARX® routines, and othermacros. They can also return string values to the menu itself, thereby alteringthe appearance or content of a menu label.

A DIESEL expression that you use in a menu item must follow the$section=submenu format where the section name is M and the submenu is theDIESEL expression you want. Frequently, you can implement a macro moreeasily with AutoLISP.

The following examples show two menu items that produce the same result;one uses DIESEL, and the other uses AutoLISP.

This menu item uses the DIESEL expression:

^C^C^P$M=$(if,$(=,$(getvar,cvport),1),mspace,pspace)

This menu item uses the AutoLISP expression:

^C^C^P(if (= (getvar "cvport") 1)(command "mspace")+

(command "pspace"))(princ) ^P

Both menu items provide a way to switch between paper space and model space(if TILEMODE is set to 0), but the DIESEL expression is shorter and is evaluated

5

71

Page 78: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

transparently, not requiring the call to the AutoLISP princ function. If thespecial character ^P (which switches MENUECHO on and off) is omitted inboth cases, the DIESEL expression displays only the issued command, whereasthe AutoLISP expression displays the entire line of code.

Because the value returned by a DIESEL expression is a text string, it can beused in response to an AutoLISP getxxx function call. This functionalityenables menu items to evaluate current drawing conditions and to return avalue to an AutoLISP routine.

The next example is based on these assumptions:

■ The AutoLISP routine is loaded into memory.

■ The CUI excerpt is included in the current customization file.

■ The symbols to insert are one unit high by one unit wide.

■ The DIMSCALE variable is set to the drawing's scale factor (that is, a drawingto be plotted at a scale of 1" = 10' would have a scale factor of 120, or a1/4" = 1' scale drawing would have a scale factor of 48).

If you load and execute the sample AutoLISP routine, AutoCAD for Mac insertsthe symbol at the size and location you have specified. When plotted, thesymbols are the specified size (if the drawing is plotted at the same scale asthat specified by DIMSCALE).

72 | Chapter 5 DIESEL

Page 79: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

The following is a sample AutoLISP routine.

(defun C:SYMIN ( )

(setq sym

(getstring

"\nEnter symbol name: ") ; Prompts for a symbol name

)

(menucmd "s=symsize") ; Switches the screen menu

; to the symsize submenu

(setq

siz (getreal

"\nSelect symbol size: ") ; Prompts for a symbol size

p1 (getpoint

"\nInsertion point: ") ; Prompts for insertion point

)

(command "insert" ; Issues the INSERT command

sym ; using the desired symbol

p1 siz siz 0) ; insertion point, and size

(menucmd "s=") ; Switches to the previous

; screen menu

(princ) ; Exits quietly

)

NOTE An AutoLISP routine that you use regularly should include error checkingto verify the validity of user input.

The DIESEL expressions in the following example multiply the current valueof DIMSCALE by the specified value, and return an appropriate scale factor.

This cannot be done with similar AutoLISP code; a value returned by anAutoLISP expression cannot typically be used as a response to a getxxx functioncall (such as, the getreal function in the preceding sample).

$M=$(*,$(getvar,dimscale),0.375)

$M=$(*,$(getvar,dimscale),0.5)

$M=$(*,$(getvar,dimscale),0.625)

DIESEL expressions can also return string values to pull-down menu itemlabels, so that you can make menus unavailable or otherwise alter the waythey are displayed. To use a DIESEL expression in a pull-down menu label,make sure that the first character is the $ character.

In the next example, the current layer is set to BASE and the following DIESELexpression is used as the label.

$(eval,"Current layer: " $(getvar,clayer))

DIESEL Expressions in Macros | 73

Page 80: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

The result is that the appropriate pull-down menu is displayed and updatedwhenever the current layer changes.

Current Layer: BASE

You can also use this method to interactively change the text displayed in apull-down menu. You use an AutoLISP routine that sets the USERS1-5 systemvariables to the selected text, which can be retrieved by a DIESEL macro in amenu label.

NOTE The width of pull-down and shortcut menus is determined when thecustomization file is being loaded. Menu labels generated or changed by DIESELexpressions after a menu is loaded are truncated to fit within the existing menuwidth.

If you anticipate that a DIESEL-generated menu label will be too wide, youcan use the following example to ensure that the menu width willaccommodate your labels. This example displays the first 10 characters of thecurrent value of the USERS3 (USERS1-5) system variable.

$(eval,"Current value: " $(getvar,users3))+

$(if, $(eq,$(getvar,users3),""), 10 spaces )^C^Cusers3

You cannot use trailing spaces in a menu label to increase the menu width,because trailing spaces are ignored while the menu is being loaded. Any spacesyou use to increase the width of a menu label must be within a DIESELexpression.

The next example uses the same DIESEL expression as the label and a portionof the menu item. It provides a practical way to enter the current day anddate into a drawing.

$(edtime,$(getvar,date),DDD", "D MON YYYY)^C^Ctext +

\\\ $M=$(edtime,$(getvar,date),DDD", "D MON YYYY);

Also, you can use a DIESEL macro to mark pull-down menu labels or makethem unavailable. The following pull-down menu label displays an unavailableERASE while a command is active. The text is displayed normally when acommand is not active.

$(if,$(getvar,cmdactive),~)ERASE

You can use a similar approach to place a mark beside a pull-down menu itemor to interactively change the character used for the mark.

74 | Chapter 5 DIESEL

Page 81: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

USERS1-5

Provides storage and retrieval of text string data.

Catalog of DIESEL FunctionsStatus retrieval, computation, and display are performed by DIESEL functions.All functions have a limit of 10 parameters, including the function name itself.If this limit is exceeded, you get a DIESEL error message.

+ (addition)Returns the sum of the numbers val1, val2, …, val9.

$(+, val1 [, val2, …, val9])

If the current thickness is set to 5, the following DIESEL string returns 15.

$(+, $(getvar,thickness),10)

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

- (subtraction)Returns the result of subtracting the numbers val2 through val9 from val1.

$(-, val1 [, val2 , …, val9])

Catalog of DIESEL Functions | 75

Page 82: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

* (multiplication)Returns the result of multiplying the numbers val1, val2, …, val9.

$(*, val1 [, val2, …, val9])

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

/ (division)Returns the result of dividing the number val1 by val2, …, val9.

$(/, val1 [, val2, …, val9])

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

= (equal to)If the numbers val1 and val2 are equal, the string returns 1; otherwise, itreturns 0.

$(=, val1, val2)

76 | Chapter 5 DIESEL

Page 83: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

< (less than)If the number val1 is less than val2, the string returns 1; otherwise, it returns0.

$(< , val1, val2)

The following expression gets the current value of HPANG; if the value is lessthan the value stored in the system variable USERR1, it returns 1. If the value10.0 is stored in USERR1 and the current setting of HPANG is 15.5, thefollowing string returns 0.

$(<, $(getvar,hpang),$(getvar,userr1))

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

> (greater than)If the number val1 is greater than val2, the string returns 1; otherwise, itreturns 0.

$(>, val1, val2)

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

< (less than) | 77

Page 84: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

!= (not equal to)If the numbers val1 and val2 are not equal, the string returns 1; otherwise,it returns 0.

$(!=, val1, val2)

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

<= (less than or equal to)If the number val1 is less than or equal to val2 , the string returns 1; otherwise,it returns 0.

$(<=, val1, val2)

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

>= (greater than or equal to)If the number val1 is greater than or equal to val2, the string returns 1;otherwise, it returns 0.

$(>=, val1, val2)

78 | Chapter 5 DIESEL

Page 85: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

andReturns the bitwise logical AND of the integers val1 through val9.

$(and, val1 [, val2,…, val9])

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

angtosReturns the angular value in the format and precision specified.

$(angtos, value [, mode, precision])

Edits the given value as an angle in the format specified by the mode andprecision as defined for the analogous AutoLISPfunction. (The values formode are shown in the following table.) If mode and precision are omitted, ituses the current values chosen by the UNITS command.

Angular units values

String formatMode value

Degrees0

De-grees/minutes/seconds

1

Grads2

and | 79

Page 86: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Angular units values

String formatMode value

Radians3

Surveyor's units4

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

edtimeReturns a formatted date and time based on a given picture.

$(edtime, time, picture)

Edits the AutoCAD for Mac Julian date given by time (obtained, for example,from $(getvar,date) according to the given picture). The picture consistsof format phrases replaced by specific representations of the date and time.Characters not interpretable as format phrases are copied literally into theresult of $(edtime). Format phrases are defined as shown in the followingtable. Assume that the date and time are Saturday, 5 September 19984:53:17.506.

edtime format phrases

OutputFormatOutputFormat

4H5D

04HH05DD

53MMSatDDD

17SSSaturdayDDDD

506MSEC9M

80 | Chapter 5 DIESEL

Page 87: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

edtime format phrases

OutputFormatOutputFormat

AMAM/PM09MO

amam/pmSepMON

AA/PSeptemberMONTH

aa/p98YY

1998YYYY

Enter the entire AM/PM phrase as shown in the preceding table; if AM is usedalone, the A will be read literally and the M will return the current month.

If any AM/PM phrases appear in the picture, the H and HH phrases edit the timeaccording to the 12-hour civil clock (12:00-12:59 1:00-11:59) instead of the24-hour clock (00:00-23:59).

The following example uses the date and time from the preceding table. Noticethat the comma must be enclosed in quotation marks because it is read as anargument separator.

$(edtime, $(getvar,date),DDD"," DD MON YYYY - H:MMam/pm)

It returns the following:

Sat, 5 Sep 1998 - 4:53am

If time is 0, the time and date at the moment that the outermost macro wasexecuted is used. This avoids lengthy and time-consuming multiple calls on$(getvar,date) and guarantees that strings composed with multiple $(edtime)macros all use the same time.

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

edtime | 81

Page 88: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

eqIf the strings val1 and val2 are identical, the string returns 1; otherwise, itreturns 0.

$(eq, val1, val2)

The following expression gets the name of the current layer; if the namematches the string value stored in the USERS1 (USERS1-5) system variable, itreturns 1. Assume the string "PART12" is stored in USERS1 and the currentlayer is the same.

$(eq, $(getvar,users1),$(getvar,clayer))Returns 1

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

evalPasses the string str to the DIESEL evaluator and returns the result ofevaluating it.

$(eval, str)

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

fixTruncates the real number value to an integer by discarding any fractionalpart.

$(fix, value)

82 | Chapter 5 DIESEL

Page 89: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

getenvReturns the value of the environment variable varname.

$(getenv, varname)

If no variable with that name is defined, it returns the null string.

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

getvarReturns the value of the system variable with the given varname.

$(getvar, varname)

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

ifConditionally evaluates expressions.

$(if, expr, dotrue [, dofalse])

getenv | 83

Page 90: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

If expr is nonzero, it evaluates and returns dotrue. Otherwise, it evaluatesand returns dofalse. Note that the branch not chosen by expr is not evaluated.

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

indexReturns the specified member of a comma-delimited string.

$(index, which, string)

Assumes that the string argument contains one or more values delimited bythe macro argument separator character, the comma. The which argumentselects one of these values to be extracted, with the first item numbered 0.This function is most frequently used to extract X, Y, or Z coordinate valuesfrom point coordinates returned by $(getvar).

Applications can use this function to retrieve values stored as comma-delimitedstrings from the USERS1-5 system variables.

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

nthEvaluates and returns the argument selected by which.

$(nth, which, arg0 [, arg1,…, arg7])

If which is 0, nth returns arg0, and so on. Note the difference between $(nth)and $(index); $(nth)returns one of a series of arguments to the function,

84 | Chapter 5 DIESEL

Page 91: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

while $(index) extracts a value from a comma-delimited string passed as asingle argument. Arguments not selected by which are not evaluated.

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

orReturns the bitwise logical OR of the integers val1 through val9.

$(or, val1 [, val2,…, val9])

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

rtosReturns the real value in the format and precision specified.

$(rtos, value [, mode, precision])

Edits the given value as a real number in the format specified by the mode andprecision as defined by the analogous AutoLISP function. If mode andprecision are omitted, it uses the current values selected with the UNITScommand.

Edits the given value as a real number in the format specified by mode andprecision. If mode and precision are omitted, it uses the current valuesselected with the UNITS command.

or | 85

Page 92: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

strlenReturns the length of string in characters.

$(strlen, string)

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

substrReturns the substring of string, starting at character start and extending forlength characters.

$(substr, string, start [, length])

Characters in the string are numbered from 1. If length is omitted, it returnsthe entire remaining length of the string.

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

86 | Chapter 5 DIESEL

Page 93: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

upperReturns the string converted to uppercase according to the rules of the currentlocale.

$(upper, string)

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

xorReturns the bitwise logical XOR of the integers val1 through val9.

$(xor, val1 [, val2,…, val9])

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

DIESEL Error MessagesGenerally, if you make a mistake in a DIESEL expression, what went wrongwill be obvious. Depending on the nature of the error, DIESEL embeds anerror indication in the output stream.

DIESEL error messages

DescriptionError message

Syntax error (usually a missing right parenthesis or a runawaystring)

$?

Incorrect arguments to func$(func,??)

upper | 87

Page 94: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

DIESEL error messages

DescriptionError message

Unknown function func$(func)??

Output string too long—evaluation truncated$(++)

Quick Reference

System Variables

MENUECHO

Sets menu echo and prompt control bits.

88 | Chapter 5 DIESEL

Page 95: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Command Scripts

A script reads and executes commands from a text file. You can run a script when you startAutoCAD for Mac®, or you can run a script from within AutoCAD for Mac using the SCRIPTcommand.

Create Command ScriptsA script is a text file that contains a series of commands. Common uses forscripts are to customize startup and to automate repetitive tasks.

Overview of Command ScriptsA script is a text file with one command on each line.

You can invoke a script at startup, or you can run a script during a work sessionby using the SCRIPT command. A script also provides an easy way to createcontinuously running displays for product demonstrations and trade shows.

You create script files outside the program using a text editor (such as TextEdit)that can save the file in ASCII format. The file extension must be .scr.

Each line of the script file contains a command. Each blank space in a scriptfile is significant because SPACEBAR is accepted as a command or data fieldterminator. You must be very familiar with the sequence of prompts to providean appropriate sequence of responses in the script file.

NOTE Keep in mind that prompts and command names may change in futurereleases, so you may need to revise your scripts when you upgrade to a later versionof this program. For similar reasons, avoid the use of abbreviations; future commandadditions might create ambiguities.

6

89

Page 96: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

A script can execute any command at the command prompt except a commandthat displays a dialog box. In most cases, a command that displays a dialogbox has an alternative version of the command that displays commandprompts instead of a dialog box.

Script files can contain comments. Any line that begins with a semicolon (;)is considered a comment, and it is ignored while the script file is beingprocessed. The last line of the file must be blank.

All references to long file names that contain embedded spaces must beenclosed in double quotes. For example, to open the drawing my house.dwgfrom a script, you must use the following syntax:

open "my house"

The following commands are useful in scripts:

'DELAY Provides a timed pause within a script (in milliseconds)

RESUME Continues an interrupted script

RSCRIPT Repeats a script file

When command input comes from a script, it is assumed that the settings ofthe PICKADD and PICKAUTO system variables are 1 and 0, respectively;therefore, you do not have to check the settings of these variables.

A script is treated as a group, a unit of commands, reversible by a single Ucommand. However, each command in the script causes an entry in the undolog, which can slow script processing. If you like, you can use UNDO ControlNone to turn off the undo feature before running the script, or you can writeit at the beginning of the script itself. Remember to turn it back on (UNDOControl All) when the script is finished.

The script that is running stops when another script command is invoked.

To create a script that changes settings in a drawing

This script turns on the grid, sets the global linetype scale to 3.0, and sets layer0 as the current layer with red as the color.

1 In a text editor, enter grid on.

2 On the next line, enter ltscale 3.0.

3 On the next line, enter layer set 0 color red 0.

4 Add a blank line.

5 Save the file as ASCII text (TXT file), with a file extension of .scr.

90 | Chapter 6 Command Scripts

Page 97: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

The script file may contain comments, as follows:

; Turn grid on

grid on

; Set scale for linetypes

ltscale 3.0

; Set current layer and its color

layer set 0 color red 0

; Blank line above to end LAYER command

Quick Reference

Commands

DELAY

Provides a timed pause within a script.

RESUME

Continues an interrupted script.

RSCRIPT

Repeats a script file.

SCRIPT

Executes a sequence of commands from a script file.

Run Scripts at StartupA script that runs at startup can open a drawing and change its settings.

Suppose that every time you begin a new drawing, you turn on the grid, setthe global linetype scale to 3.0, and set layer 0 as your current layer, with redas the color. You can do this using a drawing template, but you could do itinstead with the following script and store it in a text file called setup.scr.

grid on

ltscale 3.0

layer set 0 color red 0

The first line turns on the grid. The second line sets the global scale forlinetypes. The third line sets the current layer to layer 0 and sets its defaultcolor to red. AutoCAD for Mac assumes that in a script you want to use the

Run Scripts at Startup | 91

Page 98: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

version of LAYER command that displays command prompts rather than thepalette version. The result is equivalent to entering -layer at the commandprompt. The fourth line is blank, ending LAYER.

You could run a script at startup to open a drawing by using the followingsyntax in the Terminal:

AutoCAD drawing_name -b setup

All file names that contain embedded spaces must be enclosed in doublequotes, for example, “guest house”.

Including the file extensions .exe, .dwg, .dwt, and .scr is optional. If AutoCADfor Mac cannot find the script file, AutoCAD for Mac reports that it cannotopen the file.

To run the same script at startup but create a new drawing using theMyTemplate.dwt file as the template, enter the following in the Terminal:

AutoCAD -t MyTemplate -b setup

This command creates a new drawing and issues a sequence of setup commandsfrom the setup.scr file. When the script has finished running, the commandprompt is displayed.

If you want to use the default template for the new drawing, you can omitthe -t switch and the template file name.

To run a script at startup

1 Click local drive ➤ Applications ➤ Utilities ➤ Terminal.

2 In the Terminal, enter AutoCAD drawing_name -b script_name.

NOTE AutoCAD listed above is the path to the AutoCAD executable. Bydefault it is located at:/Applications/Autodesk/<release>/AutoCAD.app/Contents/MacOS/AutoCAD

To start a new file, instead of a drawing file name, enter the -t switch andthe name of a template file: -t template_drawing.

The name of the script file must be the last parameter listed. The fileextensions are optional.

3 Press Enter.

AutoCAD for Mac opens the drawing and executes the commands in thescript file. When the script has been completed, the Command promptis displayed.

92 | Chapter 6 Command Scripts

Page 99: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Introduction toProgramming Interfaces

The programming interfaces introduced here are AutoLISP®, and ObjectARX™. The type ofinterface you use depends on your application needs and programming experience.

AutoLISPAutoLISP is based on the LISP programming language, which is simple to learnand very powerful. Because AutoCAD for Mac has a built-in LISP interpreter,you can enter AutoLISP code at the command prompt or load AutoLISP codefrom external files.

Overview of AutoLISPAutoLISP is an application interface in AutoCAD for Mac that automating ofdesign tasks. When an AutoLISP application or routine is loaded, it functionsin its own namespace for each drawing that is open. A namespace is an insulatedenvironment keeping AutoLISP routines that are specific to one drawing fromhaving symbol or variable name and value conflicts with those in anotherdrawing. For example, the following line of code sets a different value to thesymbol a for different documents.

(setq a (getvar "DWGNAME"))

AutoLISP applications or routines can interact with AutoCAD for Mac in manyways. These routines can prompt the user for input, access built-in AutoCADfor Mac commands directly, and modify or create objects in the drawingdatabase. By creating AutoLISP routines you can add discipline-specificcommands to AutoCAD for Mac. Some of the standard AutoCAD for Maccommands are actually AutoLISP applications.

7

93

Page 100: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

AutoLISP provides two file formats for applications:

■ Reading an LSP file (.lsp)—an ASCII text file that contains AutoLISP programcode.

■ Reading an FAS file (.fas)—a binary, compiled version of a single LSPprogram file.

NOTE Like-named AutoLISP application files are loaded based on their Modifiedtime stamp; the LSP or FAS file with the most recent time stamp is loaded unlessyou specify the full file name (including the file name extension).

Because AutoCAD for Mac can read AutoLISP code directly, no compiling isrequired. This makes AutoLISP an easy language to experiment with, regardlessof your programming experience.

Even if you are not interested in writing AutoLISP applications, your AutoCADfor Mac package includes many useful routines. Routines are also available asshareware through third-party developers. Knowing how to load and use theseroutines can enhance your productivity.

NOTE When command input comes from the AutoLISP command function, thesettings of the PICKADD and PICKAUTO system variables are assumed to be 1 and0, respectively. This preserves compatibility with previous releases of AutoCAD forMac and makes customization easier (because you don't have to check the settingsof these variables).

For information about AutoLISP programming, see the AutoLISP Developer'sGuide, and for information about AutoLISP, see the AutoLISP Reference in theHelp system.

Quick Reference

System Variables

PICKADD

Controls whether subsequent selections replace the current selection set oradd to it.

PICKAUTO

Controls automatic windowing at the Select Objects prompt.

94 | Chapter 7 Introduction to Programming Interfaces

Page 101: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Use AutoLISP Applications

See also:

■ Overview of File Organization on page 3

AutoLISP applications are stored in ASCII text files that you can edit. Beforeyou can use an AutoLISP application, it must first be loaded.

AutoLISP applications are stored in ASCII text files with the .lsp extension.These files generally have a header portion that describes a routine, its use,and any specific instructions. This header might also include comments thatdocument the author and the legal information regarding the use of theroutine. Comments are preceded by a semicolon (;). You can view and editthese files with a text editor or word processor that can produce an ASCII textfile.

Before you can use an AutoLISP application, it must first be loaded. You canuse the APPLOAD command or the AutoLISP load function to load anapplication. Loading an AutoLISP application loads the AutoLISP code fromthe LSP file into your system's memory.

Loading an application with the load function involves entering AutoLISPcode at the command prompt. If the load function is successful, it displaysthe value of the last expression in the file at the command prompt. This isusually the name of the last function defined in the file or instructions onusing the newly loaded function. If load fails, it returns an AutoLISP errormessage. A load failure can be caused by incorrect coding in the file or byentering the wrong file name at the command prompt. The syntax for theload function is

(load filename [onfailure])

This syntax shows that the load function has two arguments: filename, whichis required, and onfailure, which is optional. When loading an AutoLISP fileat the command prompt, you typically supply only the filename argument.The following example loads the AutoLISP file newfile.lsp.

Command: (load "newfile")

The .lsp extension is not required. This format works for any LSP file in thecurrent library path.

To load an AutoLISP file that is not in the library path, you must provide thefull path and file name as the filename argument.

Command: (load "/files/morelisp/newfile")

Use AutoLISP Applications | 95

Page 102: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

NOTE When specifying a directory path, you must use a slash (/) or two backslashes(\\) as the separator, because a single backslash has a special meaning in AutoLISP.

Quick Reference

Commands

APPLOAD

Loads and unloads applications and defines which applications to load atstartup.

Automatically Load and Run AutoLISP RoutinesYou can load AutoLISP routines each time you run AutoCAD for Mac. Youcan also execute certain commands or functions at specific times during adrawing session.

Overview of AutoLISP Automatic Loading

See also:

■ S::STARTUP Function: Postinitialization Execution on page 101

AutoCAD for Mac loads the contents of two user-definable files automatically:acad.lsp and acaddoc.lsp.

By default, the acad.lsp file is loaded only once, when AutoCAD for Mac starts,whereas acaddoc.lsp is loaded with each individual document (or drawing).This lets you associate the loading of the acad.lsp file with application startup,and the acaddoc.lsp file with document (or drawing) startup. The defaultmethod for loading these startup files can be modified by changing the settingof the ACADLSPASDOC system variable.

If one of these files defines a function of the special type S::STARTUP, thisroutine runs immediately after the drawing is fully initialized. The S::STARTUPfunction is described in S::STARTUP Function: Postinitialization Execution onpage 101. As an alternative, the APPLOAD command provides a Startup Suiteoption that loads the specified applications without the need to edit any files.

The acad.lsp and acaddoc.lsp startup files are not provided with AutoCAD forMac. It is up to the user to create and maintain these files.

96 | Chapter 7 Introduction to Programming Interfaces

Page 103: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Command Autoloader

When you automatically load a command using the load or command functions,the command's definition takes up memory whether or not you actually usethe command. The AutoLISP autoload function makes a command availablewithout loading the entire routine into memory. Adding the following codeto your acaddoc.lsp file automatically loads the commands CMD1, CMD2, andCMD3 from the cmds.lsp file and the NEWCMD command from the newcmd.lspfile.

(autoload "CMDS" '("CMD1" "CMD2" "CMD3"))

(autoload "NEWCMD" '("NEWCMD"))

The first time you enter an automatically loaded command at the commandprompt, AutoLISP loads the entire command definition from the associatedfile. AutoLISP also provides the autoarxload function for ObjectARXapplications. See autoload and autoarxload in the AutoLISP Reference.

NOTE Like-named AutoLISP startup files are loaded based on their Modified timestamp; the LSP file with the most recent time stamp is loaded unless you specifythe full file name (including the file name extension).

Quick Reference

Commands

APPLOAD

Loads and unloads applications and defines which applications to load atstartup.

System Variables

ACADLSPASDOC

Controls whether the acad.lsp file is loaded into every drawing or just thefirst drawing opened in a session.

The ACAD.LSP File

See also:

■ Overview of File Organization on page 3

Automatically Load and Run AutoLISP Routines | 97

Page 104: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

■ Prevent AutoLISP Errors When Loading Startup Files on page 100

You can create an acad.lsp file if you regularly use specific AutoLISP routines.When you start AutoCAD for Mac, it searches the support file search path foran acad.lsp file. If an acad.lsp file is found, it is loaded into memory.

The acad.lsp file is loaded at each drawing session startup when AutoCAD forMac is launched. Because the acad.lsp file is intended to be used forapplication-specific startup routines, all functions and variables defined in anacad.lsp file are only available in the first drawing. You will probably want tomove routines that should be available in all documents from your acad.lspfile into the acaddoc.lsp file.

The recommended functionality of acad.lsp and acaddoc.lsp can be overriddenwith the ACADLSPASDOC system variable. If the ACADLSPASDOC systemvariable is set to 0 (the default setting), the acad.lsp file is loaded just once:upon application startup. If ACADLSPASDOC is set to 1, the acad.lsp file isreloaded with each new drawing.

The acad.lsp file can contain AutoLISP code for one or more routines, or justa series of load function calls. The latter method is preferable, becausemodification is easier. If you save the following code as an acad.lsp file, thefiles mysessionapp1.lsp, databasesynch.lsp, and drawingmanager.lsp are loadedevery time you start AutoCAD for Mac.

(load "mysessionapp1")

(load "databasesynch")

(load "drawingmanager")

Quick Reference

Commands

APPLOAD

Loads and unloads applications and defines which applications to load atstartup.

System Variables

ACADLSPASDOC

Controls whether the acad.lsp file is loaded into every drawing or just thefirst drawing opened in a session.

98 | Chapter 7 Introduction to Programming Interfaces

Page 105: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

The ACADDOC.LSP File

See also:

■ Overview of File Organization on page 3

■ Prevent AutoLISP Errors When Loading Startup Files on page 100

The acaddoc.lsp file is intended to be associated with each document (ordrawing) initialization. This file is useful if you want to load a library ofAutoLISP routines to be available every time you start a new drawing (or openan existing drawing).

Each time a drawing opens, AutoCAD for Mac searches the library path foran acaddoc.lsp file. If it finds one, it loads the file into memory. The acaddoc.lspfile is always loaded with each drawing regardless of the settings ofACADLSPASDOC.

Most users will have a single acaddoc.lsp file for all document-based AutoLISProutines. AutoCAD for Mac searches for an acaddoc.lsp file in the order definedby the library path; therefore, with this feature, you can have a differentacaddoc.lsp file in each drawing directory, which would load specific AutoLISProutines for certain types of drawings or jobs.

The acaddoc.lsp file can contain AutoLISP code for one or more routines, orjust a series of load function calls. The latter method is preferable, becausemodification is easier. If you save the following code as an acaddoc.lsp file, thefiles mydocumentapp1.lsp, build.lsp, and counter.lsp are loaded every time a newdocument is opened.

(load "mydocumentapp1")

(load "build")

(load "counter")

Quick Reference

Commands

APPLOAD

Loads and unloads applications and defines which applications to load atstartup.

Automatically Load and Run AutoLISP Routines | 99

Page 106: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

System Variables

ACADLSPASDOC

Controls whether the acad.lsp file is loaded into every drawing or just thefirst drawing opened in a session.

Prevent AutoLISP Errors When Loading Startup Files

See also:

■ S::STARTUP Function: Postinitialization Execution on page 101

If an AutoLISP error occurs while you are loading a startup file, the remainderof the file is ignored and is not loaded.

Files specified in a startup file that do not exist or that are not in the AutoCADfor Mac library path generally cause errors. Therefore, you may want to usethe onfailure argument with the load function. The following example usesthe onfailure argument:

(princ (load "mydocapp1" "\nMYDOCAPP1.LSP file not loaded."))

(princ (load "build" "\nBUILD.LSP file not loaded."))

(princ (load "counter" "\nCOUNTER.LSP file not loaded."))

(princ)

If a call to the load function is successful, it returns the value of the lastexpression in the file (usually the name of the last defined function or amessage regarding the use of the function). If the call fails, it returns the valueof the onfailure argument. In the preceding example, the value returned bythe load function is passed to the princ function, causing that value to bedisplayed at the command prompt.

For example, if an error occurs while AutoCAD for Mac loads the mydocapp1.lspfile, the princ function displays the following message and AutoCAD for Maccontinues to load the two remaining files:

MYDOCAPP1.LSP file not loaded.

If you use the command function in an acad.lsp or acaddoc.lsp, it should be calledonly from within a defun statement. Use the S::STARTUP function to definecommands that need to be issued immediately when you begin a drawingsession.

100 | Chapter 7 Introduction to Programming Interfaces

Page 107: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

S::STARTUP Function: Postinitialization ExecutionYou can define an S::STARTUP function to perform any needed setupoperations after the drawing is initialized.

The startup LISP files (acad.lsp and acaddoc.lsp) are all loaded into memorybefore the drawing is completely initialized. Typically, this does not pose aproblem, unless you want to use the command function, which is not guaranteedto work until after a drawing is initialized.

If the user-defined function S::STARTUP is included in an acad.lsp or acaddoc.lsp,it is called when you enter a new drawing or open an existing drawing. Thus,you can include a definition of S::STARTUP in the AutoLISP startup file toperform any setup operations.

For example, if you want to override the standard HATCH command by addinga message and then switching to the BHATCH command, use an acaddoc.lspfile that contains the following:

(defun C:HATCH ( )

(alert "Using the BHATCH command!")

(princ "\nEnter OLDHATCH to get to real HATCH command.\n")

(command "BHATCH")

(princ)

)

(defun C:OLDHATCH ( )

(command ".HATCH")

(princ)

)

(defun-q S::STARTUP ( )

(command "undefine" "hatch")

(princ "\nRedefined HATCH to BHATCH!\n")

)

Before the drawing is initialized, new definitions for HATCH and OLDHATCHare defined with the defun function. After the drawing is initialized, theS::STARTUP function is called and the standard definition of HATCH isundefined.

NOTE To be appended, the S::STARTUP function must have been defined withthe defun-q function rather than defun.

Because an S::STARTUP function can be defined in many places (an acad.lspor acaddoc.lsp or any other AutoLISP file loaded from any of these), it's possibleto overwrite a previously defined S::STARTUP function.

Automatically Load and Run AutoLISP Routines | 101

Page 108: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

The following example shows one method of ensuring that your startupfunction works with other functions.

(defun-q MYSTARTUP ( )

... your startup function ...

)

(setq S::STARTUP (append S::STARTUP MYSTARTUP))

The previous code appends your startup function to that of an existingS::STARTUP function and then redefines the S::STARTUP function to includeyour startup code. This works properly regardless of the prior existence of anS::STARTUP function.

ObjectARXObjectARX technology provides the foundation for design software applicationsto share intelligent object data. You can run third-party ObjectARX applicationprograms or write your own.

Overview of ObjectARXObjectARX® (AutoCAD for Mac Runtime Extension) is a compiled-languageprogramming environment for developing AutoCAD for Mac applications.The ObjectARX programming environment allows you to load and run yourcompiled projects in the same address space as AutoCAD for Mac. This allowsyour programs to operate directly with core AutoCAD for Mac data structuresand code.

The ObjectARX libraries allow you to take advantage of the AutoCAD for Macopen architecture, providing direct access to the AutoCAD for Mac databasestructures, graphics system, and AutoCAD for Mac geometry engine to extendAutoCAD for Mac classes and capabilities at runtime. Additionally, you candefine new commands that operate exactly the same way as native AutoCADfor Mac commands.

You can use ObjectARX libraries in conjunction with AutoLISP, enablingcross-API integration.

The ObjectARX programming environment is described in the ObjectARXDeveloper's Guide. The documentation is part of the ObjectARX SoftwareDevelopment Kit (SDK), which can be downloaded from the DevelopmentTools section of the Autodesk website.

102 | Chapter 7 Introduction to Programming Interfaces

Page 109: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Use ObjectARX Applications

See also:

■ Overview of File Organization on page 3

To load an ObjectARX application, you use the Load option of the ARXcommand. After loading, all commands defined by this application areavailable at the command prompt.

Some ObjectARX applications use large amounts of system memory. If youare finished using an application and want to remove it from memory, usethe Unload option of ARX.

You can also load an ObjectARX application with the arxload AutoLISPfunction. The syntax for the arxload function is almost identical to that ofthe load function used with AutoLISP files. If the arxload function loads theObjectARX program successfully, it returns the program name. The syntax forthe arxload function is as follows:

(arxload filename [onfailure])

The two arguments for the arxload function are filename and onfailure. Aswith the load function, the filename argument is required and must be thecomplete path name description of the ObjectARX program file to load. Theonfailure argument is optional and typically not used when you loadObjectARX programs from the command prompt. The following exampleloads the ObjectARX application myapp.arx.

(arxload "myapp")

As with AutoLISP files, AutoCAD for Mac searches the library path for thespecified file. If you need to load a file that is not in the library path, you mustprovide the full path name description of the file.

NOTE When specifying a directory path, you must use a slash (/) or two backslashes(\\) as the separator, because a single backslash has a special meaning in AutoLISP.

Attempting to load an application that has previously been loaded results inan error. Before using arxload you should use the arx function to check thecurrently loaded applications.

To unload an application with AutoLISP, use the arxunload function. Thefollowing example unloads the myapp application.

(arxunload "myapp")

Use ObjectARX Applications | 103

Page 110: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Using the arxunload function not only removes the application from memorybut also removes the command definitions associated with that application.

Quick Reference

Commands

ARX

Loads, unloads, and provides information about ObjectARX applications.

104 | Chapter 7 Introduction to Programming Interfaces

Page 111: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Shapes and Shape Fonts

With AutoCAD for Mac®, you can define shapes to use as drawing symbols and text fonts.This appendix explains how to create and compile your own shape and font files.

Overview of Shape FilesShapes are objects that you use like blocks. First you use the LOAD commandto load the compiled shape file containing the shape definition. Then you usethe SHAPE command to insert shapes from the file into your drawing. You canspecify the scale and rotation to use for each shape as you add it. AutoCAD forMac SHP fonts are a special type of shape file, and are defined in the same wayas shape files.

Blocks are more versatile and easier to use and apply than shapes. However,shapes are more efficient for AutoCAD for Mac to store and draw. User-definedshapes are helpful when you must insert a simple part many times and whenspeed is important.

Compile Shape/Font Files

You enter the description of shapes in a specially formatted text file with a fileextension of .shp. To create the file, use a text editor or word processor thatenables you to save in ASCII format, and then compile the ASCII file. Compilinga shape definition file (SHP) generates a compiled shape file (SHX).

The compiled file has the same name as the shape definition file but with a filetype of SHX. If the shape definition file defines a font, you use the STYLEcommand to define a text style. Then, you use one of the text placementcommands (TEXT or MTEXT) to place the characters in the drawing. If the shapedefinition file defines shapes, you use the LOAD command to load the shapefile into the drawing. Then, you use the SHAPE command to place the individualshapes in the drawing (similar in concept to the INSERT command).

8

105

Page 112: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Compile PostScript Fonts

To use a Type 1 PostScript font in AutoCAD for Mac, you must first compileit into an AutoCAD for Mac shape file. The COMPILE command accepts bothSHP and PFB files as input and generates an SHX file. Compiled versions ofPostScript fonts can take a lot of disk space, so compile only those fonts youuse frequently.

AutoCAD for Mac cannot compile and load every Type 1 font. The PostScriptfont facilities in AutoCAD for Mac are intended to process a subset of Adobefonts. If you receive an error while compiling a PostScript font, the resultingSHX file (if one is generated) may not load into AutoCAD for Mac.

For more information on the Adobe Type 1 font format, refer to Adobe Type1Font Format Version 1.1. When you've purchased and installed these fonts, youcan begin using them with AutoCAD for Mac.

NOTE Make sure you understand any copyright that accompanies the PostScriptfonts you use. The same copyright restrictions generally apply to the SHX form offonts you've compiled.

To compile a shape or font file

■ At the Command prompt, enter compile and press Enter.

In the Select Shape or Font File dialog box, you can select a shape definitionfile (SHP) or PostScript font file (PFB). After you select the file name, compilingbegins. If AutoCAD for Mac finds an error in the shape descriptions, a messageis displayed telling you the type of error and the line number. When compilingis complete, the following messages are displayed:

Compilation successful.Output file name.shx contains nnn bytes.

Quick Reference

Commands

COMPILE

Compiles shape files and PostScript font files into SHX files.

LOAD

Makes shapes available for use by the SHAPE command.

106 | Chapter 8 Shapes and Shape Fonts

Page 113: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Create Shape Definition FilesAutoCAD for Mac font and shape files (SHX) are compiled from shapedefinition files (SHP). You can create or modify shape definition files with atext editor or word processor that saves files in ASCII format.

Shape DescriptionsAutoCAD for Mac font and shape files (SHX) are compiled from shapedefinition files (SHP). You can create or modify shape definition files with atext editor or word processor that saves files in ASCII format.

The syntax of the shape description for each shape or character is the sameregardless of the final use (shape or font) for that shape description. If a shapedefinition file is to be used as a font file, the first entry in the file describesthe font itself rather than a shape within the file. If this initial entry describesa shape, the file is used as a shape file.

Being able to create your own shape definitions is a valuable skill. Keep inmind, however, that this is a very complex subject to learn and requirespatience.

Each line in a shape definition file can contain up to 128 characters. Longerlines cannot be compiled. Because AutoCAD for Mac ignores blank lines andtext to the right of a semicolon, you can embed comments in shape definitionfiles.

Each shape description has a header line of the following form and is followedby one or more lines containing specification bytes, separated by commas andterminated by a 0.

*shapenumber,defbytes,shapename

specbyte1,specbyte2,specbyte3,...,0

The following list describes the fields of a shape description:

shapenumber A number, unique to the file, between 1 and 258 (and up to32768 for Unicode fonts), and preceded by an asterisk (*). Non-Unicode fontfiles use the shape numbers 256, 257, and 258 for the symbolic identifiersDegree_Sign, Plus_Or_Minus_Sign, and Diameter_Symbol. For Unicode fontsthese glyphs appear at the U+00B0, U+00B1, and U+2205 shape numbers andare part of the “Latin Extended-A” subset.

Create Shape Definition Files | 107

Page 114: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Text fonts (files containing shape definitions for each character) require specificnumbers corresponding to the value of each character in the ASCII code; othershapes can be assigned any numbers.

defbytes The number of data bytes (specbytes) required to describe the shape,including the terminating 0. The limit is 2,000 bytes per shape.

shapename The shape name. Shape names must be uppercase to berecognized. Names with lowercase characters are ignored and are usually usedto label font shape definitions.

specbyte A shape specification byte. Each specification byte is a code thatdefines either a vector length and direction or one of a number of specialcodes. A specification byte can be expressed in the shape definition file aseither a decimal or hexadecimal value. This section uses both decimal andhexadecimal specification byte values for its examples (as do many of theshape definition files). If the first character of a specification byte is a 0 (zero),the two characters that follow are interpreted as hexadecimal values.

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Vector Length and Direction CodeA simple shape specification byte contains vector length and direction encodedinto one specification byte.

A simple shape specification byte contains vector length and direction encodedinto one specification byte (one specbyte field). Each vector length anddirection code is a string of three characters. The first character must be a 0,which indicates to AutoCAD for Mac that the next two characters areinterpreted as hexadecimal values. The second character specifies the lengthof the vector in units. Valid hexadecimal values range from 1 (one unit long)through F (15 units long). The third character specifies the direction of thevector. The following figure illustrates the direction codes.

108 | Chapter 8 Shapes and Shape Fonts

Page 115: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Vector direction codes

All the vectors in the preceding figure were drawn with the same lengthspecification. Diagonal vectors stretch to match the X or Y displacement ofthe closest orthogonal vector. This is similar to the action of the snap grid inAutoCAD for Mac.

The following example constructs a shape named DBOX with an arbitrarilyassigned shape number of 230.

*230,6,DBOX

014,010,01C,018,012,0

The preceding sequence of specification bytes defines a box one unit highbyone unit wide, with a diagonal line running from the lower left to the upperright. After saving the file as dbox.shp, use the COMPILE command to generatethe dbox.shx file. Use the LOAD command to load the shape file containingthis definition, and then use the SHAPE command as follows:

Command: shapeEnter shape name or [?]: dboxSpecify insertion point: 1,1Specify height <current>: 2Specify rotation angle <current>: 0

The resulting shape is shown in the following illustration.

Vector Length and Direction Code | 109

Page 116: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Special CodesSpecial codes can be used to create additional geometric forms and specifycertain actions.

Use Special CodesThe second character of the three-character string (the vector lengthspecification) must be 0, or you can specify the special code number. Forexample, 008 and 8 are both valid specifications.

Specification byte codes

DescriptionCode

End of shape definition000

Activate Draw mode (pen down)001

Deactivate Draw mode (pen up)002

Divide vector lengths by next byte003

Multiply vector lengths by next byte004

Push current location onto stack005

Pop current location from stack006

Draw subshape number given by next byte007

X-Y displacement given by next two bytes008

110 | Chapter 8 Shapes and Shape Fonts

Page 117: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Specification byte codes

DescriptionCode

Multiple X-Y displacements, terminated (0,0)009

Octant arc defined by next two bytes00A

Fractional arc defined by next five bytes00B

Arc defined by X-Y displacement and bulge00C

Multiple bulge-specified arcs00D

Process next command only if vertical text00E

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Codes 0, 1, and 2: End of Shape and Draw Mode ControlCode 0 marks the end of the shape definition, and Codes 1 and 2 controlDraw mode.

Draw is activated at the start of each shape. When Draw mode is turned on(code 1), the vectors cause lines to be drawn. When Draw mode is turned off(code 2), the vectors move to a new location without drawing.

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

Special Codes | 111

Page 118: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Codes 3 and 4: Size ControlCodes 3 and 4 control the relative size of each vector.

The height specified with the SHAPE command is initially considered thelength of a single orthogonal vector (direction 0, 4, 8, or C). Code 3 dividesvector lengths by the next byte. Code 4 multiplies vector lengths by the nextbyte. Codes 3 and 4 are followed by a specification byte containing an integerscale factor (1 through 255).

If you want the shape height to specify the size of the entire shape, and youuse 10 vector lengths to draw it, you can use 3,10 to scale the heightspecification. The scale factor is cumulative within a shape; that is, multiplyingby 2 and again by 6 results in a scale factor of 12. Usually, you should reversethe effect of your scale factors at the end of the shape, especially for subshapesand text font shapes. AutoCAD for Mac does not reset the scale factor for you.

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Codes 5 and 6: Location Save/RestoreCode 5 pushes (saves) and code 6 pops (restores) the current coordinateposition while drawing a shape so that you can return to it from a later pointin the shape.

You must pop everything you push. The position stack is only four locationsdeep. If the stack overflows because of too many pushes or too many missingpops, the following message is displayed when the shape is drawn.

Position stack overflow in shape nnn

112 | Chapter 8 Shapes and Shape Fonts

Page 119: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Similarly, if you try to pop more locations than have been pushed onto thestack, the following message is displayed when the shape is drawn.

Position stack underflow in shape nnn

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Code 7: SubshapeCode 7 draws the subshape number given by the next byte.

For a non-Unicode font the specification byte following code 7 is a shapenumber from 1 to 255. For a Unicode font, code 7 is followed by a Unicodeshape number from 1 to 65535. Unicode shape numbers should be countedas two bytes (for specific information about the differences between Unicodeand non-Unicode fonts, see Unicode Font Descriptions on page 180).

The shape with that number (in the same shape file) is drawn at this time.Draw mode is not reset for the new shape. When the subshape is complete,drawing the current shape resumes.

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Codes 8 and 9: X-Y DisplacementsWith codes 8 and 9 you can draw nonstandard vectors using X-Y displacements.

Special Codes | 113

Page 120: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Normal vector specification bytes draw only in the 16 predefined directions,and the longest length is 15. These restrictions help make shape definitionsefficient but are sometimes limiting. Code 8 specifies the X-Y displacementgiven by the next two bytes. Code 8 must be followed by two specificationbytes in the format:

8,X-displacement,Y-displacement

The X-Y displacements can range from -128 to +127. A leading + is optional,and you can use parentheses to improve readability. The following exampleresults in a vector that draws (or moves) 10 units to the left and three unitsup.

8,(-10,3)

Following the two displacement specification bytes, the shape returns toNormal Vector mode.

You can use code 9 to draw a sequence of nonstandard vectors. Code 9 specifiesany number of X-Y displacement pairs. The code sequence is terminated by a(0,0) pair. The following example draws three nonstandard vectors and returnsto Normal Vector mode.

9,(3,1),(3,2),(2,-3),(0,0)

You must terminate the sequence of X-Y displacement pairs with a (0,0) pairin order for AutoCAD for Mac to recognize any Normal Vectors or specialcodes that follow.

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Code 00A: Octant ArcSpecial code 00A (or 10) uses the next two specification bytes to define an arc.

This is called an octant arc because it spans one or more 45-degree octants,starting and ending on an octant boundary. Octants are numbered

114 | Chapter 8 Shapes and Shape Fonts

Page 121: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

counterclockwise from the 3 o'clock position, as shown in the followingillustration.

The arc specification is

10,radius,(-)0SC

The radius can be any value from 1 through 255. The second specificationbyte indicates the direction of the arc (counterclockwise if positive, andclockwise if negative), its starting octant (s, a value from 0 through 7), andthe number of octants it spans (c, a value from 0 through 7, in which 0 equalseight octants, or a full circle). You can use parentheses to improve readability.For example, consider the following fragment of a shape definition:

...012,10,(1,-032),01E,...

This code draws a one-unit vector up and to the right, a clockwise arc fromoctant 3 (with a radius of one unit for two octants), and then a one-unit vectordown and to the right, as shown in the following illustration.

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

Special Codes | 115

Page 122: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Code 00B: Fractional ArcSpecial code 00B (11) draws an arc that doesn't necessarily start and end onan octant boundary.

The definition uses five specification bytes.

11,start_offset,end_offset,high_radius,radius,(-)0SC

The start_offset and end_offset represent how far from an octant boundarythe arc begins or ends. The high_radius represents the most significant eightbits of the radius; the high radius will be 0 unless the radius is greater than255 units. Multiply the high_radius value by 256 and add that value to theradius value to generate an arc radius greater than 255. The radius and endingspecification byte are the same as for the octant arc specification (code 00A,described previously).

You determine the startoffset by calculating the difference in degreesbetween the starting octant's boundary (a multiple of 45 degrees) and the startof the arc. Then, you multiply this difference by 256 and divide by 45. If thearc starts on an octant boundary, its start offset is 0.

The end offset is calculated in a similar fashion, but you use the number ofdegrees from the last octant boundary crossed to the end of the arc. If the arcends on an octant boundary, its end offset is 0.

For example, a fractional arc from 55 degrees to 95 degrees with a 3 unit radiuswould be coded as follows:

11,(56,28,0,3,012)

Here is the explanation:

start_offset = 56 because ((55 - 45) * 256 / 45) = 56

end_offset = 28 because ((95 - 90) * 256 / 45) = 28

high_radius = 0 because (radius < 255)

radius = 3

starting octant = 1 because arc starts in the 45 degree octant

ending octant = 2 because arc ends in the 90 degree octant

116 | Chapter 8 Shapes and Shape Fonts

Page 123: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Codes 00C and 00D: Bulge-Specified ArcsSpecial codes 00C and 00D (12 and 13) provide another mechanism forincluding arc segments in shape descriptions.

They are similar to codes 8 and 9 in that you can use them to specify X-Ydisplacements. However, codes 00C and 00D draw arcs by applying a bulgefactor to the displacement vector. Code 00C draws one arc segment, whilecode 00D draws multiple arc segments (polyarcs) until it is terminated by a(0,0) displacement.

Code 00C must be followed by three bytes describing the arc:

0C,X-displacement,Y-displacement,Bulge

Both the X and Y displacement and the bulge, which specifies the curvatureof the arc, can range from -127 to +127. If the line segment specified by thedisplacement has length D, and the perpendicular distance from the midpointof that segment has height H, the magnitude of the bulge is ((2* H / D) * 127).The sign is negative if the arc from the current location to the new locationis clockwise.

A semicircle has bulge 127 (or -127) and is the greatest arc that can berepresented as a single-arc segment using these codes (use two consecutivearc segments for larger arcs). A bulge specification of 0 is valid and representsa straight-line segment. Note, however, that using code 8 for a straight-linesegment saves a byte in the shape description.

Special Codes | 117

Page 124: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

The polyarc code (00D, or 13) is followed by 0 or by more arc segment triples,and is terminated by a (0,0) displacement. Note that no bulge is specified afterthe final displacement. For example, the letter S might be defined by thefollowing sequence:

13,(0,5,127),(0,5,-127),(0,0)

Zero bulge segments are useful within polyarcs to represent straight segments;they are more efficient than terminating the polyarc, inserting one straightsegment, and then starting another polyarc.

The number -128 cannot be used in arc segment and polyarc definitions.

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Code 00E: Flag Vertical Text CommandSpecial code 00E (14) is used only in dual-orientation text font descriptions,where the font is used in both horizontal and vertical orientations.

When this special code is encountered in a character definition, the next codeis either processed or skipped, depending on orientation. If the orientation isvertical, the next code is processed; if it is horizontal, the next code is skipped.

In horizontal text, the start point for each character is the left end of thebaseline. In vertical text, the start point is assumed to be the top center of thecharacter. At the end of each character, a pen-up segment is normally drawnto position to the next character's start point. For horizontal text, it is to theright; for vertical text, it is downward. The special 00E (14) code is usedprimarily to adjust for differences in start points and endpoints, permittingthe same character shape definition to be used both horizontally and vertically.For instance, the following definition of an uppercase D could be used ineither horizontal or vertical text.

*68,22,ucd

2,14,8,(-2, 6),1,030,012,044,016,038,2,010,1,06C,2,050,

14,8,(-4,-3),0

118 | Chapter 8 Shapes and Shape Fonts

Page 125: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Text Font DescriptionsText fonts must include a special shape number 0 that conveys informationabout the font itself.

AutoCAD for Mac is packaged with numerous text fonts. You can use theSTYLE command to apply expansion, compression, or obliquing to any ofthese fonts, thereby tailoring the characters to your needs. You can draw textof any height, at any baseline angle, and with either horizontal or verticalorientation using these fonts.

AutoCAD for Mac text fonts are files of shape definitions with shape numberscorresponding to the ASCII code for each character. Codes 1 through 31 arefor control characters, only one of which is used in AutoCAD for Mac textfonts:

10 (LF) The line feed (LF) must drop down one line without drawing. This isused for repeated TEXT commands, to place succeeding lines below the firstone.

*10,5,lf

Text Font Descriptions | 119

Page 126: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,8,(0,-10),0

You can modify the spacing of lines by adjusting the downward movementspecified by the LF shape definition.

Text fonts must include a special shape number 0 that conveys informationabout the font itself. The format has the following syntax:

*0,4,font-name

above,below,modes,0

The above value specifies the number of vector lengths above the baselinethat the uppercase letters extend, and below indicates how far the lowercaseletters descend below the baseline. The baseline is similar in concept to thelines on writing paper. These values define the basic character size and areused as scale factors for the height specified in the TEXT command.

The modes byte should be 0 for a horizontally oriented font and 2 for adual-orientation (horizontal or vertical) font. The special 00E (14) commandcode is honored only when modes is set to 2.

The standard fonts supplied with AutoCAD for Mac include a few additionalcharacters required for the AutoCAD for Mac dimensioning feature.

%%d Degree symbol (°)

%%p Plus/minus tolerance symbol ( )

%%c Circle diameter dimensioning symbol

You can use these and the %%nnn control sequences, as described under TEXTin the Command Reference.

NOTE AutoCAD for Mac draws text characters by their ASCII codes (shapenumbers) and not by name. To save memory, specify the shape name portion ofeach text shape definition in lowercase as shown in the following example.(Lowercase names are not saved in memory.)

*65,11,uca

024,043,04d,02c,2,047,1,040,2,02e,0

Because the shape name uca contains lowercase letters, AutoCAD for Mac doesnot save the name in memory. However, you can use the name for referencewhen editing the font definition file. In this example, uca stands for uppercaseA.

120 | Chapter 8 Shapes and Shape Fonts

Page 127: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

STYLE

Creates, modifies, or specifies text styles.

TEXT

Creates a single-line text object.

Sample FilesThis topic contains sample files that help extend the font characters providedwith AutoCAD for Mac.

Sample Files | 121

Page 128: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Extended Simplex Roman

122 | Chapter 8 Shapes and Shape Fonts

Page 129: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

;;

;; romans.shp - Extended Simplex Roman

;;

;; Copyright 1997 by Autodesk, Inc.

;;

;; Permission to use, copy, modify, and distribute this software

for

;; any purpose and without fee is hereby granted, provided that

the

;; above copyright notice appears in all copies and that the re

stricted

;; rights notice below appear in all supporting documentation.

;;

;; Use, duplication, or disclosure by the U.S. Government is sub

ject

;; to restrictions set forth in FAR 52.227-19 (Commercial Computer

;; Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)

;; (Rights in Technical Data and Computer Software), as applicable.

;;

*UNIFONT,6,ROMANS Copyright 1997 by Autodesk, Inc.

21,7,2,0,0,0

*0000A,9,lf

2,8,(0,-34),14,8,(30,34),0

*00020,9,spc

2,8,(21,0),14,8,(-21,-30),0

*00021,30,kexc

2,14,8,(-5,-21),14,5,8,(5,21),1,0EC,2,05C,1,01A,01E,012,016,2,

8,(5,-2),14,6,14,8,(5,-9),0

*00022,41,kdblqt

2,14,8,(-8,-25),14,5,8,(6,24),1,01A,016,012,01E,02C,02B,01A,2,

8,(8,5),1,01A,016,012,01E,02C,02B,01A,2,8,(4,-19),14,6,

14,8,(8,-9),0

*00023,57,kns

2,14,3,2,14,8,(-21,-50),14,4,2,14,5,8,(11,25),1,8,(-7,-32),2,

8,(13,32),1,8,(-7,-32),2,8,(-6,19),1,0E0,2,8,(-15,-6),1,0E0,2,

8,(4,-6),14,6,14,3,2,14,8,(21,-32),14,4,2,0

*00024,67,kds

2,14,8,(-10,-25),14,5,8,(8,25),1,8,(0,-29),2,8,(4,29),1,

8,(0,-29),2,8,(5,22),1,026,8,(-3,1),048,8,(-3,-1),02A,02C,02D,

01E,02F,8,(6,-2),02F,01E,02D,03C,02A,8,(-3,-1),048,8,(-3,1),026,

2,8,(17,-3),14,6,14,8,(10,-13),0

*00025,64,kpc

Sample Files | 123

Page 130: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,14,8,(-12,-21),14,5,8,(21,21),1,8,(-18,-21),2,8,(5,21),1,02E,

02C,02B,029,028,026,024,023,021,020,02F,8,(3,-1),030,8,(3,1),021,

2,8,(-4,-14),1,029,02B,02C,02E,020,021,023,024,026,028,2,

8,(7,-7),14,6,14,8,(12,-9),0

*00026,67,kand

2,14,8,(-13,-21),14,5,8,(23,12),1,014,016,018,01A,02B,8,(-2,-5),

8,(-2,-3),02A,029,048,027,016,025,024,023,012,8,(7,4),012,023,

024,025,027,029,02B,02C,8,(1,-3),8,(2,-3),8,(5,-7),02E,02F,020,

012,014,2,8,(3,-2),14,6,14,8,(13,-9),0

*00027,29,kapos

2,14,8,(-5,-25),14,5,8,(6,24),1,01A,016,012,01E,02C,02B,01A,2,

8,(6,-19),14,6,14,8,(5,-9),0

*00028,39,klp

2,14,8,(-7,-25),14,5,8,(11,25),1,02A,8,(-2,-3),04B,8,(-1,-5),04C,

8,(1,-5),04D,8,(2,-3),02E,2,8,(3,7),14,6,14,8,(7,-16),0

*00029,39,krp

2,14,8,(-7,-25),14,5,8,(3,25),1,02E,8,(2,-3),04D,8,(1,-5),04C,

8,(-1,-5),04B,8,(-2,-3),02A,2,8,(11,7),14,6,14,8,(7,-16),0

*0002A,37,kas

2,14,8,(-8,-21),14,5,8,(8,21),1,0CC,2,8,(-5,9),1,8,(10,-6),2,064,

1,8,(-10,-6),2,8,(13,-12),14,6,14,8,(8,-9),0

*0002B,31,kpls

2,14,8,(-13,-18),14,5,8,(13,18),1,8,(0,-18),2,096,1,8,(18,0),2,

8,(4,-9),14,6,14,8,(13,-9),0

*0002C,29,kcma

2,14,8,(-5,-2),14,5,8,(6,1),1,01A,016,012,01E,02C,02B,01A,2,

8,(6,4),14,6,14,8,(5,-13),0

*0002D,25,ksub

2,14,8,(-13,-9),14,5,8,(4,9),1,8,(18,0),2,8,(4,-9),14,6,

14,8,(13,-9),0

*0002E,26,kper

2,14,8,(-5,-2),14,5,8,(5,2),1,01A,01E,012,016,2,8,(5,-2),14,6,

14,8,(5,-9),0

*0002F,25,kdiv

2,14,8,(-11,-25),14,5,8,(20,25),1,8,(-18,-32),2,8,(20,7),14,6,

14,8,(11,-16),0

*00030,62,n0

2,14,8,(-10,-21),14,5,8,(9,21),1,8,(-3,-1),8,(-2,-3),8,(-1,-5),

03C,8,(1,-5),8,(2,-3),8,(3,-1),020,8,(3,1),8,(2,3),8,(1,5),034,

8,(-1,5),8,(-2,3),8,(-3,1),028,2,8,(11,-21),14,6,14,8,(10,-9),0

*00031,27,n1

2,14,8,(-10,-21),14,5,8,(6,17),1,021,032,8,(0,-21),2,8,(9,0),

124 | Chapter 8 Shapes and Shape Fonts

Page 131: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

14,6,14,8,(10,-9),0

*00032,37,n2

2,14,8,(-10,-21),14,5,8,(4,16),1,014,023,012,021,040,02F,01E,02D,

02C,02B,8,(-2,-3),0AA,0E0,2,8,(3,0),14,6,14,8,(10,-9),0

*00033,46,n3

2,14,8,(-10,-21),14,5,8,(5,21),1,0B0,8,(-6,-8),030,02F,01E,

8,(1,-3),02C,8,(-1,-3),02A,8,(-3,-1),038,8,(-3,1),016,025,2,

8,(17,-4),14,6,14,8,(10,-9),0

*00034,34,n4

2,14,8,(-10,-21),14,5,8,(13,21),1,8,(-10,-14),0F0,2,8,(-5,14),1,

8,(0,-21),2,8,(7,0),14,6,14,8,(10,-9),0

*00035,52,n5

2,14,8,(-10,-21),14,5,8,(15,21),1,0A8,8,(-1,-9),012,8,(3,1),030,

8,(3,-1),02E,8,(1,-3),02C,8,(-1,-3),02A,8,(-3,-1),038,8,(-3,1),

016,025,2,8,(17,-4),14,6,14,8,(10,-9),0

*00036,68,n6

2,14,8,(-10,-21),14,5,8,(16,18),1,025,8,(-3,1),028,8,(-3,-1),

8,(-2,-3),8,(-1,-5),05C,8,(1,-4),02E,8,(3,-1),010,8,(3,1),022,

8,(1,3),014,8,(-1,3),026,8,(-3,1),018,8,(-3,-1),02A,8,(-1,-3),2,

8,(16,-7),14,6,14,8,(10,-9),0

*00037,31,n7

2,14,8,(-10,-21),14,5,8,(17,21),1,8,(-10,-21),2,8,(-4,21),1,0E0,

2,8,(3,-21),14,6,14,8,(10,-9),0

*00038,66,n8

2,14,8,(-10,-21),14,5,8,(8,21),1,8,(-3,-1),02B,02C,02D,02F,

8,(4,-1),8,(3,-1),02E,02D,03C,02B,01A,8,(-3,-1),048,8,(-3,1),016,

025,034,023,022,8,(3,1),8,(4,1),021,023,024,025,8,(-3,1),048,2,

8,(12,-21),14,6,14,8,(10,-9),0

*00039,68,n9

2,14,8,(-10,-21),14,5,8,(16,14),1,8,(-1,-3),02A,8,(-3,-1),018,

8,(-3,1),026,8,(-1,3),014,8,(1,3),022,8,(3,1),010,8,(3,-1),02E,

8,(1,-4),05C,8,(-1,-5),8,(-2,-3),8,(-3,-1),028,8,(-3,1),025,2,

8,(16,-3),14,6,14,8,(10,-9),0

*0003A,33,kcol

2,14,8,(-5,-14),14,5,8,(5,14),1,01A,01E,012,016,2,0CC,1,01A,01E,

012,016,2,8,(5,-2),14,6,14,8,(5,-9),0

*0003B,38,ksmc

2,14,8,(-5,-14),14,5,8,(5,14),1,01A,01E,012,016,2,8,(1,-13),1,

01A,016,012,01E,02C,02B,01A,2,8,(6,4),14,6,14,8,(5,-13),0

*0003C,28,klt

2,14,8,(-12,-18),14,5,8,(20,18),1,8,(-16,-9),8,(16,-9),2,8,(4,0),

14,6,14,8,(12,-9),0

Sample Files | 125

Page 132: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

*0003D,33,keq

2,14,8,(-13,-12),14,5,8,(4,12),1,8,(18,0),2,8,(-18,-6),1,

8,(18,0),2,8,(4,-6),14,6,14,8,(13,-9),0

*0003E,28,kgt

2,14,8,(-12,-18),14,5,8,(4,18),1,8,(16,-9),8,(-16,-9),2,8,(20,0),

14,6,14,8,(12,-9),0

*0003F,42,kqm

2,14,8,(-9,-21),14,5,8,(3,16),1,014,023,012,021,040,02F,01E,02D,

02C,02B,01A,049,03C,2,05C,1,01A,01E,012,016,2,8,(9,-2),14,6,

14,8,(9,-9),0

*00040,93,kea

2,14,3,2,14,8,(-27,-42),14,4,2,14,5,8,(18,13),1,025,027,038,029,

01A,02B,03C,02D,01E,02F,030,021,023,2,084,1,0AC,01E,020,022,

8,(1,3),024,8,(-1,3),025,026,027,8,(-3,1),038,8,(-3,-1),029,02A,

02B,8,(-1,-3),03C,8,(1,-3),02D,02E,02F,8,(3,-1),030,8,(3,1),021,

012,2,8,(6,-3),14,6,14,3,2,14,8,(27,-18),14,4,2,0

*00041,39,uca

2,14,8,(-9,-21),14,5,8,(9,21),1,8,(-8,-21),2,8,(8,21),1,

8,(8,-21),2,8,(-13,7),1,0A0,2,8,(4,-7),14,6,14,8,(9,-9),0

*00042,70,ucb

2,14,3,2,14,8,(-21,-42),14,4,2,14,5,8,(4,21),1,8,(0,-21),2,

8,(0,21),1,090,8,(3,-1),01E,02D,02C,02B,01A,8,(-3,-1),2,098,1,

090,8,(3,-1),01E,02D,03C,02B,01A,8,(-3,-1),098,2,8,(17,0),14,6,

14,3,2,14,8,(21,-18),14,4,2,0

*00043,55,ucc

2,14,3,2,14,8,(-21,-42),14,4,2,14,5,8,(18,16),1,025,026,027,048,

029,02A,02B,8,(-1,-3),05C,8,(1,-3),02D,02E,02F,040,021,022,023,2,

8,(3,-5),14,6,14,3,2,14,8,(21,-18),14,4,2,0

*00044,61,ucd

2,14,3,2,14,8,(-21,-42),14,4,2,14,5,8,(4,21),1,8,(0,-21),2,

8,(0,21),1,070,8,(3,-1),02E,02D,8,(1,-3),05C,8,(-1,-3),02B,02A,

8,(-3,-1),078,2,8,(17,0),14,6,14,3,2,14,8,(21,-18),14,4,2,0

*00045,55,uce

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(4,21),1,8,(0,-21),2,

8,(0,21),1,0D0,2,8,(-13,-10),1,080,2,8,(-8,-11),1,0D0,2,8,(2,0),

14,6,14,3,2,14,8,(19,-18),14,4,2,0

*00046,37,ucf

2,14,8,(-9,-21),14,5,8,(4,21),1,8,(0,-21),2,8,(0,21),1,0D0,2,

8,(-13,-10),1,080,2,8,(6,-11),14,6,14,8,(9,-9),0

*00047,60,ucg

2,14,3,2,14,8,(-21,-42),14,4,2,14,5,8,(18,16),1,025,026,027,048,

029,02A,02B,8,(-1,-3),05C,8,(1,-3),02D,02E,02F,040,021,022,023,

034,2,058,1,050,2,8,(3,-8),14,6,14,3,2,14,8,(21,-18),14,4,2,0

126 | Chapter 8 Shapes and Shape Fonts

Page 133: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

*00048,39,uch

2,14,8,(-11,-21),14,5,8,(4,21),1,8,(0,-21),2,8,(14,21),1,

8,(0,-21),2,8,(-14,11),1,0E0,2,8,(4,-11),14,6,14,8,(11,-9),0

*00049,25,uci

2,14,8,(-4,-21),14,5,8,(4,21),1,8,(0,-21),2,8,(4,0),14,6,

14,8,(4,-9),0

*0004A,37,ucj

2,14,8,(-8,-21),14,5,8,(12,21),1,8,(0,-16),8,(-1,-3),01A,029,028,

027,016,8,(-1,3),024,2,8,(14,-7),14,6,14,8,(8,-9),0

*0004B,49,uck

2,14,3,2,14,8,(-21,-42),14,4,2,14,5,8,(4,21),1,8,(0,-21),2,

8,(14,21),1,0EA,2,052,1,8,(9,-12),2,8,(3,0),14,6,14,3,2,

14,8,(21,-18),14,4,2,0

*0004C,43,ucl

2,14,3,2,14,8,(-17,-42),14,4,2,14,5,8,(4,21),1,8,(0,-21),2,

8,(0,0),1,0C0,2,8,(1,0),14,6,14,3,2,14,8,(17,-18),14,4,2,0

*0004D,49,ucm

2,14,8,(-12,-21),14,5,8,(4,21),1,8,(0,-21),2,8,(0,21),1,

8,(8,-21),2,8,(8,21),1,8,(-8,-21),2,8,(8,21),1,8,(0,-21),2,

8,(4,0),14,6,14,8,(12,-9),0

*0004E,41,ucn

2,14,8,(-11,-21),14,5,8,(4,21),1,8,(0,-21),2,8,(0,21),1,

8,(14,-21),2,8,(0,21),1,8,(0,-21),2,8,(4,0),14,6,14,8,(11,-9),0

*0004F,50,uco

2,14,8,(-11,-21),14,5,8,(9,21),1,029,02A,02B,8,(-1,-3),05C,

8,(1,-3),02D,02E,02F,040,021,022,023,8,(1,3),054,8,(-1,3),025,

026,027,048,2,8,(13,-21),14,6,14,8,(11,-9),0

*00050,55,ucp

2,14,3,2,14,8,(-21,-42),14,4,2,14,5,8,(4,21),1,8,(0,-21),2,

8,(0,21),1,090,8,(3,-1),01E,02D,03C,02B,01A,8,(-3,-1),098,2,

8,(17,-10),14,6,14,3,2,14,8,(21,-18),14,4,2,0

*00051,56,ucq

2,14,8,(-11,-21),14,5,8,(9,21),1,029,02A,02B,8,(-1,-3),05C,

8,(1,-3),02D,02E,02F,040,021,022,023,8,(1,3),054,8,(-1,3),025,

026,027,048,2,8,(3,-17),1,06E,2,8,(4,2),14,6,14,8,(11,-11),0

*00052,61,ucr

2,14,3,2,14,8,(-21,-42),14,4,2,14,5,8,(4,21),1,8,(0,-21),2,

8,(0,21),1,090,8,(3,-1),01E,02D,02C,02B,01A,8,(-3,-1),098,2,070,

1,8,(7,-11),2,8,(3,0),14,6,14,3,2,14,8,(21,-18),14,4,2,0

*00053,51,ucs

2,14,8,(-10,-21),14,5,8,(17,18),1,026,8,(-3,1),048,8,(-3,-1),02A,

Sample Files | 127

Page 134: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

02C,02D,01E,02F,8,(6,-2),02F,01E,02D,03C,02A,8,(-3,-1),048,

8,(-3,1),026,2,8,(17,-3),14,6,14,8,(10,-9),0

*00054,31,uct

2,14,8,(-8,-21),14,5,8,(8,21),1,8,(0,-21),2,8,(-7,21),1,0E0,2,

8,(1,-21),14,6,14,8,(8,-9),0

*00055,39,ucu

2,14,8,(-11,-21),14,5,8,(4,21),1,0FC,8,(1,-3),02E,8,(3,-1),020,

8,(3,1),022,8,(1,3),0F4,2,8,(4,-21),14,6,14,8,(11,-9),0

*00056,33,ucv

2,14,8,(-9,-21),14,5,8,(1,21),1,8,(8,-21),2,8,(8,21),1,

8,(-8,-21),2,8,(9,0),14,6,14,8,(9,-9),0

*00057,49,ucw

2,14,8,(-12,-21),14,5,8,(2,21),1,8,(5,-21),2,8,(5,21),1,

8,(-5,-21),2,8,(5,21),1,8,(5,-21),2,8,(5,21),1,8,(-5,-21),2,

8,(7,0),14,6,14,8,(12,-9),0

*00058,33,ucx

2,14,8,(-10,-21),14,5,8,(3,21),1,8,(14,-21),2,8,(0,21),1,

8,(-14,-21),2,8,(17,0),14,6,14,8,(10,-9),0

*00059,34,ucy

2,14,8,(-9,-21),14,5,8,(1,21),1,8,(8,-10),0BC,2,8,(8,21),1,

8,(-8,-10),2,8,(9,-11),14,6,14,8,(9,-9),0

*0005A,37,ucz

2,14,8,(-10,-21),14,5,8,(17,21),1,8,(-14,-21),2,8,(0,21),1,0E0,2,

8,(-14,-21),1,0E0,2,8,(3,0),14,6,14,8,(10,-9),0

*0005B,37,klb

2,14,8,(-7,-25),14,5,8,(4,25),1,8,(0,-32),2,8,(0,32),1,070,2,

8,(-7,-32),1,070,2,8,(3,7),14,6,14,8,(7,-16),0

*0005C,25,kbkslsh

2,14,8,(-11,-25),14,5,8,(2,25),1,8,(18,-32),2,8,(2,7),14,6,

14,8,(11,-16),0

*0005D,37,krb

2,14,8,(-7,-25),14,5,8,(9,25),1,8,(0,-32),2,8,(-7,32),1,070,2,

8,(-7,-32),1,070,2,8,(4,7),14,6,14,8,(7,-16),0

*0005E,28,kcaret

2,14,8,(-11,-25),14,5,8,(3,20),1,8,(8,5),8,(8,-5),2,8,(3,-20),

14,6,14,8,(11,-9),0

*0005F,21,kundrl

2,14,8,(-12,-14),14,5,02E,1,8,(20,0),2,022,14,6,14,8,(12,-11),0

*00060,29,krvap

2,14,8,(-5,-25),14,5,8,(4,24),1,01E,012,016,01A,02C,02D,01E,2,

8,(6,-19),14,6,14,8,(5,-9),0

*00061,55,lca

2,14,3,2,14,8,(-19,-28),14,4,2,14,5,8,(15,14),1,0EC,2,0B4,1,026,

128 | Chapter 8 Shapes and Shape Fonts

Page 135: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

027,038,029,02A,8,(-1,-3),02C,8,(1,-3),02E,02F,030,021,022,2,

8,(4,-3),14,6,14,3,2,14,8,(19,-18),14,4,2,0

*00062,57,lcb

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(4,21),1,8,(0,-21),2,0B4,1,

022,021,030,02F,02E,8,(1,-3),02C,8,(-1,-3),02A,029,038,027,026,2,

8,(15,-3),14,6,14,3,2,14,8,(19,-18),14,4,2,0

*00063,39,lcc

2,14,8,(-9,-14),14,5,8,(15,11),1,026,027,038,029,02A,8,(-1,-3),

02C,8,(1,-3),02E,02F,030,021,022,2,8,(3,-3),14,6,14,8,(9,-9),0

*00064,57,lcd

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(15,21),1,8,(0,-21),2,0B4,

1,026,027,038,029,02A,8,(-1,-3),02C,8,(1,-3),02E,02F,030,021,022,

2,8,(4,-3),14,6,14,3,2,14,8,(19,-18),14,4,2,0

*00065,42,lce

2,14,8,(-9,-14),14,5,8,(3,8),1,0C0,024,025,016,027,038,029,02A,

8,(-1,-3),02C,8,(1,-3),02E,02F,030,021,022,2,8,(3,-3),14,6,

14,8,(9,-9),0

*00066,36,lcf

2,14,8,(-6,-21),14,5,8,(10,21),1,028,029,8,(-1,-3),8,(0,-17),2,

8,(-3,14),1,070,2,8,(3,-14),14,6,14,8,(6,-9),0

*00067,66,lcg

2,14,3,2,14,8,(-19,-28),14,4,2,14,5,8,(15,14),1,8,(0,-16),

8,(-1,-3),01A,029,038,027,2,8,(9,17),1,026,027,038,029,02A,

8,(-1,-3),02C,8,(1,-3),02E,02F,030,021,022,2,8,(4,-3),14,6,14,3,

2,14,8,(19,-32),14,4,2,0

*00068,48,lch

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(4,21),1,8,(0,-21),2,0A4,1,

032,021,030,02F,8,(1,-3),0AC,2,8,(4,0),14,6,14,3,2,14,8,(19,-18),

14,4,2,0

*00069,32,lci

2,14,8,(-4,-21),14,5,8,(3,20),1,01E,012,016,01A,2,8,(1,-7),1,0DC,

2,8,(4,0),14,6,14,8,(4,-9),0

*0006A,39,lcj

2,14,8,(-5,-21),14,5,8,(5,20),1,01E,012,016,01A,2,8,(1,-7),1,

8,(0,-16),8,(-1,-3),029,028,2,8,(9,7),14,6,14,8,(5,-16),0

*0006B,49,lck

2,14,3,2,14,8,(-17,-42),14,4,2,14,5,8,(4,21),1,8,(0,-21),2,

8,(10,14),1,0AA,2,042,1,8,(7,-8),2,8,(2,0),14,6,14,3,2,

14,8,(17,-18),14,4,2,0

*0006C,25,lcl

2,14,8,(-4,-21),14,5,8,(4,21),1,8,(0,-21),2,8,(4,0),14,6,

Sample Files | 129

Page 136: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

14,8,(4,-9),0

*0006D,45,lcm

2,14,8,(-15,-14),14,5,8,(4,14),1,0EC,2,0A4,1,032,021,030,02F,

8,(1,-3),0AC,2,0A4,1,032,021,030,02F,8,(1,-3),0AC,2,8,(4,0),14,6,

14,8,(15,-9),0

*0006E,46,lcn

2,14,3,2,14,8,(-19,-28),14,4,2,14,5,8,(4,14),1,0EC,2,0A4,1,032,

021,030,02F,8,(1,-3),0AC,2,8,(4,0),14,6,14,3,2,14,8,(19,-18),

14,4,2,0

*0006F,58,lco

2,14,3,2,14,8,(-19,-28),14,4,2,14,5,8,(8,14),1,029,02A,8,(-1,-3),

02C,8,(1,-3),02E,02F,030,021,022,8,(1,3),024,8,(-1,3),026,027,

038,2,8,(11,-14),14,6,14,3,2,14,8,(19,-18),14,4,2,0

*00070,59,lcp

2,14,3,2,14,8,(-19,-28),14,4,2,14,5,8,(4,14),1,8,(0,-21),2,

8,(0,18),1,022,021,030,02F,02E,8,(1,-3),02C,8,(-1,-3),02A,029,

038,027,026,2,8,(15,-3),14,6,14,3,2,14,8,(19,-32),14,4,2,0

*00071,59,lcq

2,14,3,2,14,8,(-19,-28),14,4,2,14,5,8,(15,14),1,8,(0,-21),2,

8,(0,18),1,026,027,038,029,02A,8,(-1,-3),02C,8,(1,-3),02E,02F,

030,021,022,2,8,(4,-3),14,6,14,3,2,14,8,(19,-32),14,4,2,0

*00072,44,lcr

2,14,3,2,14,8,(-13,-28),14,4,2,14,5,8,(4,14),1,0EC,2,084,1,

8,(1,3),022,021,030,2,8,(1,-14),14,6,14,3,2,14,8,(13,-18),14,4,2,

0

*00073,60,lcs

2,14,3,2,14,8,(-17,-28),14,4,2,14,5,8,(14,11),1,025,8,(-3,1),038,

8,(-3,-1),02B,02D,02F,8,(5,-1),02F,02D,01C,02B,8,(-3,-1),038,

8,(-3,1),025,2,8,(14,-3),14,6,14,3,2,14,8,(17,-18),14,4,2,0

*00074,36,lct

2,14,8,(-6,-21),14,5,8,(5,21),1,8,(0,-17),8,(1,-3),02F,020,2,

8,(-8,14),1,070,2,8,(3,-14),14,6,14,8,(6,-9),0

*00075,46,lcu

2,14,3,2,14,8,(-19,-28),14,4,2,14,5,8,(4,14),1,0AC,8,(1,-3),02F,

030,021,032,2,0A4,1,0EC,2,8,(4,0),14,6,14,3,2,14,8,(19,-18),14,4,

2,0

*00076,33,lcv

2,14,8,(-8,-14),14,5,8,(2,14),1,8,(6,-14),2,8,(6,14),1,

8,(-6,-14),2,8,(8,0),14,6,14,8,(8,-9),0

*00077,49,lcw

2,14,8,(-11,-14),14,5,8,(3,14),1,8,(4,-14),2,8,(4,14),1,

8,(-4,-14),2,8,(4,14),1,8,(4,-14),2,8,(4,14),1,8,(-4,-14),2,

8,(7,0),14,6,14,8,(11,-9),0

130 | Chapter 8 Shapes and Shape Fonts

Page 137: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

*00078,43,lcx

2,14,3,2,14,8,(-17,-28),14,4,2,14,5,8,(3,14),1,8,(11,-14),2,0E4,

1,8,(-11,-14),2,8,(14,0),14,6,14,3,2,14,8,(17,-18),14,4,2,0

*00079,37,lcy

2,14,8,(-8,-14),14,5,8,(2,14),1,8,(6,-14),2,8,(6,14),1,

8,(-6,-14),04B,02A,029,018,2,8,(15,7),14,6,14,8,(8,-16),0

*0007A,47,lcz

2,14,3,2,14,8,(-17,-28),14,4,2,14,5,8,(14,14),1,8,(-11,-14),2,

0E4,1,0B0,2,8,(-11,-14),1,0B0,2,8,(3,0),14,6,14,3,2,

14,8,(17,-18),14,4,2,0

*0007B,54,klbr

2,14,3,2,14,8,(-13,-50),14,4,2,14,5,8,(9,25),1,029,01A,02B,02C,

02D,01E,02D,02C,02A,029,02F,02E,02C,02B,01A,02B,02C,02D,01E,02F,

2,8,(5,7),14,6,14,3,2,14,8,(13,-32),14,4,2,0

*0007C,25,kvbar

2,14,8,(-4,-25),14,5,8,(4,25),1,8,(0,-32),2,8,(4,7),14,6,

14,8,(4,-16),0

*0007D,54,krbr

2,14,3,2,14,8,(-15,-50),14,4,2,14,5,8,(5,25),1,02F,01E,02D,02C,

02B,01A,02B,02C,02E,02F,029,02A,02C,02D,01E,02D,02C,02B,01A,029,

2,8,(9,7),14,6,14,3,2,14,8,(15,-32),14,4,2,0

*0007E,37,ktlde

2,14,8,(-13,-14),14,5,8,(4,6),1,024,8,(1,3),021,020,02F,8,(4,-3),

02F,020,021,023,024,2,8,(4,-12),14,6,14,8,(13,-9),0

*00080,4,keuroRef

7,020AC,0

*000A0,9,spc

2,8,(21,0),14,8,(-21,-30),0

*000A1,28,kiexc

2,14,8,(-5,-21),14,5,050,1,0E4,2,054,1,012,016,01A,01E,2,

8,(8,-19),14,6,14,8,(5,-9),0

*000A2,43,kcent

2,14,8,(-9,-17),14,5,03E,1,8,(12,20),2,06C,1,026,027,038,029,02A,

8,(-1,-3),02C,8,(1,-3),02E,02F,030,021,022,2,8,(3,-3),14,6,

14,8,(9,-9),0

*000A3,37,kpound

2,14,8,(-10,-21),14,5,8,(12,18),1,025,027,029,02B,0FC,03A,0E0,2,

8,(-8,10),1,068,014,060,2,8,(9,-11),14,6,14,8,(10,-9),0

*000A5,44,kyen

2,14,8,(-12,-21),14,5,8,(1,21),1,8,(8,-10),0BC,2,8,(8,21),1,

8,(-8,-10),2,078,1,0E0,2,8,(-14,-3),1,0E0,2,8,(6,-8),14,6,

14,8,(12,-9),0

*000A7,78,kpar

Sample Files | 131

Page 138: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,14,8,(-10,-25),14,5,060,1,012,016,01A,01C,02D,01E,02F,020,021,

012,023,014,025,016,8,(-8,4),016,025,014,023,012,021,010,

8,(8,-4),2,094,028,1,01A,01E,012,014,025,016,027,028,029,01A,02B,

01C,02D,01E,8,(8,-4),01E,02D,01C,02B,01A,029,018,8,(-8,4),2,

8,(16,-9),14,6,14,8,(10,-13),0

*000AA,51,lcau

2,14,8,-7,-21,14,5,8,4,14,3,2,1,0A0,2,054,1,02A,029,028,027,016,

8,-1,3,024,8,1,3,012,021,020,02F,02E,2,034,1,0CC,2,4,2,8,4,-15,

14,6,14,8,7,-9,0

*000AB,25,kfrew

2,14,8,(-9,-14),14,5,0A0,1,076,072,2,050,1,07A,07E,2,030,14,6,

14,8,(9,-9),0

*000B0,25,kdeg

2,14,8,(-3,-21),14,5,8,(1,19),1,10,(2,64),2,8,(8,-19),14,6,

14,8,(3,-9),0

*000B1,39,kpls-min

2,14,8,(-13,-21),14,5,8,(13,21),1,8,(0,-18),2,096,1,8,(18,0),2,

8,(-18,-11),1,8,(18,0),2,8,(4,-1),14,6,14,8,(13,-9),0

*000B5,48,kmicro

2,14,3,2,14,8,(-19,-28),14,4,2,14,5,07C,1,022,8,(3,19),0AC,

8,(1,-3),02F,030,021,032,2,0A4,1,0EC,2,8,(4,0),14,6,14,3,2,

14,8,(19,-32),14,4,2,0

*000BA,56,lcou

2,14,8,-7,-21,14,5,8,4,14,3,2,1,0A0,2,8,-4,14,1,028,029,01A,8,-1,

-3,02C,8,1,-3,01E,02F,020,021,012,8,1,3,024,8,-1,3,016,027,2,4,2,

8,6,-21,14,6,14,8,7,-9,0

*000BB,25,kffrw

2,14,8,(-9,-14),14,5,030,1,072,076,2,050,1,07E,07A,2,0A0,14,6,

14,8,(9,-9),0

*000BC,43,kquart

2,14,8,(-14,-25),14,5,8,(4,21),1,021,022,0EC,2,8,(-2,-14),1,

8,(16,29),2,8,(2,-23),1,0A8,8,(7,9),0EC,2,8,(7,3),14,6,

14,8,(14,-13),0

*000BD,50,khalf

2,14,8,(-14,-25),14,5,8,(4,21),1,021,022,0EC,2,8,(-2,-14),1,

8,(16,29),2,8,(-6,-18),1,014,023,021,020,02F,02D,01C,02B,

8,(-7,-8),080,2,8,(4,3),14,6,14,8,(14,-13),0

*000BF,47,kiqm

2,14,8,(-9,-21),14,5,8,(13,4),1,016,012,01E,01C,02B,01A,029,038,

8,(-3,1),025,024,023,012,021,022,034,2,054,1,012,016,01A,01E,2,

8,(8,-19),14,6,14,8,(9,-9),0

*000C0,43,uc^

2,14,8,(-9,-25),14,5,8,(9,23),1,047,2,04E,1,8,(-8,-21),2,

132 | Chapter 8 Shapes and Shape Fonts

Page 139: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

8,(8,21),1,8,(8,-21),2,8,(-13,7),1,0A0,2,8,(4,-7),14,6,

14,8,(9,-9),0

*000C1,43,uc^

2,14,8,(-9,-25),14,5,8,(9,23),1,041,2,04A,1,8,(-8,-21),2,

8,(8,21),1,8,(8,-21),2,8,(-13,7),1,0A0,2,8,(4,-7),14,6,

14,8,(9,-9),0

*000C2,44,uc

2,14,8,(-9,-25),14,5,8,(5,23),1,041,04F,2,049,1,8,(-8,-21),2,

8,(8,21),1,8,(8,-21),2,8,(-13,7),1,0A0,2,8,(4,-7),14,6,

14,8,(9,-9),0

*000C3,55,uc^

2,14,8,(-9,-25),14,5,8,(4,22),5,1,023,10,(2,-50),01E,10,(2,82),

023,2,6,8,(5,-1),1,8,(-8,-21),2,8,(8,21),1,8,(8,-21),2,8,(-13,7),

1,0A0,2,8,(4,-7),14,6,14,8,(9,-9),0

*000C4,53,uc„

2,14,8,(-9,-25),14,5,8,(4,24),1,01E,012,016,01A,2,080,1,01E,012,

016,01A,2,03A,1,8,(-8,-21),2,8,(8,21),1,8,(8,-21),2,8,(-13,7),1,

0A0,2,8,(4,-7),14,6,14,8,(9,-9),0

*000C5,45,uc^

2,14,8,(-9,-25),14,5,8,(7,23),1,10,(2,64),2,02E,1,8,(-8,-21),2,

8,(8,21),1,8,(8,-21),2,8,(-13,7),1,0A0,2,8,(4,-7),14,6,

14,8,(9,-9),0

*000C6,45,uc^

2,14,8,(-9,-21),14,5,010,1,8,(8,21),8,(0,-21),080,2,8,(-8,7),1,

058,2,8,(5,4),1,050,2,8,(-5,10),1,080,2,8,(2,-21),14,6,

14,8,(9,-9),0

*000C7,65,uc‡

2,14,3,2,14,8,(-21,-42),14,4,2,14,5,8,(18,16),1,025,026,027,048,

029,02A,02B,8,(-1,-3),05C,8,(1,-3),02D,02E,02F,040,021,022,023,2,

8,(-9,-11),1,01E,030,012,024,016,028,034,2,0A0,14,6,14,3,2,

14,8,(21,-32),14,4,2,0

*000C8,53,uc^

2,14,3,2,14,8,(-19,-50),14,4,2,14,5,8,(6,25),1,8,(9,-4),2,

8,(2,-2),1,0D8,8,(0,-19),0D0,2,8,(-13,10),1,080,2,8,(7,-10),14,6,

14,3,2,14,8,(19,-18),14,4,2,0

*000C9,53,uc^

2,14,3,2,14,8,(-19,-50),14,4,2,14,5,8,(6,21),1,8,(9,4),2,

8,(2,-6),1,0D8,8,(0,-19),0D0,2,8,(-13,10),1,080,2,8,(7,-10),14,6,

14,3,2,14,8,(19,-18),14,4,2,0

*000CA,53,uc^

2,14,3,2,14,8,(-19,-50),14,4,2,14,5,8,(6,23),1,041,010,04F,2,

8,(2,-2),1,0D8,8,(0,-21),0D0,2,8,(-13,11),1,080,2,8,(7,-11),14,6,

14,3,2,14,8,(19,-18),14,4,2,0

Sample Files | 133

Page 140: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

*000CB,61,uc^

2,14,3,2,14,8,(-19,-50),14,4,2,14,5,8,(6,24),1,01E,012,016,01A,2,

070,1,01E,012,016,01A,2,8,(4,-3),1,0D8,8,(0,-21),0D0,2,

8,(-13,11),1,080,2,8,(7,-11),14,6,14,3,2,14,8,(19,-18),14,4,2,0

*000CC,29,uc^

2,14,8,(-4,-25),14,5,8,(4,23),1,026,2,04D,1,8,(0,-21),2,8,(4,0),

14,6,14,8,(4,-9),0

*000CD,29,uc^

2,14,8,(-4,-25),14,5,8,(4,23),1,022,2,04B,1,8,(0,-21),2,8,(4,0),

14,6,14,8,(4,-9),0

*000CE,30,uc^

2,14,8,(-4,-25),14,5,8,(2,23),1,022,02E,2,02A,1,8,(0,-21),2,

8,(4,0),14,6,14,8,(4,-9),0

*000CF,41,uc^

2,14,8,(-4,-25),14,5,8,(1,24),1,01E,012,016,01A,2,040,1,01E,012,

016,01A,2,8,(-1,-3),1,8,(0,-21),2,8,(4,0),14,6,14,8,(4,-9),0

*000D1,41,uc

2,14,8,(-11,-25),14,5,040,1,8,(0,19),8,(14,-19),8,(0,19),2,

8,(-13,3),1,032,010,8,(4,-3),010,032,2,8,(5,-25),14,6,

14,8,(11,-9),0

*000D2,44,uc^

2,14,8,(-11,-25),14,5,8,(6,25),1,08F,2,8,(-6,-2),1,029,02A,04B,

05C,04D,02E,02F,040,021,022,043,054,045,026,027,048,2,8,(13,-19),

14,6,14,8,(11,-9),0

*000D3,42,uc^

2,14,8,(-11,-25),14,5,8,(6,21),1,081,2,06A,1,029,02A,04B,05C,04D,

02E,02F,040,021,022,043,054,045,026,027,048,2,8,(13,-19),14,6,

14,8,(11,-9),0

*000D4,57,uc^

2,14,8,(-11,-25),14,5,8,(6,23),1,041,04F,2,8,(-6,-2),1,029,02A,

02B,8,(-1,-3),05C,8,(1,-3),02D,02E,02F,040,021,022,023,8,(1,3),

054,8,(-1,3),025,026,027,048,2,8,(13,-21),14,6,14,8,(11,-9),0

*000D5,66,uc^

2,14,8,(-11,-25),14,5,8,(6,22),5,1,023,10,(2,-50),01E,10,(2,82),

023,2,6,8,(3,-1),1,029,02A,02B,8,(-1,-3),05C,8,(1,-3),02D,02E,

02F,040,021,022,023,8,(1,3),054,8,(-1,3),025,026,027,048,2,

8,(13,-21),14,6,14,8,(11,-9),0

*000D6,66,uc^

2,14,8,(-11,-25),14,5,8,(6,24),1,01E,012,016,01A,2,080,1,01E,012,

016,01A,2,8,(-5,-3),1,029,02A,02B,8,(-1,-3),05C,8,(1,-3),02D,02E,

02F,040,021,022,023,8,(1,3),054,8,(-1,3),025,026,027,048,2,

8,(13,-21),14,6,14,8,(11,-9),0

*000D8,54,uc›

134 | Chapter 8 Shapes and Shape Fonts

Page 141: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,14,8,(-11,-21),8,(9,21),1,029,02A,02B,8,(-1,-3),05C,8,(1,-3),

02D,02E,02F,040,021,022,023,8,(1,3),054,8,(-1,3),025,026,027,048,

2,8,(-6,-21),1,8,(16,21),2,8,(3,-21),14,8,(-11,-9),0

*000D9,43,uc^

2,14,8,(-11,-25),14,5,8,(15,21),1,087,2,06B,1,0DC,8,(1,-3),02E,

8,(3,-1),020,8,(3,1),022,8,(1,3),0D4,2,8,(4,-19),14,6,

14,8,(11,-9),0

*000DA,45,uc^

2,14,8,(-11,-25),14,5,8,(15,25),1,089,2,8,(-3,-2),1,0DC,8,(1,-3),

02E,8,(3,-1),020,8,(3,1),022,8,(1,3),0D4,2,8,(4,-19),14,6,

14,8,(11,-9),0

*000DB,46,uc^

2,14,8,(-11,-25),14,5,8,(15,23),1,047,049,2,8,(-3,-2),1,0FC,

8,(1,-3),02E,8,(3,-1),020,8,(3,1),022,8,(1,3),0F4,2,8,(4,-21),

14,6,14,8,(11,-9),0

*000DC,55,uc^

2,14,8,(-11,-25),14,5,8,(14,24),1,01E,012,016,01A,2,088,1,01E,

012,016,01A,2,8,(-2,-3),1,0FC,8,(1,-3),02E,8,(3,-1),020,8,(3,1),

022,8,(1,3),0F4,2,8,(4,-21),14,6,14,8,(11,-9),0

*000DD,38,uc^

2,14,8,(-9,-25),14,5,8,(13,25),1,089,2,049,1,8,(8,-9),0AC,2,

8,(8,19),1,8,(-8,-9),2,8,(9,-10),14,6,14,8,(9,-9),0

*000DF,53,kgers

2,14,8,(-9,-21),14,5,030,1,012,8,(0,16),023,012,021,020,02F,01E,

02D,02C,02B,01A,029,028,2,020,1,8,(3,-1),01E,02D,03C,02B,01A,029,

028,027,016,012,01E,2,8,(10,-2),14,6,14,8,(9,-9),0

*000E0,63,lc…

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(5,21),1,8,(8,-4),2,

8,(2,-3),1,0EC,2,0B4,1,026,027,038,029,02A,8,(-1,-3),02C,

8,(1,-3),02E,02F,030,021,022,2,8,(4,-3),14,6,14,3,2,

14,8,(19,-18),14,4,2,0

*000E1,63,lc

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(5,17),1,8,(8,4),2,

8,(2,-7),1,0EC,2,0B4,1,026,027,038,029,02A,8,(-1,-3),02C,

8,(1,-3),02E,02F,030,021,022,2,8,(4,-3),14,6,14,3,2,

14,8,(19,-18),14,4,2,0

*000E2,64,lc^

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(5,18),1,8,(4,3),8,(4,-3),

2,04D,1,0EC,2,0B4,1,026,027,038,029,02A,8,(-1,-3),02C,8,(1,-3),

02E,02F,030,021,022,2,8,(4,-3),14,6,14,3,2,14,8,(19,-18),14,4,2,0

*000E3,63,lcƒ

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(4,18),1,032,010,03E,010,

Sample Files | 135

Page 142: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

032,2,07C,1,0EC,2,0B4,1,026,027,038,029,02A,8,(-1,-3),02C,

8,(1,-3),02E,02F,030,021,022,2,8,(4,-3),14,6,14,3,2,

14,8,(19,-18),14,4,2,0

*000E4,71,lc„

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(4,20),1,01E,012,016,01A,2,

090,1,01E,012,016,01A,2,8,(2,-6),1,0EC,2,0B4,1,026,027,038,029,

02A,8,(-1,-3),02C,8,(1,-3),02E,02F,030,021,022,2,8,(4,-3),14,6,

14,3,2,14,8,(19,-18),14,4,2,0

*000E5,63,lc†

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(7,19),1,10,(2,64),2,

8,(8,-5),1,0EC,2,0B4,1,026,027,038,029,02A,8,(-1,-3),02C,

8,(1,-3),02E,02F,030,021,022,2,8,(4,-3),14,6,14,3,2,

14,8,(19,-18),14,4,2,0

*000E6,51,lc

2,14,8,(-10,-14),14,5,8,(10,8),1,070,014,8,(-1,3),026,028,02A,

026,028,02A,8,(-1,-3),04C,8,(1,-3),02E,020,022,02E,020,021,023,2,

8,(-7,11),1,0EC,2,0A0,14,6,14,8,(10,-9),0

*000E7,49,lc‡

2,14,8,(-9,-14),14,5,8,(15,11),1,026,027,038,029,02A,8,(-1,-3),

02C,8,(1,-3),02E,02F,030,021,022,2,8,(-8,-9),1,01E,030,012,024,

016,028,034,2,090,14,6,14,8,(9,-16),0

*000E8,48,lcŠ

2,14,8,(-9,-21),14,5,8,(5,21),1,08F,2,8,(-10,-9),1,0C0,024,025,

016,027,038,029,02A,8,(-1,-3),02C,8,(1,-3),02E,02F,030,021,022,2,

8,(3,-3),14,6,14,8,(9,-9),0

*000E9,48,lc‚

2,14,8,(-9,-21),14,5,8,(5,17),1,081,2,8,(-10,-13),1,0C0,024,025,

016,027,038,029,02A,8,(-1,-3),02C,8,(1,-3),02E,02F,030,021,022,2,

8,(3,-3),14,6,14,8,(9,-9),0

*000EA,51,lcˆ

2,14,8,(-9,-21),14,5,8,(5,18),1,8,(4,3),8,(4,-3),2,0AA,1,0C0,024,

025,016,027,038,029,02A,8,(-1,-3),02C,8,(1,-3),02E,02F,030,021,

022,2,8,(3,-3),14,6,14,8,(9,-9),0

*000EB,58,lc‰

2,14,8,(-9,-21),14,5,8,(4,20),1,01E,012,016,01A,2,080,1,01E,012,

016,01A,2,8,(-9,-12),1,0C0,024,025,016,027,038,029,02A,8,(-1,-3),

02C,8,(1,-3),02E,02F,030,021,022,2,8,(3,-3),14,6,14,8,(9,-9),0

*000EC,27,lc_

2,14,8,(-7,-21),14,5,8,(3,21),1,08F,2,04A,1,0DC,2,8,(4,0),14,6,

14,8,(7,-9),0

*000ED,27,lc

2,14,8,(-7,-21),14,5,8,(3,17),1,081,2,08B,1,0DC,2,8,(4,0),14,6,

14,8,(7,-9),0

136 | Chapter 8 Shapes and Shape Fonts

Page 143: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

*000EE,34,lcŒ

2,14,8,(-7,-21),14,5,8,(3,18),1,8,(4,3),8,(4,-3),2,8,(-4,-5),1,

0DC,2,8,(4,0),14,6,14,8,(7,-9),0

*000EF,39,lc‹

2,14,8,(-7,-21),14,5,8,(3,20),1,01E,012,016,01A,2,060,1,01E,012,

016,01A,2,8,(-2,-7),1,0DC,2,8,(4,0),14,6,14,8,(7,-9),0

*000F1,56,lc

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(4,18),1,032,010,03E,010,

032,2,8,(-11,-7),1,0EC,2,0A4,1,032,021,030,02F,8,(1,-3),0AC,2,

8,(4,0),14,6,14,3,2,14,8,(19,-18),14,4,2,0

*000F2,64,lc•

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(5,21),1,8,(9,-4),2,069,1,

029,02A,8,(-1,-3),02C,8,(1,-3),02E,02F,030,021,022,8,(1,3),024,

8,(-1,3),026,027,038,2,8,(11,-14),14,6,14,3,2,14,8,(19,-18),14,4,

2,0

*000F3,66,lc

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(5,17),1,8,(9,4),2,

8,(-6,-7),1,029,02A,8,(-1,-3),02C,8,(1,-3),02E,02F,030,021,022,

8,(1,3),024,8,(-1,3),026,027,038,2,8,(11,-14),14,6,14,3,2,

14,8,(19,-18),14,4,2,0

*000F4,73,lc“

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(5,18),3,2,1,8,(9,6),

8,(9,-6),2,4,2,8,(-6,-4),1,029,02A,8,(-1,-3),02C,8,(1,-3),02E,

02F,030,021,022,8,(1,3),024,8,(-1,3),026,027,038,2,8,(11,-14),

14,6,14,3,2,14,8,(19,-18),14,4,2,0

*000F5,68,lc^

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(4,18),1,032,010,03E,010,

032,2,8,(-7,-7),1,029,02A,8,(-1,-3),02C,8,(1,-3),02E,02F,030,021,

022,8,(1,3),024,8,(-1,3),026,027,038,2,8,(11,-14),14,6,14,3,2,

14,8,(19,-18),14,4,2,0

*000F6,74,lc”

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(4,20),1,01E,012,016,01A,2,

090,1,01E,012,016,01A,2,8,(-5,-6),1,029,02A,8,(-1,-3),02C,

8,(1,-3),02E,02F,030,021,022,8,(1,3),024,8,(-1,3),026,027,038,2,

8,(11,-14),14,6,14,3,2,14,8,(19,-18),14,4,2,0

*000F7,41,kto

2,14,8,(-9,-14),14,5,8,(8,13),1,01E,012,016,01A,2,8,(-5,-6),1,

0C0,2,8,(-7,-6),1,01E,012,016,01A,2,8,(10,-1),14,6,14,8,(9,-9),0

*000F8,24,lc›

7,06F,2,8,(-3,14),14,8,(9,9),1,8,(-13,-14),2,8,(17,0),

14,8,(-10,-9),0

*000F9,54,lc—

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(5,21),1,8,(9,-4),2,

Sample Files | 137

Page 144: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

8,(-10,-3),1,0AC,8,(1,-3),02F,030,021,032,2,0A4,1,0EC,2,8,(4,0),

14,6,14,3,2,14,8,(19,-18),14,4,2,0

*000FA,54,lc

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(5,17),1,8,(9,4),2,

8,(-10,-7),1,0AC,8,(1,-3),02F,030,021,032,2,0A4,1,0EC,2,8,(4,0),

14,6,14,3,2,14,8,(19,-18),14,4,2,0

*000FB,61,lc-

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(5,18),3,2,1,8,(9,6),

8,(9,-6),4,2,2,8,(-10,-4),1,0AC,8,(1,-3),02F,030,021,032,2,0A4,1,

0EC,2,8,(4,0),14,6,14,3,2,14,8,(19,-18),14,4,2,0

*000FC,62,lc_

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(4,20),1,01E,012,016,01A,2,

090,1,01E,012,016,01A,2,8,(-9,-6),1,0AC,8,(1,-3),02F,030,021,032,

2,0A4,1,0EC,2,8,(4,0),14,6,14,3,2,14,8,(19,-18),14,4,2,0

*000FD,43,lc^

2,14,8,(-8,-14),14,5,8,(2,14),5,032,1,8,(9,4),6,8,(6,-14),2,

8,(6,14),1,8,(-6,-14),04B,02A,029,018,2,8,(15,7),14,6,

14,8,(8,-16),0

*000FF,53,lc˜

2,14,8,(-8,-21),14,5,8,(3,20),1,01E,012,016,01A,2,080,1,01E,012,

016,01A,2,8,(-9,-6),1,8,(6,-14),2,8,(6,14),1,8,(-6,-14),04B,02A,

029,018,2,8,(15,7),14,6,14,8,(8,-16),0

*00104,50,c164

2,14,8,(-9,-21),14,5,8,(9,21),1,8,(-8,-21),2,8,(8,21),1,

8,(8,-21),3,2,10,(5,36),1,10,(5,-100),4,2,2,8,(-13,7),1,0A0,2,

8,(4,-7),14,6,14,8,(9,-9),0

*00105,66,c165

2,14,3,2,14,8,(-19,-28),14,4,2,14,5,8,(15,14),1,0EC,3,2,10,

(5,36),2,10,(5,-100),4,2,2,0B4,1,026,027,038,029,02A,8,(-1,-3),

02C,8,(1,-3),02E,02F,030,021,022,2,8,(4,-3),14,6,14,3,2,

14,8,(19,-18),14,4,2,0

*00106,71,c143

2,14,3,2,14,8,(-21,-42),14,4,2,14,5,3,2,2,8,(18,48),1,8,(8,6),2,

8,(-26,-54),4,2,8,(18,16),1,025,026,027,048,029,02A,02B,

8,(-1,-3),05C,8,(1,-3),02D,02E,02F,040,021,022,023,2,8,(3,-5),

14,6,14,3,2,14,8,(21,-18),14,4,2,0

*00107,54,c134

2,14,8,(-9,-14),14,5,8,(15,11),3,2,8,(-15,10),1,8,(6,4),2,

8,(9,-14),4,2,1,026,027,038,029,02A,8,(-1,-3),02C,8,(1,-3),02E,

02F,030,021,022,2,8,(3,-3),14,6,14,8,(9,-9),0

*0010C,49,c172

2,14,8,(-11,-27),8,(18,16),1,025,026,027,048,029,02A,02B,

8,(-1,-3),05C,8,(1,-3),02D,02E,02F,040,021,022,023,2,8,(-7,18),1,

138 | Chapter 8 Shapes and Shape Fonts

Page 145: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

042,2,04A,1,046,2,8,(14,-27),14,8,(-10,-9),0

*0010D,41,c159

2,14,8,(-9,-20),0F0,0B4,1,026,027,038,029,02A,8,(-1,-3),02C,

8,(1,-3),02E,02F,030,021,022,2,068,0D4,1,042,2,04A,1,046,2,

8,(13,-20),14,09A,0

*0010E,53,c210

2,14,8,(-11,-27),8,(4,21),1,0FC,06C,2,0F4,064,1,070,8,(3,-1),02E,

02D,8,(1,-3),05C,8,(-1,-3),02B,02A,8,(-3,-1),078,2,8,(7,23),1,

042,2,04A,1,046,2,8,(14,-27),14,8,(-10,-9),0

*0010F,46,c212

2,14,8,(-10,-21),8,(15,21),1,0FC,06C,2,0B4,1,026,027,038,029,02A,

8,(-1,-3),02C,8,(1,-3),02E,02F,030,021,022,2,8,(4,18),1,

8,(-3,-4),2,8,(3,-17),14,09A,0

*00118,66,c168

2,14,3,2,14,8,(-19,-42),14,4,2,14,5,8,(4,21),1,8,(0,-21),2,

8,(0,21),1,0D0,2,8,(-13,-10),1,080,2,8,(-8,-11),1,0D0,3,2,10,

(5,36),1,10,(5,-100),4,2,2,8,(2,0),14,6,14,3,2,14,8,(19,-18),

14,4,2,0

*00119,66,c169

2,14,8,(-9,-14),14,5,8,(3,8),1,0C0,024,025,016,027,038,029,02A,

8,(-1,-3),02C,8,(1,-3),02E,02F,030,3,2,10,(5,36),2,10,(5,-100),1,

4,2,021,022,2,3,2,10,(5,36),2,10,(5,-100),4,2,2,8,(3,-3),14,6,

14,8,(9,-9),0

*0011A,43,c183

2,14,8,(-10,-27),8,(4,21),1,0FC,06C,2,0F4,064,1,0D0,2,0D8,0AC,1,

080,2,088,0BC,1,0D0,2,8,(-7,23),1,042,2,04A,1,046,2,8,(13,-27),

14,09A,0

*0011B,44,c216

2,14,8,(-9,-20),030,084,1,0C0,024,025,016,027,038,029,02A,

8,(-1,-3),02C,8,(1,-3),02E,02F,030,021,022,2,068,0D4,1,042,2,04A,

1,046,2,8,(13,-20),14,09A,0

*00141,51,c157

2,14,3,2,14,8,(-17,-42),14,4,2,14,5,8,(3,21),1,8,(0,-21),2,

8,(-1,11),1,8,(7,8),2,8,(-6,-19),1,0C0,2,8,(3,0),14,6,14,3,2,

14,8,(17,-18),14,4,2,0

*00142,33,c136

2,14,8,(-4,-21),14,5,8,(5,21),1,8,(0,-21),2,8,(-1,10),1,8,(4,6),

2,8,(3,-16),14,6,14,8,(4,-9),0

*00143,52,c227

2,14,8,(-11,-21),14,5,8,(4,21),8,(5,3),1,8,(4,3),2,8,(-9,-6),1,

8,(0,-21),2,8,(0,21),1,8,(14,-21),2,8,(0,21),1,8,(0,-21),2,

Sample Files | 139

Page 146: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

8,(4,0),14,6,14,8,(11,-9),0

*00144,57,c228

2,14,3,2,14,8,(-19,-28),14,4,2,14,5,8,(4,14),8,(4,2),1,8,(3,2),2,

8,(-7,-4),1,0EC,2,0A4,1,032,021,030,02F,8,(1,-3),0AC,2,8,(4,0),

14,6,14,3,2,14,8,(19,-18),14,4,2,0

*00147,38,c213

2,14,8,(-11,-27),8,(4,21),1,0FC,06C,2,0F4,064,1,8,(14,-21),0F4,

064,2,078,024,1,042,2,04A,1,046,2,8,(15,-27),14,8,(-11,-9),0

*00148,37,c229

2,14,8,(-10,-20),040,0E4,1,0EC,2,0A4,1,032,021,030,02F,8,(1,-3),

0AC,2,8,(-5,16),1,042,2,04A,1,046,2,8,(13,-20),14,09A,0

*00150,58,c138

2,14,8,(-11,-21),14,5,8,(9,21),1,029,02A,02B,8,(-1,-3),05C,

8,(1,-3),02D,02E,02F,040,021,022,023,8,(1,3),054,8,(-1,3),025,

026,027,048,2,034,1,044,2,040,1,04C,2,8,(9,-24),14,6,

14,8,(11,-9),0

*00151,68,c139

2,14,3,2,14,8,(-19,-28),14,4,2,14,5,8,(8,14),1,029,02A,8,(-1,-3),

02C,8,(1,-3),02E,02F,030,021,022,8,(1,3),024,8,(-1,3),026,027,

038,2,8,(4,4),1,044,2,058,1,04C,2,8,(12,-18),14,6,14,3,2,

14,8,(19,-18),14,4,2,0

*00158,53,c252

2,14,8,(-11,-27),8,(4,21),1,0FC,06C,2,0F4,064,1,090,8,(3,-1),01E,

02D,02C,02B,01A,8,(-3,-1),098,2,070,1,8,(7,-11),2,8,(-7,23),1,

042,2,04A,1,046,2,8,(14,-27),14,8,(-10,-9),0

*00159,35,c253

2,14,8,(-7,-20),040,0E4,1,0EC,2,084,1,8,(1,3),022,021,030,2,058,

024,1,042,2,04A,1,046,2,0FD,05D,14,8,(-6,-9),0

*0015A,62,c151

2,14,8,(-10,-21),14,5,8,(17,18),8,(-9,6),1,8,(4,3),2,8,(5,-9),1,

026,8,(-3,1),048,8,(-3,-1),02A,02C,02D,01E,02F,8,(6,-2),02F,01E,

02D,03C,02A,8,(-3,-1),048,8,(-3,1),026,2,8,(17,-3),14,6,

14,8,(10,-9),0

*0015B,71,c152

2,14,3,2,14,8,(-17,-28),14,4,2,14,5,8,(14,11),8,(-7,5),1,8,(3,2),

2,8,(4,-7),1,025,8,(-3,1),038,8,(-3,-1),02B,02D,02F,8,(5,-1),02F,

02D,01C,02B,8,(-3,-1),038,8,(-3,1),025,2,8,(14,-3),14,6,14,3,2,

14,8,(17,-18),14,4,2,0

*00160,57,c230

2,14,8,(-10,-27),8,(17,18),1,026,8,(-3,1),048,8,(-3,-1),02A,02C,

02D,01E,02F,8,(6,-2),02F,01E,02D,03C,02A,8,(-3,-1),048,8,(-3,1),

026,2,8,(7,20),1,042,2,04A,1,046,2,8,(14,-27),14,8,(-10,-9),0

140 | Chapter 8 Shapes and Shape Fonts

Page 147: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

*00161,52,c231

2,14,8,(-9,-20),0E0,0B4,1,025,8,(-3,1),038,8,(-3,-1),02B,02D,02F,

8,(5,-1),02F,02D,01C,02B,8,(-3,-1),038,8,(-3,1),025,2,060,0D4,1,

042,2,04A,1,046,2,8,(12,-20),14,8,(-8,-9),0

*00164,35,c155

2,14,8,(-8,-27),8,(8,21),1,0FC,06C,2,8,(-7,21),1,0E0,2,078,024,1,

042,2,04A,1,046,2,8,(12,-27),14,8,(-8,-9),0

*00165,36,c156

2,14,8,(-6,-21),8,(5,21),1,0FC,02C,8,(1,-3),02F,020,2,088,0E4,1,

070,2,074,1,8,(-3,-4),2,8,(6,-17),14,8,(-6,-9),0

*0016E,45,c222

2,14,8,(-11,-27),8,(4,21),1,0FC,8,(1,-3),02E,8,(3,-1),020,

8,(3,1),022,8,(1,3),0F4,2,078,024,1,021,024,027,029,02C,02F,2,

8,(11,-23),14,8,(-11,-9),0

*0016F,38,c133

2,14,8,(-10,-20),040,0E4,1,0AC,8,(1,-3),02F,030,021,032,2,0A4,1,

0EC,2,8,(-5,16),1,021,024,027,029,02C,02F,2,8,(9,-16),14,09A,0

*00170,52,c235

2,14,8,(-11,-21),14,5,8,(4,21),1,0FC,8,(1,-3),02E,8,(3,-1),020,

8,(3,1),022,8,(1,3),0F4,2,058,034,1,044,2,048,1,04C,2,8,(9,-2),2,

8,(4,-22),14,6,14,8,(11,-9),0

*00171,60,c251

2,14,3,2,14,8,(-19,-28),14,4,2,14,5,8,(4,14),1,0AC,8,(1,-3),02F,

030,021,032,2,0A4,1,0EC,2,8,(-8,18),1,044,2,050,1,04C,2,

8,(3,-18),2,8,(4,0),14,6,14,3,2,14,8,(19,-20),14,4,2,0

*00179,45,c141

2,14,8,(-10,-21),14,5,8,(17,21),1,8,(-14,-21),2,8,(5,24),1,

8,(4,3),2,8,(-9,-6),1,0E0,2,8,(-14,-21),1,0E0,2,8,(3,0),14,6,

14,8,(10,-9),0

*0017A,58,c171

2,14,3,2,14,8,(-17,-28),14,4,2,14,5,8,(14,14),8,(-7,2),1,8,(3,2),

2,8,(4,-4),1,8,(-11,-14),2,0E4,1,0B0,2,8,(-11,-14),1,0B0,2,

8,(3,0),14,6,14,3,2,14,8,(17,-18),14,4,2,0

*0017B,45,c189

2,14,8,(-10,-21),14,5,8,(17,21),5,3,2,8,(-13,6),1,10,(2,96),4,2,

6,1,8,(-14,-21),0E0,2,8,(-14,21),1,0E0,2,8,(3,-21),14,6,

14,8,(10,-9),0

*0017C,59,c190

2,14,3,2,14,8,(-17,-28),14,4,2,14,5,8,(14,14),5,3,2,8,(-11,5),1,

10,(1,96),4,2,6,8,(-11,-14),2,0E4,1,0B0,2,8,(-11,-14),1,0B0,2,

8,(3,0),14,6,14,3,2,14,8,(17,-18),14,4,2,0

*0017D,42,c166

Sample Files | 141

Page 148: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,14,8,(-10,-27),8,(17,21),1,8,(-14,-21),2,0F4,064,1,0E0,2,

8,(-14,-21),1,0E0,2,8,(-7,23),1,042,2,04A,1,046,2,8,(14,-27),

14,8,(-10,-9),0

*0017E,38,c167

2,14,8,(-9,-20),0E2,1,8,(-11,-14),2,0E4,1,0B0,2,0B8,0EC,1,0B0,2,

8,(-5,16),1,042,2,04A,1,046,2,8,(12,-20),14,8,(-8,-9),0

*00410,38,_

2,14,8,(-9,-21),2,8,(4,7),1,9,(10,0),(0,0),2,8,(-13,-7),1,9,

(8,21),(8,-21),(0,0),2,8,(1,0),1,2,14,8,(-9,-9),0

*00411,46,_

2,14,8,(-10,-21),2,8,(15,21),1,9,(-11,0),(0,-21),(9,0),(3,1),

(1,1),(1,2),(0,3),(-1,2),(-1,1),(-3,1),(-9,0),(0,0),2,8,(17,-11),

1,2,14,8,(-11,-9),0

*00412,68,‚

2,14,8,(-11,-21),2,8,(13,21),1,9,(-9,0),(0,-21),(9,0),(3,1),

(1,1),(1,2),(0,3),(-1,2),(-1,1),(-3,1),(-9,0),(0,0),2,8,(9,10),1,

9,(3,-1),(1,-1),(1,-2),(0,-2),(-1,-2),(-1,-1),(-3,-1),(0,0),2,

8,(9,-11),1,2,14,8,(-11,-9),0

*00413,28,ƒ

2,14,8,(-8,-21),2,8,(16,21),1,9,(-12,0),(0,-21),(0,0),2,8,(13,0),

1,2,14,8,(-9,-9),0

*00414,50,„

2,14,8,(-12,-21),2,8,(22,-4),1,9,(0,4),(-20,0),(0,-4),(0,0),2,

8,(2,4),1,9,(3,3),(1,2),(1,4),(0,12),(11,0),(0,-21),(0,0),2,

8,(4,0),1,2,14,8,(-12,-13),0

*00415,40,…

2,14,8,(-9,-21),2,8,(17,21),1,9,(-13,0),(0,-21),(13,0),(0,0),2,

8,(-1,11),1,9,(-12,0),(0,0),2,8,(15,-11),1,2,14,8,(-10,-9),0

*00416,66,†

2,14,8,(-12,-21),2,8,(1,0),1,9,(9,12),(0,0),2,8,(2,9),1,9,

(0,-21),(0,0),2,8,(11,21),1,9,(-11,-11),(0,0),2,8,(-11,11),1,9,

(11,-11),(0,0),2,8,(11,-10),1,9,(-9,12),(0,0),2,8,(10,-12),1,2,

14,8,(-12,-9),0

*00417,68,‡

2,14,8,(-9,-21),2,8,(3,20),1,9,(4,1),(3,0),(3,-1),(1,-2),(0,-2),

(-1,-2),(-3,-2),(3,-1),(2,-2),(1,-2),(0,-2),(-1,-2),(-2,-2),

(-3,-1),(-3,0),(-3,1),(-3,2),(0,0),2,8,(9,9),1,9,(-4,0),(0,0),2,

8,(12,-12),1,2,14,8,(-9,-9),0

*00418,30,ˆ

2,14,8,(-11,-21),2,8,(4,21),1,9,(0,-21),(14,21),(0,-21),(0,0),2,

8,(4,0),1,2,14,8,(-11,-9),0

*00419,48,‰

142 | Chapter 8 Shapes and Shape Fonts

Page 149: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,14,8,(-11,-21),2,8,(4,21),1,9,(0,-21),(14,21),(0,-21),(0,0),2,

8,(-11,26),1,9,(1,-1),(2,-1),(2,0),(2,1),(1,1),(0,0),2,8,(7,-26),

1,2,14,8,(-11,-9),0

*0041A,46,Š

2,14,8,(-10,-21),2,8,(18,0),1,9,(-9,12),(0,0),2,8,(9,9),1,9,

(-14,-14),(0,0),2,8,(0,14),1,9,(0,-21),(0,0),2,8,(16,0),1,2,

14,8,(-10,-9),0

*0041B,36,‹

2,14,8,(-10,-21),2,8,(16,0),1,9,(0,21),(-11,0),(0,-17),(-1,-2),

(-1,-1),(-2,-1),(0,0),2,8,(19,0),1,2,14,8,(-10,-9),0

*0041C,32,Œ

2,14,8,(-12,-21),2,8,(20,0),1,9,(0,21),(-8,-15),(-8,15),(0,-21),

(0,0),2,8,(20,0),1,2,14,8,(-12,-9),0

*0041D,46,_

2,14,8,(-11,-21),2,8,(4,21),1,9,(0,-21),(0,0),2,8,(0,11),1,9,

(14,0),(0,0),2,8,(0,-11),1,9,(0,21),(0,0),2,8,(4,-21),1,2,

14,8,(-11,-9),0

*0041E,64,_

2,14,8,(-11,-21),2,8,(9,21),1,9,(4,0),(2,-1),(2,-2),(1,-2),

(1,-3),(0,-5),(-1,-3),(-1,-2),(-2,-2),(-2,-1),(-4,0),(-2,1),

(-2,2),(-1,2),(-1,3),(0,5),(1,3),(1,2),(2,2),(2,1),(0,0),2,

8,(13,-21),1,2,14,8,(-11,-9),0

*0041F,30,_

2,14,8,(-11,-21),2,8,(4,0),1,9,(0,21),(14,0),(0,-21),(0,0),2,

8,(4,0),1,2,14,8,(-11,-9),0

*00420,44,_

2,14,8,(-10,-21),2,8,(4,0),1,9,(0,21),(9,0),(3,-1),(1,-1),(1,-2),

(0,-3),(-1,-2),(-1,-1),(-3,-1),(-9,0),(0,0),2,8,(16,-10),1,2,

14,8,(-10,-9),0

*00421,62,'

2,14,8,(-10,-21),2,8,(18,16),1,9,(-1,2),(-1,1),(-1,1),(-2,1),

(-4,0),(-2,-1),(-1,-1),(-1,-1),(-1,-2),(-1,-3),(0,-5),(1,-3),

(1,-2),(2,-2),(2,-1),(4,0),(2,1),(2,2),(1,2),(0,0),2,8,(2,-5),1,

2,14,8,(-10,-9),0

*00422,36,'

2,14,8,(-8,-21),2,8,(8,21),1,9,(0,-21),(0,0),2,8,(-7,21),1,9,

(14,0),(0,0),2,8,(1,-21),1,2,14,8,(-8,-9),0

*00423,44,“

2,14,8,(-8,-21),2,8,(15,21),1,9,(-7,-17),(-1,-2),(-1,-1),(-2,-1),

(-1,0),(0,0),2,8,(-2,21),1,9,(7,-17),(0,0),2,8,(8,-4),1,2,

14,8,(-8,-9),0

*00424,74,”

2,14,8,(-13,-21),2,8,(11,19),1,9,(4,0),(3,-1),(2,-1),(2,-2),

Sample Files | 143

Page 150: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

(1,-2),(0,-4),(-1,-2),(-2,-2),(-2,-1),(-3,-1),(-4,0),(-3,1),

(-2,1),(-2,2),(-1,2),(0,4),(1,2),(2,2),(2,1),(3,1),(0,0),2,

8,(2,2),1,9,(0,-21),(0,0),2,8,(13,0),1,2,14,8,(-13,-9),0

*00425,36,•

2,14,8,(-8,-21),2,8,(15,21),1,9,(-14,-21),(0,0),2,8,(0,21),1,9,

(14,-21),(0,0),2,8,(1,0),1,2,14,8,(-8,-9),0

*00426,40,-

2,14,8,(-11,-21),2,8,(4,21),1,9,(0,-21),(16,0),(0,-4),(0,0),2,

8,(-2,25),1,9,(0,-21),(0,0),2,8,(4,0),1,2,14,8,(-11,-13),0

*00427,44,—

2,14,8,(-10,-21),2,8,(3,21),1,9,(0,-8),(1,-3),(1,-1),(3,-1),

(9,0),(0,0),2,8,(0,13),1,9,(0,-21),(0,0),2,8,(4,0),1,2,

14,8,(-11,-9),0

*00428,40,˜

2,14,8,(-14,-21),2,8,(4,21),1,9,(0,-21),(21,0),(0,21),(0,0),2,

8,(-10,0),1,9,(0,-21),(0,0),2,8,(14,0),1,2,14,8,(-15,-9),0

*00429,50,™

2,14,8,(-14,-21),2,8,(4,21),1,9,(0,-21),(23,0),(0,-4),(0,0),2,

8,(-12,25),1,9,(0,-21),(0,0),2,8,(10,21),1,9,(0,-21),(0,0),2,

8,(4,0),1,2,14,8,(-15,-13),0

*0042A,48,š

2,14,8,(-10,-21),2,8,(1,21),1,9,(4,0),(0,-21),(8,0),(2,0),(2,1),

(1,1),(1,2),(0,4),(-1,2),(-1,1),(-2,1),(-10,0),(0,0),2,

8,(16,-12),1,2,14,8,(-11,-9),0

*0042B,54,›

2,14,8,(-12,-21),2,8,(4,21),1,9,(0,-21),(9,0),(2,1),(1,1),(1,2),

(0,4),(-1,2),(-1,1),(-2,1),(-9,0),(0,0),2,8,(16,9),1,9,(0,-21),

(0,0),2,8,(4,0),1,2,14,8,(-12,-9),0

*0042C,44,œ

2,14,8,(-10,-21),2,8,(4,21),1,9,(0,-21),(10,0),(2,1),(1,1),(1,2),

(0,4),(-1,2),(-1,1),(-2,1),(-10,0),(0,0),2,8,(16,-12),1,2,

14,8,(-10,-9),0

*0042D,64,_

2,14,8,(-9,-21),2,8,(6,11),1,9,(10,0),(0,0),2,8,(-14,7),1,9,

(2,2),(2,1),(4,0),(2,-1),(2,-2),(1,-2),(1,-3),(0,-5),(-1,-3),

(-1,-2),(-2,-2),(-2,-1),(-4,0),(-2,1),(-2,2),(0,0),2,8,(17,-3),1,

2,14,8,(-10,-9),0

*0042E,76,_

2,14,8,(-13,-21),2,8,(14,21),1,9,(4,0),(2,-1),(2,-3),(1,-4),

(0,-5),(-1,-4),(-2,-3),(-2,-1),(-4,0),(-2,1),(-2,3),(-1,4),(0,5),

(1,4),(2,3),(2,1),(0,0),2,8,(-5,-10),1,9,(-5,0),(0,0),2,8,(0,10),

1,9,(0,-21),(0,0),2,8,(22,0),1,2,14,8,(-13,-9),0

*0042F,54,Ÿ

144 | Chapter 8 Shapes and Shape Fonts

Page 151: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,14,8,(-10,-21),2,8,(2,0),1,9,(7,11),(0,0),2,8,(7,-11),1,9,

(0,21),(-9,0),(-3,-1),(-1,-1),(-1,-2),(0,-2),(1,-2),(1,-1),

(3,-1),(9,0),(0,0),2,8,(4,-11),1,2,14,8,(-10,-9),0

*00430,62,

2,14,8,(-9,-14),2,8,(15,3),1,9,(-2,-2),(-2,-1),(-3,0),(-2,1),

(-1,1),(-1,1),(-1,3),(0,2),(1,3),(2,2),(2,1),(3,0),(2,-1),(2,-2),

(0,0),2,8,(0,3),1,9,(0,-14),(0,0),2,8,(4,0),1,2,14,8,(-10,-9),0

*00431,64,

2,14,8,(-9,-21),2,8,(14,21),1,9,(-2,-1),(-5,-1),(-2,-1),(-1,-2),

(0,-12),(1,-2),(1,-1),(2,-1),(3,0),(2,1),(2,2),(1,3),(0,2),

(-1,3),(-1,1),(-1,1),(-2,1),(-3,0),(-2,-1),(-2,-2),(0,0),2,

8,(15,-11),1,2,14,8,(-10,-9),0

*00432,68,

2,14,8,(-9,-21),2,8,(4,11),1,9,(2,2),(2,1),(3,2),(1,2),(-1,2),

(-1,1),(-3,0),(-2,-1),(-1,-1),(0,-15),(1,-2),(1,-1),(2,-1),(3,0),

(2,1),(2,2),(1,3),(0,2),(-1,3),(-2,2),(-2,1),(-3,0),(0,0),2,

8,(11,-14),1,2,14,8,(-10,-9),0

*00433,56,

2,14,8,(-8,-14),2,8,(3,11),1,9,(1,2),(3,1),(3,0),(3,-1),(1,-2),

(-1,-2),(-2,-1),(-5,-1),(-2,-1),(-1,-2),(0,-1),(1,-2),(3,-1),

(3,0),(3,1),(1,2),(0,0),2,8,(3,-3),1,2,14,8,(-9,-9),0

*00434,72,

2,14,8,(-9,-14),2,8,(15,11),1,9,(-1,1),(-1,1),(-2,1),(-3,0),

(-2,-1),(-2,-2),(-1,-3),(0,-2),(1,-3),(2,-2),(2,-1),(3,0),(2,1),

(2,2),(0,0),2,8,(0,11),1,9,(0,-16),(-1,-3),(-1,-1),(-2,-1),

(-3,0),(-2,1),(0,0),2,8,(13,6),1,2,14,8,(-10,-16),0

*00435,56,

2,14,8,(-9,-14),2,8,(3,8),1,9,(12,0),(0,2),(-1,2),(-1,1),(-2,1),

(-3,0),(-2,-1),(-2,-2),(-1,-3),(0,-2),(1,-3),(2,-2),(2,-1),(3,0),

(2,1),(2,2),(0,0),2,8,(3,-3),1,2,14,8,(-9,-9),0

*00436,58,

2,14,8,(-11,-14),2,8,(1,0),1,9,(7,8),(0,0),2,8,(12,6),1,9,

(-9,-9),(-9,9),(0,0),2,8,(9,0),1,9,(0,-14),(0,0),2,8,(3,8),1,9,

(7,-8),(0,0),2,8,(1,0),1,2,14,8,(-11,-9),0

*00437,62,

2,14,8,(-7,-14),2,8,(8,8),1,9,(2,-1),(1,-1),(1,-2),(-1,-2),

(-1,-1),(-2,-1),(-4,0),(-3,1),(0,0),2,8,(0,12),1,9,(3,1),(3,0),

(3,-1),(1,-2),(-1,-2),(-2,-1),(-3,0),(0,0),2,8,(9,-8),1,2,

14,8,(-7,-9),0

*00438,46,

2,14,8,(-9,-14),2,8,(4,14),1,9,(0,-10),(1,-3),(2,-1),(3,0),(2,1),

(3,3),(0,0),2,8,(0,10),1,9,(0,-14),(0,0),2,8,(4,0),1,2,

14,8,(-10,-9),0

Sample Files | 145

Page 152: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

*00439,64,

2,14,8,(-9,-14),2,8,(4,14),1,9,(0,-10),(1,-3),(2,-1),(3,0),(2,1),

(3,3),(0,0),2,8,(0,10),1,9,(0,-14),(0,0),2,8,(-9,18),1,9,(1,-1),

(2,-1),(2,0),(2,1),(1,1),(0,0),2,8,(5,-18),1,2,14,8,(-10,-9),0

*0043A,46,

2,14,8,(-8,-14),2,8,(4,14),1,9,(0,-14),(0,0),2,8,(4,8),1,9,

(7,-8),(0,0),2,8,(-1,14),1,9,(-10,-10),(0,0),2,8,(12,-4),1,2,

14,8,(-8,-9),0

*0043B,44,

2,14,8,(-9,-14),2,8,(14,14),1,9,(-6,0),(0,-10),(-1,-3),(-2,-1),

(-2,0),(0,0),2,8,(11,14),1,9,(0,-14),(0,0),2,8,(4,0),1,2,

14,8,(-9,-9),0

*0043C,32,

2,14,8,(-11,-14),2,8,(18,0),1,9,(0,14),(-7,-11),(-7,11),(0,-14),

(0,0),2,8,(18,0),1,2,14,8,(-11,-9),0

*0043D,46,-

2,14,8,(-9,-14),2,8,(4,7),1,9,(11,0),(0,0),2,8,(0,7),1,9,(0,-14),

(0,0),2,8,(-11,14),1,9,(0,-14),(0,0),2,8,(15,0),1,2,

14,8,(-10,-9),0

*0043E,56,

2,14,8,(-9,-14),2,8,(8,14),1,9,(3,0),(2,-1),(2,-2),(1,-3),(0,-2),

(-1,-3),(-2,-2),(-2,-1),(-3,0),(-2,1),(-2,2),(-1,3),(0,2),(1,3),

(2,2),(2,1),(0,0),2,8,(11,-14),1,2,14,8,(-10,-9),0

*0043F,46,

2,14,8,(-9,-14),2,8,(4,14),1,9,(0,-14),(0,0),2,8,(0,10),1,9,

(3,3),(2,1),(3,0),(2,-1),(1,-2),(0,-11),(0,0),2,8,(4,0),1,2,

14,8,(-10,-9),0

*00440,60,

2,14,8,(-9,-14),2,8,(4,14),1,9,(0,-21),(0,0),2,8,(0,18),1,9,

(2,2),(2,1),(3,0),(2,-1),(2,-2),(1,-3),(0,-2),(-1,-3),(-2,-2),

(-2,-1),(-3,0),(-2,1),(-2,2),(0,0),2,8,(15,-3),1,2,

14,8,(-10,-16),0

*00441,50,

2,14,8,(-8,-14),2,8,(15,11),1,9,(-2,2),(-2,1),(-3,0),(-2,-1),

(-2,-2),(-1,-3),(0,-2),(1,-3),(2,-2),(2,-1),(3,0),(2,1),(2,2),

(0,0),2,8,(2,-3),1,2,14,8,(-9,-9),0

*00442,66,

2,14,8,(-14,-14),2,8,(4,14),1,9,(0,-14),(0,0),2,8,(0,10),1,9,

(3,3),(2,1),(2,0),(2,-1),(1,-3),(0,-10),(0,0),2,8,(0,10),1,9,

(3,3),(2,1),(2,0),(2,-1),(1,-3),(0,-10),(0,0),2,8,(4,0),1,2,

14,8,(-14,-9),0

*00443,44,

146 | Chapter 8 Shapes and Shape Fonts

Page 153: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,14,8,(-7,-14),2,8,(1,14),1,9,(6,-14),(0,0),2,8,(6,14),1,9,

(-6,-14),(-2,-4),(-2,-2),(-2,-1),(-1,0),(0,0),2,8,(14,7),1,2,

14,8,(-7,-16),0

*00444,66,

2,14,8,(-11,-14),2,8,(14,14),1,9,(-6,0),(-2,-1),(-2,-2),(-1,-3),

(0,-2),(1,-3),(2,-2),(2,-1),(6,0),(2,1),(2,2),(1,3),(0,2),(-1,3),

(-2,2),(-2,1),(0,0),2,8,(-3,0),1,9,(0,-21),(0,0),2,8,(11,7),1,2,

14,8,(-11,-16),0

*00445,36,

2,14,8,(-6,-14),2,8,(1,14),1,9,(11,-14),(0,0),2,8,(0,14),1,9,

(-11,-14),(0,0),2,8,(12,0),1,2,14,8,(-7,-9),0

*00446,50,

2,14,8,(-9,-14),2,8,(4,14),1,9,(0,-10),(1,-3),(2,-1),(3,0),(2,1),

(3,3),(0,0),2,8,(0,10),1,9,(0,-14),(2,0),(0,-3),(0,0),2,8,(2,3),

1,2,14,8,(-10,-12),0

*00447,46,

2,14,8,(-9,-14),2,8,(3,14),1,9,(0,-5),(1,-3),(2,-1),(3,0),(2,1),

(3,3),(0,0),2,8,(0,5),1,9,(0,-14),(0,0),2,8,(4,0),1,2,

14,8,(-9,-9),0

*00448,66,

2,14,8,(-14,-14),2,8,(24,0),1,9,(0,14),(0,0),2,8,(0,-10),1,9,

(-3,-3),(-2,-1),(-2,0),(-2,1),(-1,3),(0,10),(0,0),2,8,(0,-10),1,

9,(-3,-3),(-2,-1),(-2,0),(-2,1),(-1,3),(0,10),(0,0),2,8,(24,-14),

1,2,14,8,(-14,-9),0

*00449,70,

2,14,8,(-14,-14),2,8,(14,4),1,9,(-3,-3),(-2,-1),(-2,0),(-2,1),

(-1,3),(0,10),(0,0),2,8,(20,-10),1,9,(-3,-3),(-2,-1),(-2,0),

(-2,1),(-1,3),(0,10),(0,0),2,8,(10,0),1,9,(0,-14),(2,0),(0,-3),

(0,0),2,8,(2,3),1,2,14,8,(-14,-12),0

*0044A,64,

2,14,8,(-9,-14),2,8,(4,8),1,9,(1,1),(2,1),(3,0),(1,0),(2,-1),

(1,-1),(1,-2),(0,-2),(-1,-2),(-1,-1),(-2,-1),(-4,0),(-2,1),

(-1,1),(0,0),2,8,(-3,12),1,9,(3,0),(0,-14),(0,0),2,8,(14,0),1,2,

14,8,(-9,-9),0

*0044B,72,

2,14,8,(-10,-14),2,8,(4,8),1,9,(1,1),(2,1),(3,0),(1,0),(2,-1),

(1,-1),(1,-2),(0,-2),(-1,-2),(-1,-1),(-2,-1),(-4,0),(-2,1),

(-1,1),(0,0),2,8,(0,12),1,9,(0,-14),(0,0),2,8,(13,14),1,9,

(0,-14),(0,0),2,8,(4,0),1,2,14,8,(-11,-9),0

*0044C,62,

2,14,8,(-9,-14),2,8,(4,8),1,9,(1,1),(2,1),(3,0),(1,0),(2,-1),

(1,-1),(1,-2),(0,-2),(-1,-2),(-1,-1),(-2,-1),(-4,0),(-2,1),

(-1,1),(0,0),2,8,(0,12),1,9,(0,-14),(0,0),2,8,(14,0),1,2,

Sample Files | 147

Page 154: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

14,8,(-9,-9),0

*0044D,60,

2,14,8,(-8,-14),2,8,(2,11),1,9,(2,2),(2,1),(3,0),(2,-1),(2,-2),

(1,-3),(0,-2),(-1,-3),(-2,-2),(-2,-1),(-3,0),(-2,1),(-2,2),(0,0),

2,8,(12,4),1,9,(-6,0),(0,0),2,8,(9,-7),1,2,14,8,(-9,-9),0

*0044E,70,

2,14,8,(-12,-14),2,8,(4,14),1,9,(0,-14),(0,0),2,8,(0,7),1,9,

(5,0),(0,1),(1,3),(2,2),(2,1),(2,0),(2,-1),(2,-2),(1,-3),(0,-2),

(-1,-3),(-2,-2),(-2,-1),(-2,0),(-2,1),(-2,2),(-1,3),(0,1),(0,0),

2,8,(15,-7),1,2,14,8,(-12,-9),0

*0044F,54,

2,14,8,(-8,-14),2,8,(3,0),1,9,(4,5),(0,0),2,8,(6,-5),1,9,(0,14),

(-6,0),(-2,-1),(-1,-1),(-1,-2),(0,-1),(1,-2),(1,-1),(2,-1),(6,0),

(0,0),2,8,(4,-5),1,2,14,8,(-9,-9),0

*020A0,4,keuroRef2

7,0020AC,0

*020A7,49,kpes

2,14,8,(-11,-21),14,5,030,1,8,(0,21),050,02F,01E,02D,05C,02B,01A,

029,058,2,8,(12,13),1,8,(0,-18),02D,02F,010,2,8,(-6,14),1,060,2,

8,(3,-14),14,6,14,8,(11,-9),0

*020AC,45,keuro

2,14,8,(-10,-21),8,(2,10),5,1,014,00A,(9,-

043),2,6,5,1,01C,00A,(9,043),

2,6,8,(-1,2),5,1,8,(13,0),2,6,04C,1,0B0,2,08C,080,14,8,(-10,-9),0

*02126,53,komega

2,14,8,(-11,-21),14,5,8,(3,1),1,01E,040,014,036,025,8,(-1,3),044,

8,(1,3),023,022,021,040,02F,02E,02D,8,(1,-3),04C,8,(-1,-3),02B,

03A,01C,040,012,2,8,(3,-1),14,6,14,8,(11,-9),0

*02205,64,kdiam

2,14,3,2,14,8,(-19,-40),14,4,2,14,5,8,(8,17),1,029,02A,8,(-1,-3),

02C,8,(1,-3),02E,02F,030,021,022,8,(1,3),024,8,(-1,3),026,027,

038,2,061,1,8,(-9,-20),2,8,(14,0),14,6,14,3,2,14,8,(19,-18),14,4,

2,0

*0221E,45,kinfin

2,14,8,(-11,-14),14,5,8,(11,11),1,025,027,028,029,02B,01C,02D,

02F,020,021,023,014,023,021,020,02F,02D,01C,02B,029,028,027,025,

2,8,(11,-10),14,6,14,8,(11,-9),0

*02264,36,kleq

2,14,8,(-13,-21),14,5,8,(22,21),1,8,(-18,-9),8,(18,-9),2,

8,(-18,-2),1,8,(18,0),2,8,(4,-1),14,6,14,8,(13,-9),0

*02302,25,ktria

148 | Chapter 8 Shapes and Shape Fonts

Page 155: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,14,8,(-10,-21),14,5,040,1,0C0,084,066,06A,08C,2,8,(16,0),14,6,

14,8,(10,-9),0

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Sample Files | 149

Page 156: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Extended Standard Font for UNICODE

150 | Chapter 8 Shapes and Shape Fonts

Page 157: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

;;

;; txt.shp - Extended Standard Font for UNICODE

;;

;; Copyright 1997 by Autodesk, Inc.

;;

;; Permission to use, copy, modify, and distribute this software

for

;; any purpose and without fee is hereby granted, provided that

the

;; above copyright notice appears in all copies and that the re

stricted

;; rights notice below appear in all supporting documentation.

;;

;; Use, duplication, or disclosure by the U.S. Government is sub

ject

;; to restrictions set forth in FAR 52.227-19 (Commercial Computer

;; Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)

;; (Rights in Technical Data and Computer Software), as applicable.

;;

*UNIFONT,6,TXT Copyright 1997 by Autodesk, Inc.

6,2,2,0,0,0

*0000A,7,lf

2,0AC,14,8,(9,10),0

*00020,7,spc

2,060,14,8,(-6,-8),0

*00021,17,kexc

2,14,06C,1,014,2,014,1,044,2,020,06C,14,8,(-2,-3),0

*00022,20,kdblqt

2,14,8,(-1,-6),044,1,023,2,010,1,02B,2,04C,030,14,8,(-3,1),0

*00023,27,kns

2,14,8,(-2,-6),024,1,040,2,024,1,048,2,023,1,06C,2,020,1,064,2,

06D,14,8,(-4,-3),0

*00024,25,kds

2,14,8,(-2,-6),014,1,030,012,016,028,016,012,030,2,027,1,06C,2,

040,14,8,(-4,-3),0

*00025,31,kpc

2,14,8,(-2,-6),064,1,01C,010,014,018,2,040,1,8,(-4,-6),2,040,1,

018,014,010,01C,2,020,14,8,(-4,-3),0

*00026,24,kand

2,14,8,(-2,-6),041,1,02A,018,016,014,022,014,016,01A,01C,04E,2,

020,14,8,(-4,-3),0

*00027,28,kapos

Sample Files | 151

Page 158: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,14,3,2,14,8,(-1,-12),14,4,2,044,1,023,2,06C,020,14,3,2,

14,8,(-5,2),14,4,2,0

*00028,16,klp

2,14,8,(-1,-6),064,020,1,02A,02C,02E,2,020,14,03A,0

*00029,15,krp

2,14,8,(-1,-6),064,1,02E,02C,02A,2,040,14,03A,0

*0002A,27,kas

2,14,8,(-2,-5),021,1,044,2,02E,1,048,2,041,1,04A,2,044,1,04E,2,

02F,14,8,(-4,-3),0

*0002B,19,kpls

2,14,8,(-2,-5),021,1,044,2,02E,1,048,2,06F,14,8,(-4,-3),0

*0002C,28,kcma

2,14,3,2,14,02B,14,4,2,014,010,1,01C,01A,2,012,020,14,3,2,

14,8,(-3,-8),14,4,2,0

*0002D,14,ksub

2,14,8,(-2,-3),034,1,040,2,020,03C,14,048,0

*0002E,12,kper

2,14,01C,1,014,2,02F,14,8,(-2,-3),0

*0002F,17,kdiv

2,14,8,(-2,-6),1,8,(4,6),2,020,06C,14,8,(-4,-3),0

*00030,34,n0

2,14,3,2,14,8,(-3,-12),14,4,2,010,1,016,044,012,010,01E,04C,01A,

018,2,040,14,3,2,14,8,(-7,-6),14,4,2,0

*00031,18,n1

2,14,8,(-1,-6),054,1,012,06C,2,018,1,020,2,020,14,03A,0

*00032,23,n2

2,14,8,(-2,-6),054,1,012,020,01E,01C,01A,028,01A,02C,040,2,020,

14,8,(-4,-3),0

*00033,29,n3

2,14,8,(-2,-6),054,1,012,020,01E,01C,01A,018,2,010,1,01E,01C,01A,

028,016,2,01C,060,14,8,(-4,-3),0

*00034,19,n4

2,14,8,(-2,-6),041,1,048,8,(3,4),06C,2,030,14,8,(-4,-3),0

*00035,23,n5

2,14,8,(-2,-6),014,1,01E,020,012,024,016,038,024,040,2,020,06C,

14,8,(-4,-3),0

*00036,24,n6

2,14,8,(-2,-6),034,1,030,01E,01C,01A,028,016,034,022,010,2,030,

06C,14,8,(-4,-3),0

*00037,16,n7

2,14,8,(-2,-6),064,1,040,06B,2,050,14,8,(-4,-3),0

*00038,32,n8

2,14,8,(-2,-6),010,1,016,014,012,020,012,014,016,028,01A,01C,01E,

152 | Chapter 8 Shapes and Shape Fonts

Page 159: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,020,1,01E,01C,01A,028,2,050,14,8,(-4,-3),0

*00039,24,n9

2,14,8,(-2,-6),010,1,010,022,034,016,028,01A,01C,01E,030,2,020,

03C,14,8,(-4,-3),0

*0003A,17,kcol

2,14,04C,044,1,01C,2,01C,1,01C,2,02F,14,8,(-2,-3),0

*0003B,34,ksmc

2,14,3,2,14,8,(-1,-8),14,4,2,010,044,1,01C,2,01C,1,02C,01A,2,012,

020,14,3,2,14,8,(-5,-8),14,4,2,0

*0003C,29,klt

2,14,3,2,14,8,(-3,-12),14,4,2,064,030,1,03A,03E,2,020,14,3,2,

14,8,(-5,-6),14,4,2,0

*0003D,18,keq

2,14,04B,044,1,040,2,02C,1,048,2,060,02C,14,8,(-4,-1),0

*0003E,28,kgt

2,14,3,2,14,8,(-3,-12),14,4,2,064,1,03E,03A,2,050,14,3,2,

14,8,(-7,-6),14,4,2,0

*0003F,36,kqm

2,14,3,2,14,8,(-3,-12),14,4,2,054,1,012,010,01E,01C,01A,01C,2,

01C,1,01C,2,030,14,3,2,14,8,(-7,-6),14,4,2,0

*00040,28,kea

2,14,8,(-2,-6),032,1,01A,018,014,012,010,02C,012,024,016,028,01A,

04C,01E,030,2,020,14,8,(-4,-3),0

*00041,21,uca

2,14,8,(-2,-6),1,024,043,04D,02C,2,047,1,040,2,02E,14,8,(-4,-3),0

*00042,29,ucb

2,14,8,(-2,-6),1,030,012,014,016,028,2,020,1,012,014,016,038,2,

010,1,06C,2,050,14,8,(-4,-3),0

*00043,23,ucc

2,14,8,(-2,-6),040,014,1,01A,028,016,044,012,020,01E,2,02E,03C,

14,8,(-4,-3),0

*00044,22,ucd

2,14,8,(-2,-6),1,030,012,044,016,038,2,010,1,06C,2,050,

14,8,(-4,-3),0

*00045,25,uce

2,14,8,(-2,-6),1,064,040,2,048,03C,1,020,2,028,03C,1,040,2,020,

14,8,(-4,-3),0

*00046,21,ucf

2,14,8,(-2,-6),1,064,040,2,048,03C,1,020,2,03C,040,14,8,(-4,-3),0

*00047,22,ucg

2,14,8,(-2,-6),032,1,010,03C,038,016,044,012,030,2,020,06C,

Sample Files | 153

Page 160: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

14,8,(-4,-3),0

*00048,22,uch

2,14,8,(-2,-6),1,064,2,03C,1,040,2,034,1,06C,2,020,14,8,(-4,-3),0

*00049,21,uci

2,14,8,(-1,-6),064,1,020,2,018,1,06C,2,018,1,020,2,020,14,03A,0

*0004A,19,ucj

2,14,8,(-2,-6),014,1,01E,020,012,054,2,020,06C,14,8,(-4,-3),0

*0004B,23,uck

2,14,8,(-2,-6),1,064,2,040,1,03A,018,2,010,1,03E,2,020,

14,8,(-4,-3),0

*0004C,16,ucl

2,14,8,(-2,-6),064,1,06C,040,2,020,14,8,(-4,-3),0

*0004D,17,ucm

2,14,8,(-2,-6),1,064,04D,043,06C,2,020,14,8,(-4,-3),0

*0004E,19,ucn

2,14,8,(-2,-6),1,064,8,(4,-6),064,2,06C,020,14,8,(-4,-3),0

*0004F,17,uco

2,14,8,(-2,-6),1,064,040,06C,048,2,060,14,8,(-4,-3),0

*00050,19,ucp

2,14,8,(-2,-6),1,064,030,01E,01C,01A,038,2,06F,14,8,(-4,-3),0

*00051,25,ucq

2,14,8,(-2,-6),022,1,01E,01A,018,016,044,012,020,01E,03C,01A,01E,

2,020,14,8,(-4,-3),0

*00052,23,ucr

2,14,8,(-2,-6),1,064,030,01E,01C,01A,038,2,010,1,03E,2,020,

14,8,(-4,-3),0

*00053,22,ucs

2,14,8,(-2,-6),014,1,01E,020,012,046,012,020,01E,2,020,05C,

14,8,(-4,-3),0

*00054,19,uct

2,14,8,(-2,-6),064,1,040,2,028,1,06C,2,040,14,8,(-4,-3),0

*00055,20,ucu

2,14,8,(-2,-6),064,1,05C,01E,020,012,054,2,020,06C,14,8,(-4,-3),0

*00056,15,ucv

2,14,06B,064,1,06D,063,2,020,06C,14,8,(-5,-3),0

*00057,24,ucw

2,14,06B,064,1,9,(2,-6),(1,3),(1,-3),(2,6),(0,0),2,020,06C,

14,8,(-5,-3),0

*00058,22,ucx

2,14,8,(-2,-6),1,8,(4,6),2,048,1,8,(4,-6),2,020,14,8,(-4,-3),0

*00059,25,ucy

154 | Chapter 8 Shapes and Shape Fonts

Page 161: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,14,8,(-2,-6),064,1,8,(2,-3),03C,2,034,1,8,(2,3),2,020,06C,

14,8,(-4,-3),0

*0005A,19,ucz

2,14,8,(-2,-6),064,1,040,8,(-4,-6),040,2,020,14,8,(-4,-3),0

*0005B,17,klb

2,14,8,(-1,-6),1,064,020,2,06C,1,028,2,040,14,03A,0

*0005C,17,kbkslsh

2,14,8,(-2,-6),064,1,8,(4,-6),2,020,14,8,(-4,-3),0

*0005D,15,krb

2,14,8,(-1,-6),064,1,020,06C,028,2,040,14,03A,0

*0005E,16,kcaret

2,14,8,(-2,-6),044,1,022,02E,2,04D,14,8,(-4,1),0

*0005F,11,kundrl

2,14,028,01C,1,040,2,021,14,04A,0

*00060,27,krvap

2,14,3,2,14,8,(-1,-12),14,4,2,064,1,02D,2,04D,14,3,2,14,8,(-5,2),

14,4,2,0

*00061,24,lca

2,14,04B,020,1,018,016,024,012,010,01E,02C,01A,2,012,1,01E,2,020,

14,8,(-4,-3),0

*00062,25,lcb

2,14,8,(-2,-6),1,064,2,04C,1,022,010,01E,02C,01A,018,026,2,02C,

060,14,8,(-4,-3),0

*00063,17,lcc

2,14,04B,042,1,038,01A,02C,01E,030,2,020,14,8,(-4,-3),0

*00064,25,lcd

2,14,8,(-2,-6),041,1,02A,018,016,024,012,010,02E,2,044,1,06C,2,

020,14,8,(-4,-3),0

*00065,20,lce

2,14,04B,024,1,030,012,016,028,01A,02C,01E,020,2,030,

14,8,(-4,-3),0

*00066,22,lcf

2,14,8,(-2,-6),034,1,030,2,023,1,016,018,01A,05C,2,050,

14,8,(-4,-3),0

*00067,22,lcg

2,14,04B,01C,1,01E,020,012,044,016,028,01A,02C,01E,030,2,020,

14,8,(-4,-5),0

*00068,21,lch

2,14,8,(-2,-6),1,064,2,04C,1,022,010,01E,03C,2,020,14,8,(-4,-3),0

*00069,17,lci

2,14,06C,1,044,2,014,1,014,2,020,06C,14,8,(-2,-3),0

*0006A,35,lcj

Sample Files | 155

Page 162: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,14,3,2,14,8,(-3,-12),14,4,2,01C,1,01E,010,012,054,2,014,1,014,

2,020,06C,14,3,2,14,8,(-7,-10),14,4,2,0

*0006B,23,lck

2,14,8,(-2,-6),1,064,2,04C,1,020,022,2,02A,1,02E,2,020,

14,8,(-4,-3),0

*0006C,28,lcl

2,14,3,2,14,8,(-1,-12),14,4,2,064,1,05C,01E,2,020,14,3,2,

14,8,(-5,-6),14,4,2,0

*0006D,24,lcm

2,14,04B,1,044,2,01C,1,012,01E,01C,2,014,1,012,01E,03C,2,020,

14,8,(-4,-3),0

*0006E,21,lcn

2,14,8,(-2,-6),1,044,2,02C,1,022,010,01E,03C,2,020,14,8,(-4,-3),0

*0006F,20,lco

2,14,04B,030,1,028,016,024,012,020,01E,02C,01A,2,030,

14,8,(-4,-3),0

*00070,22,lcp

2,14,04B,02C,1,064,2,01C,1,012,020,01E,02C,01A,038,2,060,

14,8,(-4,-5),0,

*00071,22,lcq

2,14,04B,04F,1,064,2,01C,1,016,028,01A,02C,01E,030,2,020,

14,8,(-4,-5),0,

*00072,19,lcr

2,14,04B,1,044,2,02C,1,022,010,01E,2,020,03C,14,8,(-4,-3),0

*00073,18,lcs

2,14,04B,1,030,012,016,028,016,012,030,2,04D,14,8,(-4,-3),0

*00074,21,lct

2,14,8,(-2,-6),044,1,040,2,026,1,05C,01E,012,2,02F,14,8,(-4,-3),0

*00075,20,lcu

2,14,04B,044,1,03C,01E,010,022,2,024,1,04C,2,020,14,8,(-4,-3),0

*00076,14,lcv

2,14,04B,044,1,04D,043,2,04D,14,8,(-4,-3),0

*00077,23,lcw

2,14,04B,044,1,9,(1,-4),(1,4),(1,-4),(1,4),(0,0),2,04D,

14,8,(-4,-3),0

*00078,16,lcx

2,14,04B,1,042,2,048,1,04E,2,020,14,8,(-4,-3),0

*00079,19,lcy

2,14,04B,044,1,04D,2,043,1,06B,018,2,024,060,14,8,(-4,-5),0

*0007A,15,lcz

2,14,04B,044,1,040,04A,040,2,020,14,8,(-4,-3),0

156 | Chapter 8 Shapes and Shape Fonts

Page 163: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

*0007B,19,klbr

2,14,8,(-1,-6),064,020,1,01A,01C,01A,01E,01C,01E,2,020,14,03A,0

*0007C,13,kvbar

2,14,06C,1,064,2,06C,020,14,8,(-2,-3),0

*0007D,18,krbr

2,14,8,(-1,-6),1,012,014,012,016,014,016,2,06C,040,14,03A,0

*0007E,15,ktlde

2,14,04B,034,1,012,02F,012,2,04D,14,8,(-4,-2),0

*00080,4,keuroRef

7,020AC,0

*000A0,7,NoBrkSpc

2,060,14,8,(-6,-8),0

*000A1,18,kiexc

2,14,06C,1,044,2,014,1,014,2,8,(2,-6),14,8,(-2,-3),0

*000A2,23,kcent

2,14,8,(-2,-5),01E,1,8,(2,6),2,01E,1,038,01A,02C,01E,030,2,020,

14,04A,0,

*000A3,23,kpound

2,14,8,(-2,-6),040,1,048,012,044,012,01E,2,02B,1,028,2,06F,

14,8,(-4,-3),0

*000A5,34,kyen

2,14,8,(-2,-6),064,1,8,(2,-3),03C,2,025,1,020,2,027,1,020,2,018,

1,8,(2,3),2,8,(2,-6),14,8,(-4,-3),0

*000A7,45,kpar

2,14,3,2,14,8,(-3,-12),14,4,2,014,1,01E,010,012,016,018,016,012,

2,021,1,016,018,01A,01E,010,01E,01A,2,8,(3,-2),14,3,2,

14,8,(-7,-6),14,4,2,0

*000AA,36,lcau

2,14,8,(-1,-6),2,3,2,8,3,9,1,01A,018,016,024,012,010,01E,02C,01E,

2,049,1,040,2,4,2,8,2,-3,14,8,(-3,1),0

*000AB,21,kfrew

2,14,8,(-2,-5),021,1,026,022,2,020,1,02A,02E,2,02F,14,8,(-4,-2),0

*000B0,19,kdeg

2,14,8,(-1,-6),054,1,012,01E,01A,016,2,05C,040,14,8,(-3,2),0

*000B1,23,kpls-min

2,14,8,(-2,-6),014,1,040,2,027,1,044,2,02A,1,040,2,04D,

14,8,(-4,-2),0

*000B5,24,kmicro

2,14,04B,02C,1,8,(1,6),1,03C,01E,010,023,2,024,1,04C,2,020,

14,8,(-4,-5),0

*000BA,35,lcou

2,14,8,(-1,-6),3,2,2,8,3,12,1,028,01A,02C,01E,020,012,024,016,2,

Sample Files | 157

Page 164: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

06B,1,040,2,4,2,8,2,-3,14,8,(-3,1),0

*000BB,22,kffrw

2,14,8,(-2,-5),014,1,022,026,2,020,1,02E,02A,2,040,01C,

14,8,(-4,-2),0

*000BC,41,kquart

2,3,2,14,8,(-5,-12),1,8,(10,12),2,8,(-8,-6),1,064,01A,2,05C,1,

020,2,8,(6,-4),1,048,8,(3,4),06C,2,060,14,8,(-9,-6),4,2,0

*000BD,45,khalf

2,3,2,14,8,(-5,-12),1,8,(10,12),2,8,(-8,-6),1,064,01A,2,05C,1,

020,2,8,(3,-1),1,012,020,01E,01C,01A,028,01A,02C,040,2,040,

14,8,(-9,-6),4,2,0

*000BF,32,kiqm

2,3,2,14,8,(-3,-12),8,(6,2),1,02A,028,026,024,022,024,2,024,1,

024,2,8,(8,-12),14,8,(-7,-6),4,2,0

*000C0,31,uc^

2,14,8,(-2,-6),1,024,022,02E,02C,2,8,(-4,1),1,040,2,8,(-2,4),1,

027,2,8,(6,-6),14,8,(-4,-3),0

*000C1,31,uc^

2,14,8,(-2,-6),1,024,022,02E,02C,2,8,(-4,1),1,040,2,8,(-2,4),1,

021,2,8,(2,-6),14,8,(-4,-3),0

*000C2,32,uc^

2,14,8,(-2,-6),1,024,022,02E,02C,2,8,(-4,1),1,040,2,8,(-4,3),1,

022,02E,2,8,(2,-4),14,8,(-4,-3),0

*000C3,33,uc^

2,14,8,(-2,-6),1,024,022,02E,02C,2,8,(-4,1),1,040,2,8,(-4,4),1,

012,02F,012,2,8,(2,-6),14,8,(-4,-3),0

*000C4,32,uc„

2,14,8,(-2,-6),1,024,043,2,029,1,014,2,040,1,01C,2,027,1,04D,02C,

2,047,1,040,2,02E,14,8,(-4,-3),0

*000C5,25,uc^

2,14,8,(-2,-6),1,024,032,016,01A,03E,02C,2,8,(-4,1),1,040,2,02F,

14,8,(-4,-3),0

*000C6,33,uc^

2,14,8,(-2,-6),1,034,8,(2,3),020,2,8,(-2,-3),1,020,2,03C,1,028,

064,2,04B,1,020,2,04F,14,8,(-4,-3),0

*000C7,29,uc‡

2,14,8,(-2,-6),02E,1,010,014,018,014,2,021,1,01A,028,016,044,012,

020,01E,2,02E,03C,14,8,(-4,-5),0

*000C8,28,uc^

2,14,8,(-2,-6),1,044,040,2,016,1,027,2,04C,018,1,020,2,02A,1,040,

2,020,14,8,(-4,-3),0

*000C9,28,uc^

2,14,8,(-2,-6),1,044,040,2,025,1,029,2,03C,018,1,020,2,02A,1,040,

158 | Chapter 8 Shapes and Shape Fonts

Page 165: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,020,14,8,(-4,-3),0

*000CA,29,uc^

2,14,8,(-2,-6),1,044,040,2,016,1,016,01A,2,03C,018,1,020,2,02A,1,

040,2,020,14,8,(-4,-3),0

*000CB,32,uc^

2,14,8,(-2,-6),1,044,040,2,016,1,014,2,028,1,01C,2,03C,018,1,020,

2,02A,1,040,2,020,14,8,(-4,-3),0

*000CC,25,uc^

2,14,8,(-1,-6),044,1,020,2,014,1,027,2,02D,1,04C,2,018,1,020,2,

020,14,03A,0

*000CD,25,uc^

2,14,8,(-1,-6),044,1,020,2,024,1,029,2,01E,1,04C,2,018,1,020,2,

020,14,03A,0

*000CE,26,uc^

2,14,8,(-1,-6),044,1,020,2,014,1,016,01A,2,01E,1,04C,2,018,1,020,

2,020,14,03A,0

*000CF,29,uc^

2,14,8,(-1,-6),044,1,020,2,014,1,014,2,028,1,01C,2,01E,1,04C,2,

018,1,020,2,020,14,03A,0

*000D0,25,uc

2,14,8,(-2,-6),1,064,030,01E,04C,01A,038,2,024,015,1,020,2,01D,

04F,14,8,(-4,-3),0

*000D1,25,uc

2,14,8,(-2,-6),1,044,04E,044,2,048,014,1,012,02F,012,2,8,(2,-6),

14,8,(-4,-3),0

*000D2,25,uc^

2,14,8,(-2,-6),1,044,040,2,016,1,027,2,02C,030,1,04C,048,2,060,

14,8,(-4,-3),0

*000D3,25,uc^

2,14,8,(-2,-6),1,044,040,2,025,1,029,2,01C,030,1,04C,048,2,060,

14,8,(-4,-3),0

*000D4,26,uc^

2,14,8,(-2,-6),1,044,040,2,016,1,016,01A,2,01C,030,1,04C,048,2,

060,14,8,(-4,-3),0

*000D5,27,uc^

2,14,8,(-2,-6),1,044,040,2,024,1,01A,027,01A,2,01C,040,1,04C,048,

2,060,14,8,(-4,-3),0

*000D6,31,uc^

2,14,8,(-2,-6),1,044,2,012,1,014,2,02B,1,040,2,016,1,014,2,02D,1,

04C,048,2,060,14,8,(-4,-3),0

*000D8,29,ucd”

Sample Files | 159

Page 166: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,14,8,(-2,-6),1,8,(4,6),2,018,1,01E,04C,01A,028,016,044,012,020,

2,8,(3,-6),14,8,(-4,-3),0

*000D9,24,uc^

2,14,8,(-2,-6),064,1,05C,01E,020,012,054,2,01A,1,027,2,050,06C,

14,8,(-4,-3),0

*000DA,24,uc^

2,14,8,(-2,-6),064,1,05C,01E,020,012,054,2,018,1,029,2,050,05C,

14,8,(-4,-3),0

*000DB,25,uc^

2,14,8,(-2,-6),064,1,05C,01E,020,012,054,2,01A,1,016,01A,2,050,

05C,14,8,(-4,-3),0

*000DC,27,uc^

2,14,8,(-2,-6),064,1,05C,01E,020,012,054,2,01A,1,014,2,028,1,01C,

2,05E,14,8,(-4,-3),0

*000DD,25,uc^

2,14,8,(-2,-6),044,1,02E,02C,2,024,1,022,2,025,1,029,2,050,05C,

14,8,(-4,-3),0

*000DE,27,lc

2,14,8,(-2,-6),02C,1,084,2,03C,1,012,020,01E,02C,01A,028,016,2,

8,(6,-1),14,8,(-4,-5),0

*000DF,24,kgers

2,14,8,(-2,-6),1,012,044,012,010,01E,01C,01A,01E,01C,01A,018,2,

040,14,8,(-4,-3),0

*000E0,39,lc…

2,14,8,(-2,-6),020,1,018,016,024,012,010,01E,02C,01A,2,012,1,01E,

2,2,3,2,8,(-3,10),1,047,2,8,(11,-12),4,2,14,8,(-4,-3),0

*000E1,39,lc

2,14,8,(-2,-6),020,1,018,016,024,012,010,01E,02C,01A,2,012,1,01E,

2,2,3,2,8,(-3,12),1,049,2,8,(11,-10),4,2,14,8,(-4,-3),0

*000E2,40,lcƒ

2,14,8,(-2,-6),020,1,018,016,024,012,010,01E,02C,01A,2,012,1,01E,

2,2,3,2,8,(-3,10),1,026,02A,2,8,(11,-10),4,2,14,8,(-4,-3),0

*000E3,40,lcƒ

2,14,8,(-2,-6),020,1,018,016,024,012,010,01E,02C,01A,2,012,1,01E,

2,3,2,8,(-7,10),1,012,02F,012,2,8,(7,-11),4,2,14,8,(-4,-3),0

*000E4,37,lc„

2,14,8,(-2,-6),020,1,018,016,024,2,034,1,01C,2,030,1,014,2,03A,1,

012,010,01E,02C,01A,2,012,1,01E,2,020,14,8,(-4,-3),0

*000E5,38,lc†

2,14,8,(-2,-6),3,2,8,(3,8),1,022,026,02A,02E,2,8,(3,-6),4,2,1,

01A,018,016,024,012,010,01E,02C,01E,2,020,14,8,(-4,-3),0

*000E6,30,lc

160 | Chapter 8 Shapes and Shape Fonts

Page 167: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,14,04B,021,1,01A,016,024,012,01E,03C,2,034,1,012,01E,01C,028,2,

01C,1,01E,010,2,020,14,8,(-4,-3),0

*000E7,24,lc‡

2,14,04B,042,1,038,01A,02C,01E,030,2,028,1,01C,010,01C,018,2,041,

14,8,(-4,-5),0

*000E8,27,lcŠ

2,14,8,(-2,-6),024,1,030,012,016,028,01A,02C,01E,020,2,054,1,027,

2,050,06C,14,8,(-4,-3),0

*000E9,26,lc‚

2,14,8,(-2,-6),024,1,030,012,016,028,01A,02C,01E,020,2,064,1,029,

2,05E,14,8,(-4,-3),0

*000EA,27,lcˆ

2,14,8,(-2,-6),024,1,030,012,016,028,01A,02C,01E,020,2,054,1,016,

01A,2,05E,14,8,(-4,-3),0

*000EB,31,lc‰

2,14,8,(-2,-6),024,1,030,012,016,028,01A,02C,01E,020,2,064,010,1,

01C,2,048,1,014,2,06E,14,8,(-4,-3),0

*000EC,18,lc_

2,14,8,(-1,-6),010,1,044,2,025,1,02F,2,020,05C,14,03A,0

*000ED,18,lc

2,14,8,(-1,-6),010,1,044,2,016,1,021,2,020,06C,14,03A,0

*000EE,19,lcŒ

2,14,8,(-1,-6),010,1,044,2,016,1,012,01E,2,020,05C,14,03A,0

*000EF,22,lc‹

2,14,8,(-1,-6),010,1,044,2,016,1,014,2,020,1,01C,2,020,05C,

14,03A,0

*000F0,30,lc

2,14,8,(-2,-6),8,(3,4),1,028,01A,02C,01E,020,012,024,036,2,01C,1,

021,2,8,(3,-6),14,8,(-4,-3),0

*000F1,27,lc

2,14,8,(-2,-6),1,044,2,014,1,012,02F,012,2,04A,1,022,010,01E,03C,

2,020,14,8,(-4,-3),0

*000F2,27,lc•

2,14,8,(-2,-6),030,1,028,016,024,012,020,01E,02C,01A,2,054,1,027,

2,050,06C,14,8,(-4,-3),0

*000F3,26,lc

2,14,8,(-2,-6),030,1,028,016,024,012,020,01E,02C,01A,2,064,1,029,

2,05E,14,8,(-4,-3),0

*000F4,27,lc“

2,14,8,(-2,-6),030,1,028,016,024,012,020,01E,02C,01A,2,054,1,016,

01A,2,05E,14,8,(-4,-3),0

Sample Files | 161

Page 168: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

*000F5,32,lc^

2,14,8,(-2,-6),030,1,028,016,024,012,020,01E,02C,01A,2,8,(-3,5),

1,012,02F,012,2,8,(2,-6),14,8,(-4,-3),0

*000F6,35,lc”

2,14,8,(-2,-6),030,1,028,016,024,2,034,1,01C,2,040,1,014,2,

8,(-4,-3),1,012,020,01E,02C,01A,2,030,14,8,(-4,-3),0

*000F7,23,kto

2,14,8,(-2,-5),021,1,014,2,021,1,048,2,022,1,01C,2,04E,

14,8,(-4,-2),0

*000F8,24,lcd”

2,14,04B,010,1,020,012,024,016,028,01A,02C,01E,2,018,1,042,2,04D,

14,8,(-4,-3),0

*000F9,27,lc—

2,14,8,(-2,-6),044,1,03C,01E,010,022,2,038,044,1,02F,2,01E,1,04C,

2,020,14,8,(-4,-3),0

*000FA,26,lc

2,14,8,(-2,-6),044,1,03C,01E,010,022,2,036,1,021,2,02D,1,04C,2,

020,14,8,(-4,-3),0

*000FB,27,lc-

2,14,8,(-2,-6),044,1,03C,01E,010,022,2,036,1,012,01E,2,01E,1,04C,

2,020,14,8,(-4,-3),0

*000FC,32,lc_

2,14,8,(-2,-6),064,010,1,01C,2,01A,1,03C,01E,010,022,2,044,018,1,

01C,2,01E,1,04C,2,020,14,8,(-4,-3),0

*000FD,27,lc^

2,14,8,(-2,-6),044,1,04D,2,8,(-1,5),1,021,2,02D,1,06B,018,2,024,

060,14,8,(-4,-3),0

*000FE,25,uc

2,14,8,(-2,-6),1,064,2,01E,019,1,030,01E,01C,01A,038,2,01F,01C,

050,14,8,(-4,-3),0

*000FF,30,lc˜

2,14,8,(-2,-6),044,1,04D,2,054,018,1,014,2,020,1,01C,2,01E,1,06B,

018,2,024,060,14,8,(-4,-5),0

*00104,26,c164

2,14,8,(-2,-6),1,024,043,04D,02C,2,047,1,040,2,02C,1,01A,01E,2,

022,14,8,(-4,-3),0

*00105,30,c165

2,14,04B,020,1,018,016,024,012,010,01E,02C,01A,2,012,1,01E,3,2,

01A,01E,4,2,2,021,14,8,(-4,-3),0

*00106,28,c143

2,14,8,(-2,-6),040,014,1,01A,028,016,044,012,020,01E,2,038,024,1,

021,2,08C,030,14,8,(-4,-3),0

*00107,30,c134

162 | Chapter 8 Shapes and Shape Fonts

Page 169: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,14,04B,042,1,038,01A,02C,01E,030,2,3,2,8,(-5,10),1,021,2,029,

8,(9,-10),4,2,14,8,(-4,-3),0

*0010C,31,c172

2,14,8,(-2,-8),040,014,1,01A,028,016,044,012,020,01E,2,026,1,012,

2,01A,1,016,2,050,08C,14,8,(-4,-3),0

*0010D,29,c159

2,14,8,(-2,-6),042,1,038,01A,02C,01E,030,2,028,054,1,012,2,01A,1,

016,2,050,06C,14,8,(-4,-3),0

*0010E,32,c210

2,14,8,(-2,-8),1,030,012,044,016,038,2,010,1,06C,2,010,074,1,012,

2,01A,1,016,2,050,08C,14,8,(-4,-3),0

*0010F,31,c212

2,14,8,(-2,-6),041,1,02A,018,016,024,012,010,02E,2,044,1,06C,2,

020,064,1,01A,2,010,05C,14,8,(-4,-3),0

*00118,28,c168

2,14,8,(-2,-6),1,064,040,2,048,03C,1,020,2,028,03C,1,040,1,01A,

01E,2,022,14,8,(-4,-3),0

*00119,27,c169

2,14,04B,024,1,030,012,016,028,01A,02C,01E,020,3,2,01A,01E,4,2,2,

014,030,14,8,(-4,-3),0

*0011A,35,c183

2,14,8,(-2,-8),1,064,040,2,048,03C,1,020,2,028,03C,1,040,2,028,

074,1,012,2,01A,1,016,2,050,08C,14,8,(-4,-3),0

*0011B,32,c216

2,14,8,(-2,-6),024,1,030,012,016,028,01A,02C,01E,020,2,018,054,1,

012,2,01A,1,016,2,050,06C,14,8,(-4,-3),0

*00141,29,c157

2,14,8,(-2,-6),064,1,06C,040,2,048,034,1,3,2,8,(4,5),2,8,(8,-11),

4,2,14,8,(-4,-3),0

*00142,47,c136

2,14,3,2,14,8,(-1,-12),14,4,2,064,3,2,010,4,2,1,05C,01E,2,3,2,

8,(-3,5),1,8,(3,4),2,8,(4,-9),4,2,14,3,2,14,8,(-5,-6),14,4,2,0

*00143,24,c227

2,14,8,(-2,-6),1,064,8,(4,-6),064,2,038,014,1,021,2,08C,030,

14,8,(-4,-3),0

*00144,42,c228

2,14,3,2,14,8,(-3,-8),14,4,2,1,044,2,01C,1,012,010,01E,03C,2,

8,(-2,5),1,011,2,019,8,(4,-5),14,3,2,14,8,(-7,-6),14,4,2,0

*00147,27,c213

2,14,8,(-2,-8),1,064,8,(4,-6),064,2,027,1,012,2,01A,1,016,2,050,

08C,14,8,(-4,-3),0

*00148,29,c229

2,14,8,(-2,-6),1,044,2,01C,1,012,010,01E,03C,2,018,054,1,012,2,

Sample Files | 163

Page 170: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

01A,1,016,2,040,06C,14,03A,0

*00150,27,c138

2,14,8,(-2,-6),1,064,040,06C,048,2,074,010,1,03C,2,020,1,034,2,

07C,030,14,8,(-4,-3),0

*00151,29,c139

2,14,04B,030,1,028,016,024,012,020,01E,02C,01A,2,074,1,02C,2,028,

1,024,2,07C,050,14,8,(-4,-3),0

*00158,33,c252

2,14,8,(-2,-8),1,064,030,01E,01C,01A,038,2,010,1,03E,2,028,074,1,

012,2,01A,1,016,2,050,08C,14,8,(-4,-3),0

*00159,29,c253

2,14,8,(-2,-6),1,044,2,02C,1,022,010,01E,2,026,1,012,2,01A,1,016,

2,050,06C,14,8,(-4,-3),0

*0015A,27,c151

2,14,8,(-2,-6),014,1,01E,020,012,046,012,020,01E,2,024,038,1,021,

2,08C,030,14,8,(-4,-3),0

*0015B,31,c152

2,14,04B,1,030,012,016,028,016,012,030,2,3,2,8,(-5,2),1,021,2,

029,8,(9,-10),4,2,14,8,(-4,-3),0

*00160,30,c230

2,14,8,(-2,-8),014,1,01E,020,012,046,012,020,01E,2,026,1,012,2,

01A,1,016,2,050,08C,14,8,(-4,-3),0

*00161,29,c231

2,14,8,(-2,-6),1,030,012,016,028,016,012,030,2,027,1,012,2,01A,1,

016,2,050,06C,14,8,(-4,-3),0

*00164,28,c155

2,14,8,(-2,-8),064,1,040,2,028,1,06C,2,074,1,012,2,01A,1,016,2,

050,08C,14,8,(-4,-3),0

*00165,26,c156

2,14,8,(-2,-6),044,1,040,2,026,1,05C,01E,012,2,054,1,01A,2,030,

05C,14,8,(-4,-3),0

*0016E,27,c222

2,14,8,(-2,-9),064,1,05C,01E,020,012,054,2,027,1,012,016,01A,01E,

2,040,07C,14,8,(-4,-3),0

*0016F,31,c133

2,14,8,(-2,-7),044,1,03C,01E,010,022,2,024,1,04C,2,028,054,1,012,

016,01A,01E,2,040,05C,14,8,(-4,-3),0

*00170,28,c235

2,14,8,(-2,-6),064,1,05C,01E,020,012,054,2,016,1,03C,2,028,1,034,

2,07C,050,14,8,(-4,-3),0

*00171,30,uue

164 | Chapter 8 Shapes and Shape Fonts

Page 171: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

2,14,04B,044,1,03C,01E,010,022,2,024,1,04C,2,074,018,1,02C,2,028,

1,024,2,07C,050,14,8,(-4,-3),0

*00179,25,c141

2,14,8,(-2,-6),064,1,040,8,(-4,-6),040,2,038,074,1,021,2,08C,030,

14,8,(-4,-3),0

*0017A,28,c171

2,14,04B,044,1,040,04A,040,2,3,2,8,(-5,10),1,021,2,029,8,(9,-10),

4,2,14,8,(-4,-3),0

*0017B,32,c189

2,14,8,(-2,-6),064,1,040,8,(-4,-6),040,2,084,028,1,3,4,01A,01E,

012,016,4,4,2,040,08C,14,8,(-4,-3),0

*0017C,34,c190

2,14,04B,044,1,040,04A,040,2,3,2,8,(-4,11),3,4,1,01A,01E,012,016,

4,4,2,8,(8,-11),4,2,14,8,(-4,-3),0

*0017D,29,c166

2,14,8,(-2,-8),064,1,040,8,(-4,-6),040,2,028,074,1,012,2,01A,1,

016,2,050,08C,14,8,(-4,-3),0

*0017E,27,c167

2,14,8,(-2,-6),044,1,040,04A,040,2,028,054,1,012,2,01A,1,016,2,

050,06C,14,8,(-4,-3),0

*00410,21,ucra

2,14,8,(-2,-6),1,024,043,04D,02C,2,047,1,040,2,02E,14,8,(-4,-3),0

*00411,24,ucrb

2,14,8,(-2,-6),1,064,030,01C,014,038,03C,030,01E,01C,01A,038,2,

060,14,8,(-4,-3),0

*00412,29,ucrv

2,14,8,(-2,-6),1,030,012,014,016,028,2,020,1,012,014,016,038,2,

010,1,06C,2,050,14,8,(-4,-3),0

*00413,17,ucrg

2,14,8,(-2,-6),1,064,040,01C,2,05C,020,14,8,(-4,-3),0

*00414,23,ucrd

2,14,8,(-2,-6),01C,1,014,050,064,028,04B,02C,050,01C,2,014,020,

14,8,(-6,-3),0

*00415,25,ucre

2,14,8,(-2,-6),1,064,040,2,048,03C,1,020,2,028,03C,1,040,2,020,

14,8,(-4,-3),0

*00416,22,ucr!

2,14,8,(-2,-6),062,2,038,1,06C,2,038,064,1,06E,2,020,

14,8,(-6,-3),0

*00417,27,ucr!

2,14,8,(-2,-6),014,1,01E,020,012,014,016,018,010,012,014,016,028,

01A,2,060,05C,14,8,(-4,-3),0

Sample Files | 165

Page 172: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

*00418,20,ucri

2,14,8,(-2,-6),1,042,04C,064,2,048,1,06C,2,060,14,8,(-4,-3),0

*00419,24,ucrikr

2,14,8,(-2,-6),1,042,04C,064,2,018,1,028,2,018,1,06C,2,060,

14,8,(-4,-3),0

*0041A,23,ucrk

2,14,8,(-2,-6),1,064,2,040,1,03A,018,2,010,1,03E,2,020,

14,8,(-4,-3),0

*0041B,17,ukrl

2,14,8,(-2,-6),1,010,063,010,06C,2,020,14,8,(-5,-3),0

*0041C,17,ucrm

2,14,8,(-2,-6),1,064,04D,043,06C,2,020,14,8,(-4,-3),0

*0041D,22,ucrn

2,14,8,(-2,-6),1,064,2,03C,1,040,2,034,1,06C,2,020,14,8,(-4,-3),0

*0041E,23,ucro

2,14,8,(-2,-6),014,1,044,012,020,01E,04C,01A,028,016,2,060,01C,

14,8,(-4,-3),0

*0041F,16,ucrp

2,14,8,(-2,-6),1,064,040,06C,2,020,14,8,(-4,-3),0

*00420,19,ucrr

2,14,8,(-2,-6),1,064,030,01E,01C,01A,038,2,06F,14,8,(-4,-3),0

*00421,23,ucrs

2,14,8,(-2,-6),040,014,1,01A,028,016,044,012,020,01E,2,02E,03C,

14,8,(-4,-3),0

*00422,19,ucrt

2,14,8,(-2,-6),064,1,040,2,028,1,06C,2,040,14,8,(-4,-3),0

*00423,23,ucru

2,14,8,(-2,-6),014,1,01E,020,012,054,04C,038,016,034,2,060,06C,

14,8,(-4,-3),0

*00424,25,ucrf

2,14,8,(-2,-6),020,1,064,018,01A,02C,01E,020,012,024,016,018,2,

040,06C,14,8,(-4,-3),0

*00425,22,ucrx

2,14,8,(-2,-6),1,8,(4,6),2,048,1,8,(4,-6),2,020,14,8,(-4,-3),0

*00426,21,ucr!

2,14,8,(-2,-6),1,064,06C,040,064,06C,010,01C,2,014,020,

14,8,(-5,-3),0

*00427,19,ucrch

2,14,8,(-2,-6),064,1,03C,01E,030,044,06C,2,020,14,8,(-4,-3),0

*00428,21,ucrsh

2,14,8,(-2,-6),1,064,06C,030,044,04C,030,064,06C,2,020,

14,8,(-6,-3),0

166 | Chapter 8 Shapes and Shape Fonts

Page 173: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

*00429,24,ucr!

2,14,8,(-2,-6),1,064,06C,030,044,04C,030,064,06C,010,01C,014,2,

020,14,8,(-7,-3),0

*0042A,23,ucr'

2,14,8,(-2,-6),054,1,014,010,06C,030,012,014,016,038,2,060,03C,

14,8,(-5,-3),0

*0042B,24,ucrs

2,14,8,(-2,-6),1,030,012,014,016,038,03C,064,2,050,1,06C,2,020,

14,8,(-5,-3),0

*0042C,21,ucr]

2,14,8,(-2,-6),1,030,012,014,016,038,03C,064,2,060,06C,

14,8,(-4,-3),0

*0042D,25,ucr'

2,14,8,(-2,-6),014,1,01E,020,012,024,028,020,024,016,028,01A,2,

060,05C,14,8,(-4,-3),00,

*0042E,26,ucr!

2,14,8,(-2,-6),1,064,03C,010,024,012,010,01E,04C,01A,018,016,024,

2,050,03C,14,8,(-4,-3),0

*0042F,22,ucrya

2,14,8,(-2,-6),1,022,020,044,038,01A,02C,01E,030,02C,2,020,

14,8,(-4,-3),0

*00430,25,lcra

2,14,8,(-2,-6),014,1,024,012,020,01E,014,04C,014,01A,028,016,2,

060,01C,14,8,(-4,-3),0

*00431,22,lcrb

2,14,8,(-2,-6),044,030,1,038,04C,030,012,016,038,2,02C,060,

14,8,(-4,-3),0

*00432,24,lcrv

2,14,8,(-2,-6),1,044,020,10,(1,-36),028,030,10,(1,-36),038,2,060,

14,8,(-4,-3),0

*00433,16,lcrg

2,14,8,(-2,-6),1,044,030,2,04C,020,14,8,(-3,-3),0

*00434,24,lcrd

2,14,8,(-2,-6),01C,1,014,010,034,012,010,04C,028,030,01C,2,014,

020,14,8,(-4,-3),00,

*00435,20,lcre

2,14,04B,024,1,030,012,016,028,01A,02C,01E,020,2,030,

14,8,(-4,-3),0

*00436,23,lcrg

2,14,8,(-2,-6),1,042,2,048,1,04E,2,028,1,044,2,040,04C,

14,8,(-4,-3),0

*00437,25,lcrz

2,14,8,(-2,-6),034,1,012,020,01E,01A,018,010,01E,01A,028,016,2,

Sample Files | 167

Page 174: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

060,01C,14,8,(-4,-3),0

*00438,17,lcri

2,14,8,(-2,-6),044,1,04C,042,04C,2,020,14,8,(-4,-3),0

*00439,23,lcrii

2,14,8,(-2,-6),044,1,04C,042,04C,2,044,018,1,028,2,050,04C,

14,8,(-4,-3),0

*0043A,19,lcrk

2,14,8,(-2,-6),1,044,02C,020,022,02A,02E,2,020,14,8,(-4,-3),0

*0043B,16,lcrl

2,14,8,(-2,-6),1,043,020,04C,2,020,14,8,(-4,-3),0

*0043C,17,lcrm

2,14,8,(-2,-6),1,044,02E,022,04C,2,020,14,8,(-4,-3),0

*0043D,18,lcrn

2,14,8,(-2,-6),1,044,02C,040,024,04C,2,020,14,8,(-4,-3),0

*0043E,25,lcro

2,14,04B,14,8,(0,-2),014,1,024,012,020,01E,02C,01A,028,016,2,060,

01C,14,8,(-4,-3),0

*0043F,16,lcrp

2,14,8,(-2,-6),1,044,040,04C,2,020,14,8,(-4,-3),0

*00440,20,lcrr

2,14,8,(-2,-6),1,044,030,01E,01C,01A,038,2,060,01C,14,8,(-4,-3),0

*00441,23,lcrs

2,14,8,(-2,-6),040,014,1,01A,028,016,024,012,020,01E,2,020,03C,

14,8,(-4,-3),0

*00442,18,lcrt

2,14,8,(-2,-6),020,1,044,028,040,2,020,04C,14,8,(-4,-3),0

*00443,22,lcru

2,14,8,(-2,-6),014,1,01E,020,012,034,02C,028,026,2,060,04C,

14,8,(-4,-3),0

*00444,25,lcrf

2,14,8,(-2,-6),020,1,044,018,01A,01C,01E,020,012,014,016,018,2,

040,04C,14,8,(-4,-3),0

*00445,20,lcrh

2,14,04B,14,8,(0,-2),1,042,2,048,1,04E,2,020,14,8,(-4,-3),0

*00446,21,lcrc

2,14,8,(-2,-6),044,1,04C,030,044,04C,010,01C,2,014,020,

14,8,(-4,-3),0

*00447,18,lcrch

2,14,8,(-2,-6),044,1,03C,030,034,04C,2,020,14,8,(-3,-3),0

*00448,21,lcrsh

2,14,8,(-2,-6),1,044,04C,020,024,02C,020,044,2,04C,020,

14,8,(-4,-3),0

168 | Chapter 8 Shapes and Shape Fonts

Page 175: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

*00449,24,lcrshch

2,14,8,(-2,-6),1,044,04C,020,024,02C,020,044,04C,010,01C,2,014,

020,14,8,(-5,-3),0

*0044A,21,lcrtvznak

2,14,8,(-2,-6),044,1,010,04C,020,012,016,028,2,050,02C,

14,8,(-4,-3),0

*0044B,24,lcryyy

2,14,8,(-2,-6),1,044,02C,020,01E,01A,028,2,040,1,044,2,04C,020,

14,8,(-4,-3),0

*0044C,19,lcrmznak

2,14,8,(-2,-6),1,044,02C,020,01E,01A,028,2,050,14,8,(-3,-3),0

*0044D,25,lcreee

2,14,8,(-2,-6),014,1,01E,020,012,014,028,020,014,016,028,01A,2,

060,03C,14,8,(-4,-3),0

*0044E,26,lcryu

2,14,8,(-2,-6),1,044,02C,010,014,012,010,01E,02C,01A,018,016,014,

2,050,02C,14,8,(-4,-3),0

*0044F,22,lcrya

2,14,8,(-2,-6),1,022,018,016,012,030,02C,028,020,02C,2,020,

14,8,(-4,-3),0

*020A0,4,keuroRef2

7,0020AC,0

*020A7,32,kpes

2,14,06B,14,010,1,064,020,01E,01C,01A,028,2,8,(4,3),1,05C,01E,

012,2,025,1,028,2,03E,020,14,8,(-6,-3),0

*020AC,45,keuro

3,2,2,14,8,(-4,-

12),080,024,1,01C,01A,048,026,044,5,044,022,040,01E,01C

6,2,8,(-1,-1),5,1,050,6,2,024,1,060,2,8,(6,-7),14,8,(-8,-6),4,2,0

*02126,24,komega

2,14,8,(-2,-6),1,010,014,025,024,012,020,01E,02C,02B,01C,010,2,

020,14,8,(-4,-3),0

*02205,28,kdiam

2,14,8,(-2,-6),012,1,016,024,012,020,01E,02C,01A,028,2,01B,1,063,

2,010,03D,03C,14,8,(-4,-3),0

*0221E,18,kinfin

2,14,04B,034,1,01E,022,01E,01A,026,01A,2,06F,14,8,(-4,-1),0

*02264,20,kleq

2,14,8,(-2,-6),014,1,040,2,054,1,049,04F,2,02E,14,8,(-4,-2),0

*02302,16,ktri

2,14,04B,1,024,022,02E,02C,048,2,060,14,8,(-4,-3),0

Sample Files | 169

Page 176: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Big Font DescriptionsSome languages, such as Japanese, use text fonts with thousands of non-ASCIIcharacters. In order for drawings to contain such text, AutoCAD for Macsupports a special form of shape definition file called a Big Font file.

Define a Big FontSpecial codes in the first line of a Big Font file specify how to read two-bytehexidecimal codes.

A font with hundreds or thousands of characters must be handled differentlyfrom a font containing the ASCII set of up to 256 characters. In addition tousing more complicated techniques for searching the file, AutoCAD for Macneeds a way to represent characters with two-byte codes as well as one-bytecodes. Both situations are addressed by the use of special codes at the beginningof a Big Font file.

The first line of a Big Font shape definition file must be as follows:

*BIGFONT nchars,nranges,b1,e1,b2,e2,...

where nchars is the approximate number of character definitions in this set;if it is off by more than about 10 percent, either speed or file size suffers. Youcan use the rest of the line to name special character codes (escape codes) thatsignify the start of a two-byte code. For example, on Japanese computers, Kanjicharacters start with hexadecimal codes in the range 90-AF or E0-FF. Whenthe operating system sees one of these codes, it reads the next byte andcombines the two bytes into a code for one Kanji character. In the *BIGFONTline, nranges tells how many contiguous ranges of numbers are used as escapecodes; b1, e1, b2, e2, and so on, define the beginning and ending codes in

170 | Chapter 8 Shapes and Shape Fonts

Page 177: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

each range. Therefore, the header for a Japanese Big Font file might look likethis:

*BIGFONT 4000,2,090,0AF,0E0,0FF

After the *BIGFONT line, the font definition is just like a regular AutoCAD forMac text font, except that character codes (shape numbers) can have valuesup to 65535.

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Define an Extended Big Font FileTo reduce the size of composite Kanji characters, you can define an extendedBig Font file. Extended big fonts use the subshape code, followed immediatelyby a 0.

The first line of an extended Big Font file is the same as the regular Big Fontfile. This is the format for the remaining lines of the file:

*0,5,font-name

character-height, 0, modes, character-width,0

.

.

.

*shape-number,defbytes,shape-name

.

code,0,primitive#,basepoint-x,basepoint-y,width,height,

.

.

code,0,primitive#,basepoint-x,basepoint-y,width,height,

.

terminator

The following list describes the fields of a Big Font definition file:

Big Font Descriptions | 171

Page 178: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

character height Used along with character width to indicate the number ofunits that define the font characters.

character width Used along with character height to indicate the number ofunits that define the font characters. The character-height andcharacter-width values are used to scale the primitives of the font. In thiscontext, primitives are the points, lines, polygons, or character strings of thefont geometrically oriented in two-dimensional space. A Kanji characterconsists of several primitives used repeatedly in different scales andcombinations.

modes The modes byte should be 0 for a horizontally oriented font and 2 fora dual-orientation (horizontal or vertical) font. The special 00E (14) commandcode is honored only when modes is set to 2.

shape-number Character code.

defbytes Byte size. It is always 2 bytes, consisting of a hexadecimal or acombination of decimal and hexadecimal codes.

shape-name Character name.

code Shape description special code. It is always 7 so that it can use thesubshape feature.

primitive# Reference to the subshape number. It is always 2 bytes.

basepoint-x X origin of the primitive.

basepoint-y Y origin of the primitive.

width Scale of the width of the primitive.

height Scale of the height of the primitive.

terminator End-of-file indicator for the shape definition. It is always 0.

To arrive at the scale factor, AutoCAD for Mac scales down the primitive to asquare unit and then multiplies it by the height and width to get the shapeof the character. Character codes (shape numbers) in the Big Font shapedefinition file can have values up to 65535. The following table describes thefields of the extended Big Font file.

Fields of the extended Big Font file

DescriptionByte sizeValueVariable

Character code2 bytesxxxxshape-number

172 | Chapter 8 Shapes and Shape Fonts

Page 179: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Fields of the extended Big Font file

DescriptionByte sizeValueVariable

Extended font definition2 bytes7,0code

Refer to subshape number2 bytesxxxxprimitive#

Primitive X origin1 bytebasepoint-x

Primitive Y origin1 bytebasepoint-y

Scale of primitive width1 bytewidth

Scale of primitive height1 byteheight

End of shape definition1 byte0terminator

The following figure is an example of a 16 x 16 dot matrix that you could useto design an extended Big Font, such as a Kanji character. In the example, thedistance between each dot is one unit. The callout points to a square unit.

A square matrix for a Kanji character

The following figure shows examples of Kanji characters. Each characteroccupies an M×N matrix (matrices don't have to be square), similar to the oneshown in the previous figure. The numbers above each figure are the associatedshape numbers.

Big Font Descriptions | 173

Page 180: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Examples of Kanji characters

The following figure shows Kanji primitives.

Examples of Kanji primitives

NOTE Not all fonts are defined in a square matrix; some are defined in rectangularmatrices.

174 | Chapter 8 Shapes and Shape Fonts

Page 181: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Example: Shape Definition File for an Extended Big Font

Big Font Descriptions | 175

Page 182: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

*BIGFONT 50,1,080,09e

*0,5,Extended Font

15,0,2,15,0

*08D91,31,unspecified

2,0e,8,-7,-15,

7,0,08cfb,0,0,16,16,7,0,08bca,2,3,12,9,

2,8,18,0,2,0e,8,-11,-3,0

*08CD8,31,unspecified

2,0e,8,-7,-15,

7,0,08be0,0,0,8,16,7,0,08cc3,8,0,8,16,

2,8,18,0,2,0e,8,-11,-3,0

*08ADF,31,unspecified

2,0e,8,-7,-15,

7,0,089a4,0,0,8,16,7,0,08cb3,8,0,8,16,

2,8,18,0,2,0e,8,-11,-3,0

*08CE8,39,unspecified

2,0e,8,-7,-15,

7,0,089a4,0,1,5,14,7,0,08cc3,5,2,5,14,7,0,08c8e,9,0,7,

16,2,8,18,0,2,0e,8,-11,-3,0

*089A4,39,primitive

2,0e,8,-7,-15,2,8,1,14,1,0c0,

2,8,-11,-6,1,0a0,2,8,-12,-7,1,

0e0,2,8,-7,13,1,0dc,2,8,11,-1,

2,0e,8,-11,-3,0

*08BCA,41,primitive

2,0e,8,-7,-15,2,8,1,14,1,0c0,

2,8,-11,-6,1,0a0,2,8,-12,-8,1,

0e0,2,0e5,1,0ec,2,063,1,8,

2,-3,2,06f,2,0e,8,-11,-3,0

*08BE0,81,primitive

2,0e,8,-7,-15,2,8,3,9,1,080,

2,8,-10,-4,1,0c0,2,8,-13,-5,1,

0e0,2,8,-7,9,1,09c,2,8,-1,14,

1,8,-6,-5,2,8,8,5,1,8,6,-5,

2,8,-11,-6,1,8,1,-3,2,8,7,3,

1,8,-1,-3,2,8,-3,15,1,01a,2,

012,1,01e,2,8,10,-14,2,0e,8,

-11,-3,0

*08C8E,44,primitive

2,0e,8,-7,-15,2,8,3,15,1,090,0fc,038,

2,8,-6,11,1,090,2,8,-9,-5,1,

090,2,096,1,0ac,8,-1,-3,01a,01a,2,8,

18,0,2,0e,8,-11,-3,0

176 | Chapter 8 Shapes and Shape Fonts

Page 183: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

*08CB3,61,primitive

2,0e,8,-7,-15,2,042,1,02b,02a,018,2,

0d0,1,012,034,2,069,1,01e,040,2,8,

-8,6,1,02b,2,8,4,5,1,08c,2,8,

-3,8,1,03c,2,8,-5,3,1,0e0,2,8,

-12,5,1,0a0,2,8,6,-14,2,0e,8,

-11,-3,0

*08CC3,34,primitive

2,0e,8,-7,-15,2,0c1,1,06c,0a8,064,0a0,2,8,

-5,9,1,09c,2,8,-7,5,1,0e0,2,8,

4,-11,2,0e,8,-11,-3,0

*08CFB,22,primitive

2,0e,8,-7,-15,2,0d2,1,0cc,0c8,0c4,0c0,2,8,

5,-13,2,0e,8,-11,-3,0

Quick Reference

Commands

COMPILE

Compiles shape files and PostScript font files into SHX files.

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Use Big Font Text in a DrawingTo use a Big Font for drawing text, you set up a text style and then specify thename of the Big Font file.

To use a Big Font for drawing text, you must set up a text style by using theSTYLE command and then specify the name of the Big Font file. The sametext style can use a normal ASCII font as well; enter only the two file names,separated by a comma. The following example uses the command promptversion of the STYLE command.

Command: -styleEnter name of text style or [?] <current>: style_nameSpecify full font name or font file name (TTF or SHX): txt,greek

Big Font Descriptions | 177

Page 184: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

AutoCAD for Mac assumes that the first name is the normal font and that thesecond is the big font.

If you enter only one name, AutoCAD for Mac assumes it is the normal fontand removes any associated Big Font.

By using leading or trailing commas when specifying the font file names, youcan change one font without affecting the other, as shown in the followingtable.

Input for changing fonts

ResultInput

Both normal and Big Font specifiednormal, big

Normal font only (Big Font unchanged)normal,

Big Font only (normal font unchanged),big

Normal font only (if necessary, Big Font removed)normal

No changeENTER (null response)

When you use the -STYLE command to list styles or to revise an existing style,AutoCAD for Mac displays the normal font file, a comma, and the Big Fontfile. If the style has only a Big Font file, it is displayed with a leading comma:,greek.

For each character in a text string, AutoCAD for Mac searches the Big Fontfile first. If the character is not found there, the normal font file is searched.

To enable Big Fonts from the Text Style dialog box, choose the Big Font fileyou want to use from the Asian Set list.

Quick Reference

Commands

STYLE

Creates, modifies, or specifies text styles.

178 | Chapter 8 Shapes and Shape Fonts

Page 185: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Use a Big Font to Extend a FontTo include special symbols in text strings, you can use a Big Font instead ofextending a standard text font.

In some drafting disciplines, many special symbols can appear in text strings.The AutoCAD for Mac standard text fonts can be extended to include specialsymbols. However, extending standard text fonts has several limitations:

■ The number of shapes is 255 per font file.

■ Standard character set uses almost half the available shape numbers. Onlycodes 1 through 9, 11 through 31, and 130 through 255 are available.

■ Multiple text fonts require duplication of the symbol definitions in eachfont.

■ Special symbols require that you enter %%nnn, where nnn is the symbol'sshape number.

The Big Font mechanism avoids these problems. You can select one or moreseldom-used characters, such as the tilde (˜) or the vertical bar (|), as an escapecode, and use the next character to select the appropriate special symbol. Forinstance, you can use the following Big Font file to draw Greek letters byentering a vertical bar (|, ASCII code 124) followed by the equivalent Romanletter. Because the first byte of each character is 124, the character codes arebiased by 124 x 256, or 31744.

*BIGFONT 60,1,124,124

*0,4,Greek

above, below, modes, 0

*31809,n,uca

. . . uppercase Alpha definition, invoked by "|A"

*31810,n,ucb

. . . uppercase Beta definition, invoked by "|B"

*31841,n,lca

. . . lowercase Alpha definition, invoked by "|a"

*31842,n,lcb

. . . lowercase Beta definition, invoked by "|b"

*31868,n,vbar

. . . vertical bar definition, invoked by "||"

. . .

Big Font Descriptions | 179

Page 186: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Quick Reference

Commands

COMPILE

Compiles shape files and PostScript font files into SHX files.

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Unicode Font DescriptionsA single Unicode font, due to its large character set, is capable of supportingall languages and platforms. Unicode shape definition files are virtuallyidentical in format and syntax to regular AutoCAD for Mac shape definitionfiles.

The main difference is in the syntax of the font header as shown in thefollowing code:

*UNIFONT,6,font-name

above,below,modes,encoding,type,0

The font-name, above, below, and modes parameters are the same as in regularfonts. The remaining two parameters are defined as follows:

encoding Font encoding. Uses one of the following integer values.

0 Unicode

1 Packed multibyte 1

2 Shape file

type Font embedding information. Specifies whether the font is licensed.Licensed fonts must not be modified or exchanged. Bitcoded values can beadded.

0 Font can be embedded

1 Font cannot be embedded

2 Embedding is read-only

Another important difference is the handling of the code 7 subshape reference.If a shape description includes a code 7 subshape reference, the data following

180 | Chapter 8 Shapes and Shape Fonts

Page 187: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

the code 7 is interpreted as a two-byte value. This affects the total number ofdata bytes (defbytes) in the shape description header. For example, thefollowing shape description is found in the romans.shp file:

*00080,4,keuroRef

7,020AC,0

The second field in the header represents the total number of bytes in theshape description. If you are not used to working with Unicode fontdescriptions, you may be inclined to use three bytes rather than four, but thiswould cause an error during the compiling of the SHP file. This is true evenif the shape number you are referencing is not in the two-byte range (below255); the compiler always uses two bytes for this value, so you must accountfor that in the header.

The only other difference between Unifont shape definitions and regular shapedefinitions is the shape numbers. The Unifont shape definitions that AutoCADfor Mac provides use hexadecimal shape numbers as opposed to decimal values.Although hexadecimal numbers are not required, their use makes it easier tocross-reference the shape numbers with the \U+ control character values.

Quick Reference

Commands

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Superscripts and Subscripts in SHX FilesYou can modify shape definition files to improve their ability to displaysuperscripts and subscripts.

The AutoCAD for Mac SHX fonts have limited superscript and subscriptcapabilities. However, it is relatively easy to modify shape definition files toimprove superscript and subscript capability.

Creating superscripts and subscripts requires two steps. First, the “imaginarypen” that is creating the text, vector by vector, on your screen needs to beshifted up or down. Then, the font “scale” needs to be reduced. In addition,the reverse process has to take place to return to the normal font. The font

Superscripts and Subscripts in SHX Files | 181

Page 188: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

needs to recognize four new keys: two for superscripts and two for subscripts.To avoid altering the existing font definitions, you can access these with thenumeric keypad on your keyboard.

To add superscript and subscript definitions to a font

This example procedure is based on the AutoCAD for Mac Romans font file,although a similar method applies to any AutoCAD for Mac font. Thisprocedure adds four new shape definitions to a font: super_on, super_off,sub_on, and sub_off, which control the position and size of the charactersthat follow. For simplicity, this example replaces the left- and right-bracketcharacters ([and]) and the left and right curly brace characters ({and}) withthe new characters. You may choose to replace other characters or use a shapenumber in the extended range (ASCII codes 128 through 256). If you use anextended shape number, you need to use the %%nnn method (where nnn isthe ASCII value of the character) for placing the new characters.

1 Edit your SHP file with an ASCII text editor.

2 Search for the shape definitions of the characters you are replacing. Tocomment out those definitions so the new definitions can take theirplace, insert a semicolon in front of each line of the shape definition.The shape definition may continue for a number of lines.

The left- and right-bracket characters have ASCII values of 91 and 93 (05Band 05D hex values, if the font is Unicode). The left and right curly bracecharacters have ASCII values of 123 and 125 (07B and 07D hex).

3 Add the first and second values on the second line of the definition, anddivide the total by 2 as shown in the following example:

*UNIFONT,6,Extended Simplex Roman for UNICODE

21,7,2,0 21 + 7 = 28, then 28 / 2 = 14. This number is used

later.

4 Add the following lines to the end of the SHP file:

*91,8,super_on

2,8,(0,14),003,2,1,0

*93,8,super_off

2,004,2,8,(0,-14),1,0

*123,8,sub_on

2,8,(0,-14),003,2,1,0

*125,8,sub_off

2,004,2,8,(0,14),1,0

Notice the 14 and -14 values in the preceding lines. They are Y axis offsetsfor the imaginary pen. The value 14 is half the maximum height of a

182 | Chapter 8 Shapes and Shape Fonts

Page 189: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

character in this font, which is the correct approximation for superscriptsand subscripts. This value needs to be calculated for each font file, butyou can modify it any way you want.

5 Save the file.

6 Use the COMPILE command to compile the SHP file.

Once the shape is compiled and an appropriate style is defined, you canaccess the new pen-up and pen-down commands by entering the [, ], {,and } characters. The [ character initiates superscript and the ] characterreturns from superscript to normal. The { character initiates subscript andthe } character returns from subscript to normal.

Quick Reference

Commands

COMPILE

Compiles shape files and PostScript font files into SHX files.

LOAD

Makes shapes available for use by the SHAPE command.

SHAPE

Inserts a shape from a shape file that has been loaded using LOAD.

Superscripts and Subscripts in SHX Files | 183

Page 190: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

184

Page 191: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

Index

A

acad.lsp file 98acaddoc.lsp file 99addition DIESEL function 75aliases

creating for commands 16alignment

linetype patterns 21alternate font mapping files 12and DIESEL function 79angtos DIESEL function 79applications

AutoLISP 94ObjectARX 102Visual LISP 94

AutoCADcustomization 1

AutoCAD Runtime Extension 102AutoLISP (LSP) applications

about 94acad.lsp file 98acaddoc.lsp file 99DIESEL expressions and 72errors when loading 100loading 95–96loading ObjectARX applications

with 103macros and 47, 57, 71S STARTUP function 101system variables and 94

B

batch files 8Big Fonts

about 170defining 170examples 173extended Big Font files 171extending text fonts with 179

text styles and 177

C

canceling commands 48caret syntax in macros 50CFG files 12characters

Big Fonts 170including in linetypes 24macro control characters 47, 50shape fonts 105

codes (shape specification bytes) 110command line

switches 92command line switches

running scripts and 92command scripts 89commands

about 43aliases 16canceling 48creating 44customizing 43editing 44Help topics about 59images for 59macros and 47–48, 54menus 60name validity 5pausing for input 52properties 43repeating 54reusing 44scripts 89submenus and 61tool sets and tool groups 64tooltips 59transparent commands 52

commentsAutoLISP commenting 95

Index | 185

Page 192: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

script commenting 90compiling shape or font files 105conditional expressions in macros 56configuration files (plotters)

locating 12configuration files (pointing devices)

locating 12control characters in macros 50copyright restrictions on fonts 106custom icon files 12customization

about 1customization files (CUI)

DIESEL expressions in 71directory structure and 4

Customize dialog boxabout 41

customizingabout customization 41AutoCAD functions and features 1commands 43Customize dialog box 41glossary of terms for 42hatch patterns 31hatches 31linetypes 19menus 60tool groups 64tool sets 64user interface 41

D

dasheshatch pattern definitions 34linetype definitions 20

datesedtime DIESEL function 80

DCL files (dialog control language) 12, 94

DIESEL expressionsabout 71error messages 88macros and 47, 56, 71pull-down menu labels 73

DIESEL functionsaddition 75and 79angtos 79catalog 75division 76edtime 80eq 82equal to 76eval 82fix 82getenv 83getvar 83greater than 77greater than or equal to 78if 83index 84less than 77less than or equal to 78multiplication 76not equal to 78nth 84or 85rtos 85strlen 86substr 86subtraction 75upper 87xor 87

dimensionsfont characters for 120

directionshape specification codes 108

directories 3directory paths

AutoLISP files 96program and support files 4

division DIESEL function 76dots in linetype definitions 20drawing files (DWG)

folders and maintenance 6drawing templates

locating files 15drop-downs

tool groups 65

186 | Index

Page 193: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

DWT fileslocating 15

E

echoes in macros 49editing

commands 44edtime DIESEL function 80eq DIESEL function 82equal to DIESEL function 76error messages

AutoLISP 100DIESEL 88

errorsAutoLISP errors 100

eval DIESEL function 82extended Big Font files 171extended help 59

F

FAS files 94fields (font definition files)

Big Font files 171shape font files 107

fileslocations 3maintenance 6roaming profiles and 10

fix DIESEL functions 82flyouts

tool groups 65FMP files (font mapping) 12folders

file locations 3font mapping files 12fonts

compiling 105creating 119dimensioning characters in 120including in linetypes 24shape fonts 105special symbols in 179superscripts and subscripts in 181

G

getenv DIESEL function 83getvar DIESEL function 83graphics for commands 59greater than DIESEL function 77greater than or equal to DIESEL

function 78

H

hatch patternsabout 31creating 31examples 31, 34, 37multiple lines 37

hatchescreating 31customizing 31

Helplocating Help files 12tooltip command Help 59

I

iconscustomizations 12

if DIESEL function 83images for commands 59index DIESEL function 84input

pausing macros for 52prompting for 58

interfaceCustomize dialog box 41customizing 41terminology 42

interface elementsdefined 42

interface items 42international character sets 54, 170–171

J

Japanese fonts 170–171

Index | 187

Page 194: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

K

Kanji fonts 170–171keyboard input in macros 52

L

languagesBig Fonts 171macro translations 54special character codes 170

less than DIESEL function 77less than or equal to DIESEL function 78library search path 4LIN files (linetype library) 12, 19linetypes

about 19complex 27creating 20customizing 19examples 20including shapes in 27simple 20text characters in 24

loadingAutoLISP applications 95–96, 98–99ObjectARX applications 103

LSP files (AutoLISP) 94–95

M

macrosabout 47AutoLISP expressions in 57, 71commands in 54conditional expressions in 56defined 42DIESEL expressions in 56, 71international language support 54pausing for user input 49, 52prompting for user input 58repeating commands 54scripts 89selecting objects with 55special character codes for

commands 50

suppressing echoes and prompts 49syntax 47terminating 48

MDE (Multiple Design Environment) 94menu items

DIESEL expressions and 73menus

creating 60–61creating sub-menu 61customizing 60international language support 54menu bar 61submenus 61

MNL files (menu LISP)loading 96locating 12macros and 57

modifyingcommands 44

Multiple Design Environment 94multiple-line hatch patterns 37multiplication DIESEL function 76

N

namespaces in Visual LISP 94naming

linetypes 21shapes 108

not equal to DIESEL function 78nth DIESEL function 84

O

ObjectARX applicationsabout 102loading 103

or DIESEL function 85

P

palettesdefined 42

PAT files 12

188 | Index

Page 195: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

patternslinetypes 22

pausing macros 49, 52PFB files (printer font binary) 106PGP files (program parameters) 12plot styles

locating files 11plotter configuration files

locating files 11PostScript fonts 106prefixes for commands 17profiles 10program file locations 3programming applications

AutoLISP 94ObjectARX 102Visual LISP 94

promptssuppressing 49user input in macros 58

propertiescommands 43

PSF files 12

R

repeating commands 54ribbon

command images 59roaming profiles 10rtos DIESEL function 85

S

S STARTUP AutoLISP function 101SCR files (scripts) 89scripts

about 89file names and 90, 92running at startup 91switches and 92

search pathsdefault file locations 4

selectingobjects with macros 55

shape definition filesabout 105Big Font files 170creating 105, 107samples 121, 150superscripts and subscripts 181text fonts 119Unicode fonts and 180

shape fontsabout 105Big Fonts 170sample files 121, 150superscripts and subscripts 181Unicode shape definition files 180

shape specification bytes 110shapes

about 105descriptions 107including in linetypes 27shape specification bytes 108special codes 110

SHP fonts (shape definition) 105, 107SHX fonts 12, 105, 107, 181spaces in linetypes 20special characters

commands and 61macros and 47, 50, 61shape fonts 105

startup AutoLISP errors 100startup scripts 91strlen DIESEL function 86submenus 61subscripts in fonts 181substr DIESEL function 86subtraction DIESEL function 75superscripts in fonts 181support files

locations 3suppressing echoes and prompts 49switches

running scripts and 92symbols

commands and 61macros and 47, 50, 61shape fonts 105

Index | 189

Page 196: AutoCAD 2011 for Mac - Autodeskdocs.autodesk.com/ACDMAC/2011/ENU/PDFs/acmac_acg.pdf · the command to the PGP file acad.pgp.For example, you might want to start the BLOCK command

syntaxmacros 47shape fonts 107Unicode shape definition files 180

system variablesAutoLISP functions and 94toggling values with macros 56

T

templateslocating files 15

terminating macros 48text

including in linetypes 24shape fonts 105

text stylesBig Fonts and 177

textureslocating files 16

timeedtime DIESEL function 80

tool groupscustomizing 64drop-downs on 65flyouts on 65

tool setscustomizing 64drop-downs 65flyouts 65

toolbarscommand images 59

tooltipscommand Help in 59

translating macros 54

transparent commands 52Type 1 PostScript fonts 106

U

Unicode fonts 150, 180Unicode shape definition files 180UNT files 12upper DIESEL function 87user input

pausing macros 52user interface

Customize dialog box 41customizing 41terminology 42

V

vectors in shape specifications 108Visual LISP 94VLISP (Visual LISP) 94

W

workflowdefined 43panels 43

workflow panelsdefined 43

X

xor DIESEL function 87

190 | Index