Unknown's avatar

Posts by mikechristenson

Professor of Architecture, University of Minnesota mike001@umn.edu Architect and Principal/Owner Design and Energy Laboratory, LLC mike@dandelab.com

AutoCAD: Function Keys

In AutoCAD, the function keys (except for F1 and F12) act as switches or toggles. Of all the function keys, F3 (object snap) and F8 (“ortho”) tend to be the most frequently used. The others tend to be used comparatively rarely.

F1 brings up AutoCAD’s Help.

F2 opens and closes the Text window, which is simply an expanded version of the command window. It provides no additional functionality other than the ability to look back at what you just typed.

F3 turns the object snap function on and off.

F4 turns a peripheral drawing tablet (if connected) on and off.

F5 cycles between isometric planes. This function is used for creating isometric drawings. (To experiment with this, type SNAP, change the Style to Isometric, and draw some lines. Use F5 to cycle between planes.) Also see F9.

F6 cycles between coordinate displays, at the bottom left-hand corner of the screen.

F7 turns the drawing grid on and off. To specify the gird extents, type LIMITS. To specify the grid spacing, type GRID.

F8 turns the orthographic lock function on and off.

F9 turns the automatic snap function on and off. When on, AutoCAD snaps to an invisible rectangular or isometric grid, not necessarily the same grid as specified using the GRID command. To specify the snap settings, type SNAP.

F10 turns polar tracking on and off. It also automatically turns F8 (ortho) off. Polar tracking displays angles and distances while drawing.

F11 turns the automatic object snap tracking function on and off.

F12 has no function.

 

AutoCAD: Lineweights

Lineweight is the visual thickness of lines. The use of lineweight is critically important to maintaining good legibility and professional appearance in drawings. See this post for general information on lineweight.

In AutoCAD, lineweight is an object property, meaning that every object in an AutoCAD drawing can be assigned its own lineweight. By default, every object is assigned the ByLayer lineweight, meaning that the object assumes the lineweight assigned to its layer. Like any object property, this can be overridden on an object-by-object basis.

It’s considered good practice to use layers to organize object lineweight, rather than setting object lineweight on a per-object basis. In other words, unless there is a compelling need to do otherwise, always keep AutoCAD object lineweight set to ByLayer.


 


TO CHANGE LINEWEIGHT OR LINETYPE ON A BYLAYER BASIS:

1.     Load a linetype into your drawing. (See above.)

2.     Type LAYER to bring up the Layer Properties Manager palette.

3.     Click on the layer whose properties you wish to change.

4.     Choose the desired linetype or lineweight. All objects in this layer with the BYLAYER property set for linetype or lineweight will inherit these settings.


 

AutoCAD: Selection

Many AutoCAD commands will prompt you to Select objects. The following are acceptable methods of responding to the Select objects prompt. Each time you add an object to the selection set, it is highlighted (i. e. it appears dashed). When you are finished selecting objects using any one or a combination of these methods, press [Enter] to continue the original command.


 

TO SELECT OBJECTS:

Click on objects one-at-a-time.

OR draw a window around the object(s). AutoCAD uses a click-click method to define a selection window, rather than the standard click-drag-release. “Standard” selection windows are drawn from left to right, and select only those objects completely within the window. “Crossing” windows are drawn from right to left, and select all objects within and contacted by the window.

crossing_standard_01

OR type F (for Fence), and draw a selection line (a “fence”). Like a crossing window, a fence selects any objects it touches. This method is useful for making precise selections in restricted areas.

OR type P (for Previous). This selects whatever object or objects were previously selected.

OR type L (for Last). This selects whatever individual object was last selected or created.

OR type U (for Undo). Deselects the last object(s) selected. Use this if you make a mistake while defining a complex selection set.

OR type ALL. Selects everything in the current space.

OR type R (for Remove). Switches the selection mode from “adding” to “removing”. Type A (for Add) to switch back. Use this function while defining a complex selection set.


PRESELECTING OBJECTS:

It is possible to preselect objects before issuing commands. This technique is frequently useful in 3D (three-dimensional) work, but it can be used in 2D as well.

To preselect an object or objects, click [esc] two or three times in succession, and then either click on objects one at a time or window several objects at once. As you preselect more objects, they display highlighted (i. e. dashed) with grips. Grips are like “handles” at object corners and other critical points. You can click on highlighted grips to stretch and move objects.

After an object has been preselected, you can issue any modifying command (such as ERASE, MOVE, COPY, etc.).

To clear preselected objects from the selection set, click [esc] two or three times in succession.

AutoCAD: Commonly Used Commands

AutoCAD is a command-driven software application, meaning that it responds to commands typed after the Command prompt at the bottom of the screen. Commonly used commands (and equivalent keyboard shortcuts) are as follows:


LINE (L): The LINE command draws straight lines between specified points. The command will keep prompting you to enter points until you terminate the command by clicking the esc key (or by clicking Enter without indicating a point).

line_01

Hint: Use the [F8] key to restrict lines to orthogonal directions.

Ribbon: Home > Draw > Line

 


ERASE (E): The ERASE command erases objects. The command will prompt you to select objects.

Ribbon: Home > Modify > Erase


PAN (P): PAN has the same effect as clicking on the scroll bars at the edge of the window, or holding down the center mouse wheel and moving the mouse.

Hint: Every once in a while, AutoCAD will prevent you from panning your view too far in one direction; the screen will “stick”. To get around this, click esc a few times in succession, and then type RE (for Regenerate). This forces AutoCAD to regenerate the drawing display, expanding the area over which you can pan.

Note: To invoke a “legacy” version of the PAN command, type -PAN (hyphen PAN) or -P. This is a useful and more precise variation of the command; it operates analogously to MOVE.

Ribbon: View > Navigate 2D > Pan


ZOOM (Z):  ZOOM works like a magnifying glass; use it to enlarge or reduce the apparent size of the drawing. Note that ZOOM does not change the actual size of the drawing – just its appearance. Typing ZOOM at the command prompt, and then choosing the Realtime option, has the same effect as spinning the mouse wheel.

Hint: As with the PAN command, AutoCAD will occasionally prevent you from zooming your view too far in or out. If this happens, click esc a few times in succession, and then type RE (for Regenerate). Ultimately, there are limits to how far you can zoom in or out (try and find these).

Hint: Typing Z, for Zoom, followed by E, for Extents (that is: Z-enter-E-enter), causes AutoCAD to zoom out to the full extents of your drawing. Z-enter-A-enter has a similar (though not identical) effect.

Ribbon: View > Navigate 2D > Zoom


MOVE (M): The MOVE command moves objects, translating them from one point to another. The command prompts you to select objects, and then it prompts you for a base point. The base point can be any point in the drawing, not necessarily on the objects being moved. The command then asks for a second point (a displacement point). The objects are erased from their original location.

move_01

Ribbon: Home > Modify > Move


COPY (CO): The COPY command differs from ctrl-C in that it includes a “Paste”-like operation. COPY is fundamentally the same as the MOVE command except that the original objects are not erased from their original location. Also, COPY allows you to make multiple copies at one time: to do this, type M after you’ve completed selecting objects.

copy_02

Ribbon: Home > Modify > Copy (different than using ctrl-C to copy)


TRIM (TR): Use the TRIM command to “cut” an object with another object. For example, two non-parallel lines can be used to cut each other. The command will prompt you to select “cutting edges” (you can select as many edges as you want). After you’ve selected edges, the command will prompt you to select the objects to trim. Click on the part of the object you want to have disappear.

trim_01

Hint: When selecting objects, type ALL, or simply press enter at the first prompt to select objects. Then, when selecting objects to trim, every object in the drawing can potentially trim every other object in the drawing.

Hint: Type EDGEMODE at the Command prompt to switch between two different settings (0 or 1): when set to 0, objects must be in contact to trim one another.

Hint: When selecting objects to trim, type F (for Fence). See section 1.4 for more on this.

Hint: When using the TRIM command, hold down the Shift key to change its function to EXTEND.

Ribbon: Home > Modify > Trim


EXTEND (EX): EXTEND is the “reverse” of TRIM. The command prompts you to select “boundary edges” (you can select as many edges as you want). After you’ve selected edges, the command will prompt you to select the objects to extend. Click on the part of the object you want to extend.

extend_01

Hint: When using the EXTEND command, hold down the Shift key to change its function to TRIM.

Ribbon: Home > Modify > Extend


FILLET (F): The FILLET command can be differently understood as a combination of the functions of EXTEND and TRIM, and/or as a means of providing rounded connections between lines. The command always operates on two independent objects. Its operation is constrained by its radius setting. (To change the fillet radius, type FILLET, and then type R for radius.)

fillet_01

Ribbon: Home > Modify > Fillet


CIRCLE (C): CIRCLE draws circles by one of several methods, e. g. the default center-radius method.

circle_01

Hint: Sometimes, AutoCAD will temporarily display circles as polygons (octagons are common substitutes). This is a time-saving device built into the program. To display the circles correctly, type RE (for Regenerate).

Ribbon: Home > Draw > Circle


ARC (A): ARC draws arcs by one of several methods. When using the center-start-end method, note that arcs are drawn counterclockwise.

Hint: Sometimes, AutoCAD will display arcs as line segments. To display the arcs correctly, type RE (for Regenerate).
Ribbon: Home > Draw > Arc


OFFSET (O): OFFSET is used to create parallel lines and concentric curves. It operates on one object at a time. The general procedure is: type OFFSET; click on the object; specify a distance; finally, click off to one side of the object (e. g. left side or right side, top or bottom).

offset_01

Ribbon: Home > Modify > Offset


TEXT (DT) and MTEXT (T). The TEXT and MTEXT commands are used to add text to drawings. TEXT adds text one line at a time; MTEXT operates more like a word processor, with greater control over editing. Both commands are subject to the settings in the STYLE command: use STYLE to set basic attributes for fonts.

Important: When you use the STYLE command to define a New Style, it’s usually a good idea to define the style to have a text height of 0. This ensures that AutoCAD will prompt you to enter a text height every time you try to add TEXT or MTEXT.

Ribbon (TEXT): Annotate > Single Line Text
Ribbon (MTEXT): Annotate > Multiline Text


MIRROR (MI): MIRROR is used to create a “reflection” of existing objects around a line. Define this line with any two points in the drawing.

Ribbon: Home > Modify > Mirror


ROTATE (RO): ROTATE will rotate any selection set of objects around a fixed point. Note that AutoCAD measures degrees counterclockwise, with “0 degrees” corresponding to a “3 o’clock” position.

Ribbon: Home > Modify > Rotate


SCALE (SC): Use SCALE to enlarge or reduce any selection set of objects by a specified scale factor with reference to a fixed point.

Ribbon: Home > Modify > Scale


BLOCK (B): Creates a “block” (collection of objects with an insertion point).

Ribbon: Home > Block > Create


EXPLODE (X): Explodes blocks into their constituent parts.

Ribbon: Home > Modify > Explode


3D-ORBIT (3DO): Rotates the view in 3D space.

Ribbon: View > Navigate > Orbit


 

What is AutoCAD?

AutoCAD is a commonly used vector drawing application. Vectors include lines, arcs, and other geometry.

AutoCAD is a command-driven software application, meaning that it responds to commands (like LINE and ERASE) typed after the Command prompt at the bottom of the screen. AutoCAD has a ribbon, tabs, panels, and toolbars, but these are just alternative means of issuing typed commands. Since most of the commands have one- or two-letter shortcuts (L for LINE, E for ERASE, etc.), it’s usually much faster to type commands than to use the ribbon or toolbars.

AutoCAD has a long history in the architecture and design professions and continues to be used extensively for 2D (drafting) and 3D (modeling) work.

Its native .dwg file format can be read by most contemporary CAD applications (including Rhino, Revit, and SketchUp).

See:

forums.augi.com/forumdisplay.php?176-AutoCAD for a forum discussion.

Step-by-Step: A Simple Grasshopper Definition

Creating Grasshopper definitions is rarely a straightforward, linear process. It usually involves having a general idea of what one wants to accomplish, and a sense of which components will be necessary; however, the process almost always involves extensive testing, false starts, discoveries, and iterations along the way.

As an example, consider creating a Grasshopper definition which can create elliptical towers:

elliptical

One way of creating this definition is shown in the following step-by-step procedure.


1. Start Rhino; type GRASSHOPPER to start Grasshopper.


2. Double-click in the Grasshopper canvas to search for and insert the Ellipse component (or Curve > Primitive > Ellipse).

ellipse_01

Notice that when the component is placed on the Grasshopper canvas, it is automatically previewed in Rhino, on the basis of its default values:

ellipse_02

To see the component’s default values, hover the mouse over the input labels (P, R1, and R2). P, the base plane, is by default the XY plane and is previewed as a red grid in Rhino. R1 and R2, the ellipse’s two radii, are be default both set to one (1.0). Their result is previewed as a red circle in Rhino.

However, we want the component to produce variable-sized ellipses. Therefore, we need to introduce variable input in the form of number sliders.


3. Double-click in the Grasshopper canvas to search for and insert the Number slider component (or Params > Input > Number Slider).

ellipse_03

 


4. Double-click on the label of the number slider (“Slider”) to adjust its values as shown below:

ellipse_04

This will allow the slider to generate values between 0 and 50, with a precision rounded to three decimal points. Its initial value is set to 10, but that value is variable.


5. Copy and paste the first slider to create another slider. Double-click on this slider and change its name to Radius 2.

ellipse_05


6. Connect the two sliders to the Ellipse component by dragging wires between them. Begin by clicking on the slider output node, hold down the mouse button, and release it on the input node of the Ellipse component.

ellipse_06

Notice how this affects the Rhino preview:

ellipse_07

The ellipse is now shown with radii of 10 units. Adjust the number sliders to see how the preview is affected.


7. Having created a base ellipse of variable size, we now need to begin stacking multiple copies of the ellipse. We’ll do this by copying the ellipse vertically. Grasshopper does not have a Copy component; instead, we use the Move component — with the knowledge that the original ellipse will still preview in its original location.

Double-click in the Grasshopper canvas to search for and insert the Move component (or Transform > Euclidean > Move):

ellipse_08

The Move component requires two forms of input, which you can see by hovering the mouse over the input labels (G and T). Input G (Geometry) requires a drawn or modeled object — such as an ellipse. Input T (Motion, or Translate) requires a direction/magnitude in the form of a vector. Notice that by default, input T is set to a vector 10 units long in the Z-direction (0.0,0.0,10.0).


8. Connect the E output on the Ellipse component to the G input on the Move component:

ellipse_09

Notice how this affects the Rhino preview:

ellipse_10

A new ellipse is previewed 10 units vertically above the original ellipse.

However, we need multiple ellipses, placed at a variable distance (i. e., floor-to-floor height) above the original ellipse. We will need to do something different for the T input on the Move component. Specifically, we will need to provide to this component as input a list of numbers corresponding to the vertical positions of the floors.


9. Double-click in the Grasshopper canvas to search for and insert the Series component (or Sets > Sequence > Series):

ellipse_11

The Series component generates a list of numbers according to input parameters. Hover the mouse over the input labels (S, N, and C) to find out what is required for input.

The S input requires a single number, the start of the list. Assuming we want the first floor of our tower to be on the XY plane, S can be set to 0 (zero). The simplest way to do this is to right-click on the S label and choose Set Number from the dropdown menu. (Note that by default, S is already set to zero.)

The N input refers to the step size — the floor-to-floor height. And the C input refers to the count of items in the list — simply, the number of floors in the tower. Both N and C can be controlled with number sliders.


10. Insert two number sliders with the following values (note that Number of Floors is set to Integer rounding):

ellipse_12

And then connect the sliders to the Series component as shown below:

ellipse_13


11. Hover the mouse over the S output on the Series component. You should see the list of numbers generated in accordance with the input values. Now, it would seem that we could simply connect the S output from Series to the T input on Move — but if we do this, Grasshopper will generate an error message at the Move component:

ellipse_14

The problem is that the Move component expects vectors as input at T; we have given a list of numbers, not vectors. To fix this, we need to insert a Unit Vector component between the Series and Move components.


12. Double-click in the Grasshopper canvas to search for and insert the Unit Z component (or Vector > Vector > Unit Z):

ellipse_15


13. Reconnect wires as shown below (note: you can manually disconnect wires by right-clicking on input or output nodes and selecting Disconnect):

ellipse_16

Once again, notice how this affects the Rhino preview:

ellipse_17

Adjust all four number sliders to see the effect on the Rhino preview.


14. That completes the basic definition. Additional steps might include:

Extruding the floors to a specified or variable thickness (as shown in the image at the beginning of this post);

Varying the elliptical radii along the height of the tower;

Constructing a “skin” on the tower.

 

Grasshopper: Components

Grasshopper components are the building-blocks of Grasshopper definitions.

When a component is initially placed on the Grasshopper canvas, it usually looks something like this:

02

A component’s color indicates information about its behavior. An orange component indicates that the component needs input before it can perform an action. In the example shown above, the BoxRec component (which constructs a rectangular box) needs input in the form of a rectangular base and a height. A red component has generated an error. A white/gray component is functioning normally.

Many (not all) of the Grasshopper components equate to Rhino modeling commands. A good working familiarity with Rhino is necessary to fully understand Grasshopper components. Several Grasshopper components (such as “number sliders”) do not have Rhino equivalents but are used to control or modify parameters within a definition.

Almost all components have input and output nodes. Input nodes (on the left side of a component) are used to supply the component with input — such as a number, or a list, or a Rhino object. Input can be provided with a wire from another component, or in some cases, by right-clicking on the input node, or on the component itself, to set a value. Output nodes (on the right side of a component) are used to send information to other components.

Panels are a special kind of component, which look like this when initially placed:

03

A panel is generally used in one of three ways. First, it can simply be used as an annotation or note on the canvas, with no wires connecting it to anything else. Or, if its contents are appropriately edited, it can be used to supply input (such as a single number) to a component. Finally, if its input node is connected to another component’s output node, it simply displays in textual form whatever information the previous component is generating. In this case, the panel simply acts as a flow-through with no effect on the data displayed.


TO PLACE A COMPONENT ON THE CANVAS:

Do either of the following:

1. Double-click in a blank space on the canvas to bring up a search box. Type a few letters of the component you wish to place, and choose from the resulting menu. (For example, typing BOX will bring up a menu including BoxRec.)

Or:

2. Navigate to the component using the tabs across the top of the Grasshopper window (“Params”, “Maths”, “Sets”, etc.). After locating the component, drag it into the canvas.


TO CONNECT COMPONENTS USING WIRES:

Use the mouse to drag from a node on one component to a node on another component.

Note that some (not all) components allow multiple wires. Hold down [shift] to enable multiple connections from a single node.


TO DISCONNECT A WIRE:

Right-click the component near the node you wish to disconnect. Choose Disconnect from the dropdown menu.


TO MOVE A COMPONENT OR A GROUP OF COMPONENTS:

Select components singly or in a group by dragging a window around them. Move them by dragging them, once selected. Connecting wires will stay connected during moves.


TO PREVIEW THE EFFECT OF A COMPONENT IN RHINO:

By default, the effect (if any) of a component is previewed in the Rhino modeling environment using the color red. To disable the Rhino preview of a component or a group of components, select the component(s), click the space bar, and click on the “masked head” icon. To re-enable preview, repeat this action, except click on the “unmasked head” icon.

Grasshopper: Definitions

A Grasshopper definition consists of a series of components connected by wires. This image shows a typical definition with components and wires:

 

01

Grasshopper definitions are always read from left to right.

Definitions always have a mechanism for input. Input can be in the form of Rhino objects, or it can be in the form of numbers. In the example shown above, input is provided by adjusting the three number sliders.

Reading from left to right, input feeds into components along wires. Components typically perform some action, which could involve performing calculations or constructing objects in Rhino. In the example shown above, the Rectangle component creates a rectangle in the Rhino modeling environment, using as input the “X Size” and “Y Size” numbers set by the number sliders. Similarly, the BoxRec component creates a rectangular box in Rhino, using as input the rectangle constructed by Rectangle, and the “Height” number set by the number slider.

Thus, Grasshopper definitions have output which is typically in the form of potential Rhino objects. These potential Rhino objects become actual Rhino objects only when Grasshopper’s Bake command is applied within the definition. To Bake a definition, right-click on a component’s output node (on its right side), and select Bake.

What is Grasshopper?

GRASSHOPPER is a visual programming editor which runs within Rhino3D. It is designed to automate and customize many of the modeling functions available within Rhino.

See:

www.grasshopper3d.com for resources and links.

www.rhino3d.com/download/grasshopper/1.0/wip to download the latest version of Grasshopper.

www.grasshopper3d.com/forum/categories/discussion-1/listForCategory for a discussion forum.