AutoCAD Main Text Book
AutoCAD Main Text Book
AutoCAD
AutoCAD
For All Afghan Engineers
2016
Introduction…………………………………………………………………………………………………………… X
Setting Up a Drawing...........................................................................................................6
Drawing Multiline..............................................................................................................23
Rearranging Objects...........................................................................................................34
Grouping Object.................................................................................................................44
Inserting of AutoCAD........................................................................................................55
Chapter (14) Working with Blocks, Attributes and External References ....................... 67
Dynamic UCSs...................................................................................................................84
Box ...................................................................................................................................104
Cone .................................................................................................................................104
Cylinder ...........................................................................................................................106
Wedge .............................................................................................................................106
Sphere .............................................................................................................................107
Torus ...............................................................................................................................107
Pyramid ...........................................................................................................................107
Polysolid ..........................................................................................................................108
Extrude ............................................................................................................................108
Revolve ...........................................................................................................................109
Sweep ..............................................................................................................................110
Loft ..................................................................................................................................111
Chapter (22) Creating Three Dimension Images Rendering and Animation ................ 112
Renderenvironment .........................................................................................................117
Materials .........................................................................................................................119
Appendix ((Complete AutoCAD Variables and Recommended Variable Settings)) .... 125
We live and have born in a country that needs more effort and more
working for having a bright future. As a young person of Afghan society but not
as a student of university my idea is that we must work hard and we must
sacrifice for our homeland to bring a bright future and have a developed country.
Our responsibilities is not only to work hard and make ourselves professional but
also we are responsible of being good person, act by our nice Islam rules, serve
and avail others and give the massage of being good person for them.
Our country really needs for powerful youth people that they should work
honestly for their homeland and their people. In my opinion it is not important that
who we are and what is our profession but something which is too important is
our tenor that we should have the hope that of the time that our country will stand
on its own feet and for this goal we must work very hard.
At the end I have a massage to all our brave people and all Afghan
Engineers that let’s construct our country and let’s start our tour toward a
prosperous future I accept that this tour is difficult but nothing is impossible if we
try.
Starting AutoCAD.
Understanding the AutoCAD Interface
Title bar Menu bar Standard toolbar Object Properties toolbar Toolbars
Crosshair, Pick box, and curser Status Bar Toolbars Model Tab and Layout Tabm
Command Window Text Window Menu bar
Chapter (2)
Drawing Basics
AutoCAD helps you to organize information in your drawings for greater efficiency. For example, you
Angle.
Decimal degree display partial degrees as decimal units (90.5000 degree)
Deg/Min/Sec display partial degrees as minutes and seconds
Grads display angles as grads
Radian display angles as radian
Surveyor display angles in surveyor unit
PolarSnap,To use Polar Snap, you must turn on both snap and polar tracking.
Endpoint
Midpoint
Apparent Intersection
Extension
Center
Tangent
Perpendicular
Parallel
Insertion
Nearest
None
Setting a One Time Object Snap
Setting a Running Object Snap
Controlling Auto Snap
Chapter (3)
Creating Simple 2-D Objects
Every AutoCAD drawings is composed of objects, most of them simple two dimensional objects.
For purpose of organization, this book classifies these 2-D objects into two groups; simple objects and
more complex objects. The simple objects include lines (both finite and infinite), circles, arcs, ellipses,
elliptical arcs points, and rays. In addition, freehand sketches are also classified as simples objects.
This chapter explains how to create simple objects. As with AutoCAD commands, you can start the
drawing command for each of these objects by using any of the following methods:
Drawing Lines
Lines are probably the most commonly used AutoCAD objects. Over 50 percent of typical
drawings consist of lines.
Drawing Ellipse.
Geometrically, an ellipse is defined by two axis .the default method an ellipse is to specify the end
points of one axis of the ellipse, and then specify a distance representing half the length of the
second axis .
Type ellipse (EL) in command line.
Click on draw toolbar or draw menu.
Drawing Rectangle
Drawing Polygon
Spl+method+CV
Cvshow & Cvhide
Splmethod= variable for fit or cv
Drawing Donuts: do
Turning Highlighting On and Off = when we select an object the object will be highlighted but off that
Turning Blips On and Off =blipmode draft of erasing will be appeared when we erase some
Drawing
Chapter (6)
Modifying Objects
Creating objects is only part of the process of creating a CAD drawing, and for complex drawings,
Selecting Objects
Object Selection methods (W ,C ,WP ,CP ,F, All ,Last ,P ,R ,Add )
Erasing Objects
Duplicating Objects
Coping objects Within a Drawings
Copying Using Grips
Arraying Objects
Rearranging Objects
Moving Objects
Rotating Objects
Aligning Objects
Resizing Objects
Stretching Objects
Extending Objects
Trimming Objects
Lengthening Objects
Noun/Verb Syntax:
An object is the noun and a command is the verb. Noun/Verb syntax order means to pick objects (noun)
first, and then use editing commands (verb) second. If you select objects first (at the open command:
prompt) and then immediately choose a modify commands, AutoCAD recognizes the selection set and
passes through the “Select objects;” prompt to the next step in the command.
Chapter (7)
Organization Drawing Information
Chapter (8)
Calculation Areas
733.4620
Grouping Object
Creating Group
Selecting Group
Editing Group
Exploding Objects
Chamfering Objects
Filleting Objects
Chapter (10)
Changing Properties
Sometimes, rather than actually modifying the physical geometry of objects, you need to change their
appearance. For example, you may discover that an object should be on a different layer or should be
drawn with a different color or linetype.
Rather than erasing and redrawing the objects, you can simply change its properties.
Also, as you have learned in previous chapters, you can assign names to many drawing elements, such as
layers, linetypes, views, and viewport.
This chapter explains how to do following:
Change an object`s properties
Match the properties of selection objects to those of another object
Change an object’s size or position
Rename objects and elements
Changing Colors
Changing Line Types
Changing Line Weight
Chapter (11)
Adding Cross Hatching
Another common way to convey information in drawing, if fills areas with a solid color or repetitive
pattern of line.
For example, you may need to represent the pattern of brick on the elevation of a building, or a type of
48 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
soil or vegetation on a survey or map. Cross-sectional drawings of mechanical parts or structural
components or also usually filled with a repetitive pattern of an angled lines.
These solid colors and repetitive patterns or called hatch patterns applying hatch BHATCH (Boundary
Hatch) and HATCH commends.
This chapter explains how to do following:
Specify the appearance of hatch patterns
Define hatch pattern boundaries
Control hatch pattern styles
Modify hatch objects
Create your own hatch patterns
Adding Hatch Objects
Selecting the Pattern Type
Controlling the Pattern Properties
Defining Hatch Boundaries
Using the Boundary Options
Using the Direct Hatch Option of the HATCH Command
Chapter (13)
56 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Dimensioning Your Drawing
Dimensions identify the size of the objects you draw, making accurate, legible dimensions one of the
most important features of those drawings. AutoCAD`s dimensioning tools let you add dimensional
annotations to your drawing. You can quickly add dimensions simply by pointing to objects. You can
also add tolerance symbols, notes, and leaders to your drawing by using the program`s dimensioning
tools.
AutoCAD`s many dimensioning variables let you control the appearance of the dimensions. With
dimension styles, you can save dimension variables settings, so that you can reuse them without having to
re-create them. By creating associative dimensions, dimensions that are tied to the object that they
annotate, if you subsequently modify the size of the object, the dimension update automatically to reflect
the changes, thus saving a lot of time and effort.
This chapter explains how to do the following:
Create linear, angular, diameter, and radius
Dimension multiple objects
Edit dimensions
Create leaders and annotations
Use and manage dimension styles and variables
Add geometric
Editing Dimensions
Changing Dimensioned Geometry
Modifying Dimension Text
Changing Dimension Properties
Creating Leaders
Modifying Leaders
Chapter (15)
Managing Content with AutoCAD Design Center
As you start to build a library of drawings, you`ll find that you reuse many components. Most of the time,
you`ll probably be producing similar types of drawings with some variation, so you`ll reuse drawing
components such as layers settings, dimension styles, and layouts.
The AutoCAD DesignCenter helps you keep track of the document you use in your projects. You can
think of DesignCenter as a kind of super Windows Explorer that is focused on AutoCAD files.
DesignCenter lets you keep track of your favorite files and helps you locate files, blocks, and other
drawing components.
Understanding the Design Center Interface
Using the Tree View
Using the Palette
Chapter (16)
Creating Layout to Plot
This chapter covers two aspects of printing: preparing your drawing`s final appearance in a layout view
Figure 16-1 Shows an Elevation of Split level Residential house Project in model space.
Figure 16-2 Shows an Elevation of Split Level Residential house project in a paper space
Creating Layout
Using the Create Layout Wizard
Using the Page Setup Dialog Box
Chapter (17)
Understanding Plotting
Understanding Layouts
Understanding Plot Style
Understanding Plotter Configuration
Plotting a Drawing
Selecting What to Plot Stamping Each Plot Plotting to a File Controlling Plot Settings
Previewing the Out Put
A plot style is an object property, like color, linetype, lineweight, or layer. Just as you can assign a color to an
object and also to a layer, you can assign a plot style to an object as well as to a layer. Because a plot style determines
how an object is plotted, its function is to override the object`s original properties. A plot style is more complex than a
color or a linetype, however, because it contain a set of properties, such as color-related properties, linetype, lineweight,
` `
Result: This Plot style table or Pen Assignment that we have for example (Naweed pen assignments) it is added to all of our
drawings that in future that we will work with AutoCAD.
So each construction company or other organization of Engineering or Architectural Engineering Co. have their own Pen
Assignment that every time and any project that they want they can use it.
Chapter (18)
Drawing in Three Dimension
3D Coordinate Entry
When creating a model in three-dimensional drawing space, the concept of the X and Y coordinate
system, which is used for two-dimensional drawing, must be expanded to include the third dimensional,
Z, which is measured from the origin in direction perpendicular to the plane defined by X and Y.
Remember that two-dimensional CAD system use X and Y coordinate values to define and store the
location of drawing elements such as Lines and Circles.
Likewise, a three-dimensional CAD system keeps a database of X, Y, and Z coordinate values to define
locations and sizes of two- and three- dimensional elements. For example, a line is a two-dimensional
objects, yet the location of its endpoints in three-dimensional spaces must be specified and stored in the
database using X, Y, Z coordinates (Fig.19-1).
The X, Y, Z coordinates are always defined in that order, delineated by commas. The AutoCAD
Coordinate Display (Coords) displays X, Y and Z values.
Command: line
Specify first Point: 3 , 4 , 0
Specify next point or (undo): 8 , 2 , 6
Command: line
Specify first Point: 3 , 4 , 0
Specify next point or (undo): @5 , -2 , 6
Dynamic UCSs
In addition to static UCSs created with the UCS command, you can use temporary coordinate systems
called Dynamic User Coordinate Systems; however, Dynamic User Coordinate Systems operate only
with Solid models.
A Dynamic User Coordinate System, or DUCS, appears automatically only during the creation of
primitive such as a Box, Wedge, or Cylinder, Use the DUCS toggle on the status line to activate the
Dynamic UCS feature.
The best example of that is drawing an object in other faces.
Pan: The cursor changes to a hand cursor when this command is active.
Zoom: This Zoom is identical to the real-time version of the Zoom command used in 2D.
Camera
For many 3D view in AutoCAD, the display is determined by location of the observer, known as the
camera, and the target, which is generally in the center of the 3D objects.
Types of 3D Models
Three basic types of 3D (three dimensional) models created by CAD systems are used to represent actual objects. They are:
1. Wireframe models
2. Surface models
3. Solid models
Surface Models
Surface models provide a better description of an object than a wireframe principally because the surfaces
as well as the edges are defined. A surface model of a cube is like a cardboard box –all the surface and
edges are defined, but there is nothing inside. Therefore, a surface model has volume but no mass.
A surface model provides a better visual representation of an actual 3D object because the front surfaces
obscure the back surfaces and edges from view.
Often wireframe elements are used as framework to build and attach surfaces.
Also Rulesurf, Tabsurf, Edgesurf, Revsurf. And Extrude, Revolve, Sweep, and Loft create Surface.
Chapter (19)
Editing in Three Dimension
Rotating in Three Dimensions
3Drotate allows you to rotate solids about an axis. You specify the axis to rotate about by using the
3Drotate grip tool. This grip tool display only three possible rotation axes. However, since the grip tool
Command: 3drotate
Current positive angle in UCS: ANGDIR=counterclockwise ANGBASE=0
Select objects: PICK
Select object: Enter
Specify base point: PICK
Pick a rotation axis: PICK (Select an axis handle to specify the rotation axis)
Specify angle start point: PICK
Specify angle and point: PICK
Command: 3darray or 3A
The selection set can be one or more objects. The entire set is treated as one object for arraying. All
values entered must be positive.
Figure.20-2 Illustrate creating a Rectangular 3Darray of a cylinder with 2rows and 7 columns and 2
levels.
Polar
Similar to a polar Array (2D), this option
creates an array of selected objects in a
circular fashion.
The different in the 3D version is that an
array is created an axis of rotation (3D)
rather than a point (2D).
Specification of an axis of rotation requires
two points in 3D.
Figure.20-3 A 3Darray is
created to form a series of
Holes from a cylinder.
Object: Using this option by 2D object like circle arc or Pline which create a 2D XY plane for mirror
By subtract we can the result in here.
Zaxis
With this option, the mirror plane is the XY plane prependicular to a Z vector you specify
View
The View option of Rotate3D uses a mirroring plane parallel with the screen and perpendicular to your
line of sight based on your current viewpoint.
Command: 3dalign
Select objects: PICK
select objects: Enter
Specify source plane and orientation……..
Specify base point or [Copy]: PICK (S1)
Specify second point or [Continue] <C>: PICK (S2)
Specify third point or [Continue] <C>: PICK (S3)
Specify destination plane and orientation …………
Specify first destination point: PICK (D1)
Specify second destination point or [eXit] <X>: PICK (D2)
Specify third destination point or [eXit] <X>: PICK (D3)
Command: chamfer
(TRIM mode) current chamfer Dist1= 0.5 Dist2= 0.5
Select first line or [Polyline/Distance/Angle/Trim/Method/mUltiple]: PICK (Select solid at desired edges)
Base surface selection…..
Enter surface selection option [Next/OK (current)] <OK>: N or Enter
Specify base surface chamfer distance <0.5>: value
Specify other surface chamfer distance <0.5>: (value)
Select an edge or [loop]: PICK (select edges to be chamfered)
Select an edge or [loop]: Enter Edges must belong to base face.
Command:
Loop
The loop options chamfer the entire perimeter of the base surface. Simply PICK any edge on the base
surface.
Command: fillet
Current settings: Mode = TRIM, Radius = 0.5
Select first object or [Undo/Polyline/Radius/Trim/Multiple]: PICK (select desired edge to fillet)
Enter fillet radius <0.5>: (value)
Select an edge or [Chain/Radius]: Enter or PICK (Select additional edges to fillet)
Command:
Chain
The chain option allows you to fillet a series of connecting edges. Select the edges to form the chain (fig).
If the chain is obvious (only one direct path), you can PICK only the ending edges, and AutoCAD will
99 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
find the most direct path ( series of connected edges):
Sectioning Solids
Sectionplane creates a translucent clipping plane that can pass through a solid to reveal the inside features
of the solid. The section plane is actually a section object that can be moved or revolved to dynamically
display the solid`s interior features. The section plane can contain “jogs” to create an offset cutting plane.
The section object is manipulated using grips that appear on the section plane object.
Command: sectionplanes
Specify a face or any point to locate section line or [Draw section/Orthographic]: PICK
Specify through point: PICK
100 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
101 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Slice: ( after we select the object we specifies the 2 points and after that by clicking any side that side remain and the other
one will be removed or clicking double the both sides remains)
Chapter (21)
102 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Solid Modeling Construction
Concepts
A solid is a virtually complete representation of the 3D shape of physical object. Solid modeling differs
from wireframe or surface modeling in two fundamental way: (1) the information is more complete in a
solid model and (2) the method of construction of the model itself is relatively easy.
Extrude Converts a closed 2D object such as a Pline, Circle, Region, or Planar Surface to a solid.
Loft Creates a solid using a series of 2D cross sections (curves or lines) that define the shape
Revolve Converts a closed 2D object such as a Pline, Circle, Region to a solid by revolving (axis)
Sweep Creates a solid by sweeping a closed planner profile along an open or closed 2D or 3D path
A Dynamic User Coordinate System (DUCS) is a temporary USC that appears automatically when you
use a primitive command such as Box, Cylinder, or Pyramid and disappears when you complete the
command. You can use the DUCS button on the Status bar to toggled this feature on or off.
You cannot use the Ucs command to create a Dynamic User Coordinate System.
A DUCS appear only with some primitive solid creation commands, but not with surface or wireframe
models.
Boolean Operation Commands
Once the individual 3D primitive have been created and moved into place, you are ready to put together
103 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
the parts. The primitives can be “assembled” or combined by Boolean operation to create composite
solids.
The Boolean operations found in AutoCAD are listed in this section: Union, Subtract, and Intersect.
Union:
Subtract
104 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Intersect:
Box
The base of the boxes always oriented parallel to the current XY plane (WCS, UCS, or Dynamic UCS).
You can specify dimension of the box by PICKing or by entering values, the box can be defined by
(1)Giving the corners of the base, then height , (2) by locating the center, then the corners and height, or
(3) by giving each of the three dimensions.
Cone
Cone creates a right circular or elliptical solid cone (“right” means the axis forms a right angle with base).
By the default method, you specify the center location, radius, (or diameter), and height. With this option,
the orientation of Cylinder is determined by the current UCS so that the base lies on the XY plane and
height is perpendicular ( in a Z direction). Alternately, at different orientation can be defined by using the
axis endpoint or 3Ppoint option.
Center Point:
3P/2P/Ttr
Elleptical
This option draws a cone with an elliptical base. You specify two axis enpoints to define the elliptical
base.
106 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Axis endpoint
Invoking the axis endpoint option (after the base has been established) displays the following prompt.
Top radius
Cylinder:
Creates a cylinder with an elliptical or circular base with a center location, diameter, and height you
specify. Default orientation f the cylinder is determined by current UCS, such that the circular plane is
coplanar with XY plane and height is in a Z direction. However, the orientation can be defined otherwise
by the Axis endpoint or 3Point option.
107 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Wedge
Creating a wedge solid primitive is similar to creating a Box. Note that the prompts are the same, and
therefore the methods for creating a Wedge are identified to those for creating Box.
The difference between a Wedge and a Box with the same dimensions is the Wedge contain half the
volume of the Box-a Wedge is like a Box cut a half diagonally.
Sphere:
108 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Torus:
Pyramid:
Polysolid
109 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Extrude: can create surface 3D or Solid 3D depending on 2D object if you extrude open 2D objects
(line, Arc, or open pline) a surface will be create. If you extrude an closed 2D shape such as ( Circle,
Polygon, Rectangle, ellipse, pline, spline, region, it will create Solid.
Path:
110 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Revolve:
Sweep:
111 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Alignment on and off
Scale: specify the start and end size as we see the scale of 0.5 in the following figure.
Twist: specify the an angle up to end for the following example we see TWIST=180
Loft: with the Loft command, you can create a new solid or surface by specifying a series of cross
112 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
sections. Similar to Extrude, Revolove, and Sweep the resulting shape (surface or solid) depending on if
the 2D shapes) are “open” (having endpoints) or “closed” (one connected loop). Loft creats a solid when
the cross-section shapes are closed.
113 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Draft angle: 180 and 120
Chapter (22)
Creating Three Dimension Images
Rendering and Animation
Concept:
As you know, AutoCAD provides the ability to enhance the visualization of a surface or a solid model
using Visual Style. Visual Styles allow you to add color and lighting to enhance the visibility of 3D
objects. However, another AutoCAD feature called Render adds another level of realism to surface and
solid models by giving you control of background, lights, colors, materials, and other effects.
Render involves the use of light sources and the application of Materials for 3D model. You control the
type, intensity, color, shadows, and positioning of lights in 3D space. Render also provides a variety of
materials for attachment to objects or layers and allows you to adjust the properties of the material.
114 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Creating a Rendering with default Settings
Creating a realistic rendering often takes more time that creating the 3D model. Although many
parameters, adjustments, and steps can be used to create a realistic rendering (discussed later), you can
use the Render command to create a rendering without specifying any background, light, or materials.
1. You must first create or open an existing 3D model. Both surface and solid models can be
rendered.
2. Use any 3D navigation commands (3Dorbit, Zoom, Pan) needed to specify the desired viewing
position. Perspective mode is allowed. If you want to create several renderings from different
viewports, use to save each display to a named view so it can be restored at a later time.
115 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
3. Set the background for object to be rendered. You can use a solid color or gradient color as the
background. You can specify an image as background.
4. Use light control panel to create one or more lights. Parameters such as light type. Intensity, color,
and location (position in space) can be specified. A light source representing the sun can be
specified by geographic location and time of day. You can specify if the lights cast shadows.
5. Use materials control panel to specify the desired material for object. The material properties such
as color, reflective qualities, mapped images, and other attributes can be adjusted.
6. Specify the desired format and quality for the rendering using Advanced Rendering Settings
palette. Several options are available including the Destination of the Rendering.
7. Use Render command to create the rendering image to the specified destination.
8. Because rendering normally involve a process of continual adjustment to light and material
parameters, any or all of steps 2 through 7 can be repeated to make the desired adjustments don’t
expect to achieve exactly what you want the first time.
9. Once your test renderings approach the results you are looking for, apply the higher rendering
qualities such as reflections and refractions to achieve the highest quality for the final rendering.
10. Use the Render command again to create the final render display or file. Usually, you should
render to the screen until you have just the image you want; then save to a file if desired.
Defining a Background
Once the 3D model is created, you can specified the background you want to appear in the rendering. The
background is defined by background property in the View Manager dialog box. In addition to the
Background properties of the current view, you can use the Render Environment command to add fog
and depth cueing for the rendering.
Solid:
116 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Gradient:
The gradient background type see the figure, allow you to define the rendered background based on two
or three colors.
The specified colors are blended together to produce the final output.
117 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Rotation: the rotation edit box allows you to specify a rotation value angle for the gradient pattern.
Image:
Selecting the image background type from the drop down list in the background dialog box allows you to
use an existing image file as the background, see the figure.
Clicking the browse button to select the image file that you want to appear when the 3D models is
rendered. You can select any format of image.
118 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Renderenvironment:
the Renderenvironment command displays the Render Environment Dialog box. This tool used to create
the perception of depth in a rendering by using a “fog” effect.
119 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Using Sunlight
Sunlight is a special kind of distance light. Using the Sun Properties Palette and a Geographic Location,
you are able to control the properties of the “sun” and geographic properties of the 3D models such as
northern direction, the current time zone, and longitude and latitude values relative to the 3D model.
120 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
This feature allows you to simulate life-like scenarios of lighting and shadows for your 3D model. For
example, you can use these variables to calculate the effects of the path of the shadow from a skyscraper
during specific periods of the day or year.
Sunproperties:
This Sunproperties command displays the Sun Properties palette. This palette provides complete control
of the settings that affect the simulation of the sun. In general, the basic properties for the sun are similar
to distance light, in that the rays of light are parallel and do not “fall off” as they increase in distance from
the source. However, the geographical properties provides you with the means to achieve life-like
simulations.
Intensity Factor
This value specifies the brightness of the light from the sun;
the greater the factor, the brighter the light.
Shadows
This setting designates if the sun casts shadows (On) and
(Off). Generally, turn shadows Off for test rendering and
ON for final rendering.
Materials
121 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Examples of Rendering Images:
122 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
123 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
124 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
125 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
126 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Project 3:
Please draw this 3D drawing with all feature, you can use materials and sun properties and finally please render this project
with best quality. Approximately you can draw this as it look you must use options as you study to make a nearest view
according to this drawing.
127 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Appendix
Complete AutoCAD Variables
And Recommended Variable Settings
128 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
Variable Name Definition
(The term "Read Only" after the definition means this variable is set by the
system and cannot be changed but only viewed by the user)
ACADPREFIX Lists the full directory path specified by the ACAD environment variable (Read
Only)
ANGBASE Angle measurement 0 direction with respect to the current UCS. This is normally
set to 0 angle by default, i.e. 0 angle is toward the east in the World Coordinate
system. This should not be changed for architectural drawings.
ANGDIR Indicates direction of positive angular direction with respect to the current UCS.
This should not be changed for architectural drawings.
0=counterclockwise (the default).
1=clockwise
APERTURE Object snap target height in pixels. This is set to 10 by default, but should be
changed to 7.
AREA Displays the last area computed by commands AREA, LIST, or DBLIST (Read
Only)
ATTDIA Controls the use of a dialogue box for entry of attribute values.
0=disables dialogue box and simply issues prompts to the command line
1=enables dialogue box to enter attribute values
ATTREQ Controls request for attribute values during insertion of a block which has been
assigned attributes.
0=does not request values but assumes defaults upon insertion of the block
1=requests values for attribute upon insertion of the block
129 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
AUDITCTL Controls whether an audit report file (*.adt) is created by the AUDIT command
0=disables creation of audit report file
1=enables creation of audit report file
BACKZ Perpendicular distance from back clipping plane to target plane for the current
viewport. Useful only if the back clipping plane is turned on (can be turned on or
off by VIEWMODE variable). An even more useful dimension would be distance
from back clipping plane to camera, which can be derived only by subtracting
BACKZ distance from the camera to target distance (Read Only)
130 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
1=enables dialogue box for plot command
CMDECHO Controls display of prompts and input during execution of a lisp function
0=disables display of prompts and input
1=enables display of prompts and input
CMDNAMES Displays the name of the command which is currently active (Read Only)
DIMALTD Dimension alternate unit decimal places -- default is 2, should be set to 0 for SI
metric units in millimeters
DIMALTF Dimension alternate units scale factor: default is 25.4 which is correct for SI
millimeter metric units as alternate units (inches converted to millimeters)
DIMAPOST Dimension alternate unit text suffix -- default is none which OK for SI metric
units
131 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
0=disables associative dimensions
1=enables associative dimensions
DIMBLK Dimension block to use to replace standard arrow design -- default is none
DIMBLK1 Dimension block at first side of dimension to use to replace standard arrow
design
-- default is none
DIMBLK2 Dimension block at second side of dimension to use to replace standard arrow
design -- default is none
DIMDLE Dimension line extension -- default is 0.0 which is OK for arrows, but should be
set to 0.09 if using ticks
DIMDLI Dimension line increment: this is the distance which each dimension line is
automatically spaced from the last one when using the "continue" or "baseline"
sub-commands, or when dimension text will not fit within the space between
extension lines (the next dimension in a string will get offset from that one by the
value of this variable) -- default is 0.38, but should be set to 0, unless you intend
to use the "baseline" sub-command (which is rare in architectural drawings)
DIMEXE Dimension extension line extension beyone the dimension line -- default is 0.18,
but should be set to 0.09
DIMEXO Dimension extension line offset: this is the distance from the origin point of the
dimension to the end of the extension line -- default is 0.0625 which is OK
DIMGAP Dimension space between dimension line and text when dimension line is
broken to accommodate the dimension text -- default is 0.09 which is OK, since
this is never used in architectural drawings -- dimension lines should never be
broken for dimension text in architectural drawings
132 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
the main drawing to be plotted at 1/4"=1'-0". The detail would then be
dimensioned, first setting DIMLFAC to 1/4 (that is the reciprocal of the
conversion factor. Note that none of this complicated process is necessary if
you always plot your drawings in paper space at 1=1 scale, zooming the various
viewports to their respective scales.
DIMLIM Controls the way tolerances are displayed when using tolerances for a
dimension
0=off (default) tolerances are displayed as plus-minus number
1=on tolerances are displayed in high value and low value one above the other
Tolerances and therefore this variable is rarely used for architectural drawings
DIMRND Dimension rounding value -- default is 0.0, should be set to 0.625, which is
1/16" for architectural drawings
DIMSAH Allows use of separate arrow blocks for each end of the dimension line
0=off (default) -- when set to off, you are not allowed to use two different blocks
for the dimensioning arrows
1=on -- when set to on, you may use two different blocks for each end of the
dimension line, stored as DIMBLK1 and DIMBLK2
DIMSCALE Dimension overall feature scale factor -- default is 1.0 but if you want to plot
your drawing in model space, you should set this variable to the plot scale factor
(e.g. 1/4"=1'-0" plot scale, the plot scale factor is 48), but if you intend to plot in
paper space only, set this variable to 0. It is recommended that you always plot
in paper space, and that this variable should be set to 0.
133 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
1=on (default)
DIMSTYLE Dimension style -- default is *UNNAMED (Read Only) -- you can create as many
styles as you want by setting variables as you wish, and using the DIM<RET>
SAVE<RET>[name] command sequence, with [name] being the name you
assign to the dimension style. To use a style that has already been saved, you
need to restore it by using the DIM<RET>RESTORE<RET>[name] command
sequence
DIMTFAC Sets height of tolerance text with relation to main dimension text height -- default
is 1.0 Recommended value is 0.75 -- no need to be concerned about this
variable, since tolerances are rarely used in architectural drawings.
DIMTIH Sets orientation of dimension text inside extension lines -- default is 1, should be
0
0=off -- dimension text always parallel with dimension line
1=on -- dimension text always horizontal regardless of dimension line
orientation
DIMTIX Sets whether text is always placed between extension lines -- default is 0,
should be 1
0=off -- text will be placed to the right or left side of dimension if it does not fit
between extension lines
1=on -- text will always be placed between extension lines regardless of
whether it will fit -- this is more desirable for architectural drawings. If it becomes
a problem with long dimensions overlapping dimensions, they can always be
moved with the DIM<RET>TEDIT<RET> command sequence
DIMTOFL Sets dimension line to be drawn inside of extension lines, whether or not text is
drawn outside of extension lines -- default is 0, should be set to 1
134 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
0=off -- will not draw inside dimension line if text is outside of extension lines
1=on -- will force dimension line to always be drawn between extension lines
DIMTOH Sets orientation of dimension text outside extension lines -- default is 1, should
be 0
0=off -- dimension text always parallel with dimension line
1=on -- dimension text always horizontal regardless of dimension line
orientation
DIMZIN Sets zero display with dimension text -- default is 0, should be set to 3 for
architectural drawings
DONUTID Sets donut inside diameter default -- can be set to 0; is automatically set to ID
size of last donut drawn
DONUTOD Sets donut outside diameter default -- cannot be set to 0; is automatically set to
ID size of last donut drawn
135 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
DWGCODEPAGE Set to the system code page when new drawing is created. Can be manually set
to any value used by the SYSCODEPAGE variable -- not normally used
DWGNAME Displays full path drive and directory and name you gave to the drawing at the
SAVE or last SAVEAS command. If drawing is not yet named, it has the value of
*UNNAMED (Read Only)
DWGPREFIX Displays full path drive and directory of drawing, but not the name (Read Only)
ELEVATION Sets current 3d elevation, relative to the current UCS for current space (model
space or paper space)
136 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
FILLMODE Controls display of fill in wide polylines, solids, donuts, arrowheads, and traces
0=fill is turned off, is not visible and will not plot
1=fill is turned on, is visible in views perpendicular to plane of object (plan only)
and will plot
FRONTZ Perpendicular distance from front clipping plane to target plane for the current
viewport. Useful only if the front clipping plane is turned on and "front clip not at
eye bit" is turned on (these can be turned on or off by VIEWMODE variable). An
even more useful dimension would be distance from front clipping plane to
camera, which can be derived only by subtracting FRONTZ distance from the
camera to target distance (Read Only)
GRIPCOLOR Sets color of non-selected grips, drawn as a box in outline -- default value is 5
(blue)
GRIPHOT Sets color of selected grips, drawn as a filled box -- default value is 1 (red)
HPDOUBLE Sets whether "U" user-defined hatch patterns will be cross-hatched (doubled)
0=doubling disabled
137 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
1=doubling enabled
HPSPACE Sets default hatch pattern line spacing for "U" user-defined hatch patterns. Must
be non-zero
INSNAME Default Block name for the INSERT command. To set to no default name, enter
a . (period)
LASTANGLE The end angle of the last arc entered (Read Only)
LENSLENGTH Length of the camera lens in millimeters used in perspective viewing (Read
Only)
LIMMAX Upper right corner of the Limits expressed in World Coordinate system
LUPREC Drawing unit number of decimal places or fractional denominator smallest value
138 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
MENUCTL Controls the page switching of the Screen menu.
0=Screen menu does not switch pages in response to keyboard command entry
1=Screen menu switches pages in response to keyboard command entry
(default)
MODEMACRO Allows you to display a text string in the status line, such as the name of the
current drawing, time/date stamp, or special modes.
OFFSETDIST Sets the default offset distance. If you enter a negative number, it defaults to the
"Through" mode.
139 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
PDMODE Graphic display of points, for example:
0= normal point
1=no display of point
3=point that looks like an X
PERIMETER Perimeter of Pline, circle, arc, etc., as computed by the AREA or LIST
commands (Read Only)
PICKFIRST Controls the method of entity selection so that you can select objects first, and
then use an edit/inquiry command
0=Disables Pickfirst
1=Enables Pickfirst (default)
140 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
PLINEWID Default polyline width. Can be set to 0, which makes polylines plot at pen width.
POLYSIDES Default number of sides for Polygon command. Range is 3 to 1024. Default is 4.
POPUPS 0=display driver does not support dialogue boxes, menu bar, pull-down menus,
and icon menus.
1=display driver supports dialogue boxes, menu bar, pull-down menus, and icon
menus. (Read Only)
PSPROLOG Assigns a name for a Prologue section to be read from the ACAD.PSF file when
using the PSOUT command.
QTEXTMODE 0=Quicktext mode off (line of text appears and plots as readable words)
1=Quicktext mode on (line of text appears and plots as rectangles)
RE-INIT Reinitializes the I/O ports, digitizer, display, plotter, and ACAD.PGP file.
1=digitizer port reinitialization
2=plotter port reinitialization
4=digitizer reinitialization
8=display reinitialization
16=ACAD.PGP file reinitialization
SAVETIME Automatic save interval, in minutes. If you do not want to save the drawing
automatically, set SAVETIME to 0. Drawing is automatically saved to file
AUTO.SV$. If your drawing file becomes corrupt for any reason, you can copy
the file AUTO.SV$ to your filename, and you will have saved your file.
SCREENBOXES The number of boxes in the screen menu area of the graphics area. If screen
menu is disabled, SCREENBOXES=0 (Read Only)
141 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
SCREENMODE Bit code indicating the state of the display
0=text screen is displayed
1=graphics mode is displayed
2=dual screen configuration
(Read Only)
SHADEDIF Ratio of diffuse reflective light to ambient light, in percent of diffuse reflective
light
142 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
4=sort for redraws
8=sort for MSLIDE slide creation
16=sort for regens
32=sort for plotting
64=sort for PostScript operation
96=sort for plotting and PostScript operation (32+64=96) (default)
SURFTAB2 Mesh density in the N direction for the REVSURF and EDGESURF commands.
SYSCODEPAGE System code page specified in the ACAD.XMF file (Read Only)
TARGET Location of the Target Point (where you are looking) (Read Only)
143 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
TDUPDATE Time and Date of last save of drawing (Read Only)
TEMPPREFIX Directory for placement of temporary files (*.AC$ files) (Read Only)
TEXTEVAL 0= all responses to prompts for text strings are taken literally
1= text starting with an opening parenthesis "(" or an
exclamation point "!" is evaluated as an AutoLISP expression
(default)
TEXTSIZE Default height for new text entities, unless the current text style has been given
a fixed text height.
THICKNESS current entity thickness (vertical distance from the bottom of an entity to its top)
TRACEWID Trace entity width (Note that Traces are not used very much anymore -- they
have been functionally replaced by Polylines)
TREEDEPTH A 4-digit (maximum) code that specifies the number of times the tree-structured
spatial index may divide into branches. This code number affects the speed in
which AutoCAD searches the database before completing an action.
UCSFOLLOW 0= change to a new UCS will not change the current view of the
model
1= change to a new UCS will automatically change to a plan
view (X-Y plane) in the new UCS
UCSORG Origin point of the current UCS, in World Coordinate System X,Y, and Z
coordinates (Read Only)
144 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
UNDOCTL Indicates state of UNDO feature
1= UNDO is enabled
2= only one command can be undone
4= Auto-group mode is enabled
8= Undo group is currently active
(Read Only)
UNDOMARKS Number of marks that have been placed in the UNDO control stream by the
UNDOâs command Mark option. (Read Only)
USERS1-5 5 user-created variables for storage and retrieval of text string data
VIEWSIZE Height of view in current viewport in feet and inches (Read Only)
VSMAX The upper-right corner of the current viewportâs virtual screen (Read Only)
VSMIN The lower-left corner of the current viewportâs virtual screen (Read Only)
145 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada
WORLDVIEW 0= when DVIEW or VPOINT commands are used, the
coordinate system is not changed, and DVIEW and VPOINT
command input is relative to the current UCS
1= when DVIEW or VPOINT commands are used, the
coordinate system is automatically changed to the WCS for the
duration of the command (default)
146 AutoCAD FOR ALL AFGHAN ENGINEERS By: Mir Sebghatullah Sahebzada