AutoCAD R14 Bonus Tools, Part 31 Jun, 1998 By: Lynn Allen
Were about halfway through our exploration of the awesome Bonus tools included in AutoCAD R14. I hope youve spent some time trying them out for yourself. If youre just joining us and dont have the Bonus tools in your R14, you can install them without reinstalling AutoCAD. Please refer to the April issue to help you (Circles and Lines," April 1998).
Remember the disclaimer I threw out last time? These routines havent been through the extensive testing that AutoCAD has been through (no comments please), so youre apt to run into an occasional bug. Bugs are a drag, but there is a plus side to a bugit does take away from the monotony of the drawing day!
Continuing on our path down the Bonus pulldown menus takes us to the Modify Cascading menu. Most of the commands in this menu can be found in the Standard Bonus Toolbar.
Extended Change Properties
This command extends the DDCHPROP command to text and polyline objects. Text objects characteristics, such as the style and height, can be modified. This nice feature includes text, mtext and attribute definitions! The width and elevation of polylines can also be changed with the EXCHPROP command. This command works on the new lightweight polylines found in R14 as well as the traditional polylines of the past. Figure 1 shows the EXCHPROP dialog box.
The standard STRETCH command permits you to use one and only one crossing window or polygon to stretch objects. Though you are allowed to select many, only the final selected window will really apply. The MSTRETCH command can be used when youd like to stretch many objects using more than one crossing window or crossing polygon (or combinations thereof).
It behaves a little differently than the STRETCH command. For one thing, the second pick point will show a solid pick rectangle no matter what direction you moveright or left of the first point. This mode contrasts the normal selection mode, where going to the left of the first point will define a crossing box and going to the right will define a window box. After the second pick point of each selection, rectangles with dashed lines indicate which vertices will be selected, as shown in Figure 2. I like the nice Remove Objects option thats included so you can easily remove objects from the selection set.
Move Copy Rotate and Scale
You dont have to be a rocket scientist to recognize the advantages of a command such as this one. If youve ever wanted to Move or Copy and Rotate or Scale the same objects, you understand the benefits of this command. Im a grip-a-holic, so I tend to use grips for such activities. But Im keenly aware that there are many of you who despise those cute, adorable blue boxes; youll be delighted with this bonus command. Incidentally, this routine is an ARX application (AutoCAD Runtime Extension). Draw an object on your screen and follow along with me:
- Select objects: Use an object selection method to select the desired object(s).
- Base point: Specify a base point just as you normally would.
- Move/Copy/Rotate/Scale/Base pt/Undo/<eXit>: Specify the option youd like to try.
I noticed a couple of interesting things about this command. A nice green indicator displays on the screen where the current base point is. It looks like a cross between an asterisk and a plus sign. Youll also find that the base point seems to move with the copied object rather than the original object (unlike the standard COPY command). If you want to Rotate or Scale and Copy simultaneously, youll have to resort back to using Grips. The MOCORO command forces you to select the operations independently of each other. Youll note in the options that you can change the base point at any time as well; however, theres no way to change the active object.
For example, lets say you have a square and you use the MOCORO command to make five copies of the square. The active object is now the last square you copied. If youd like to rotate the third square created, you need to leave the MOCORO command and reenter selecting the third square as the active object. Make sense?
Cookie Cutter Trim
Imagine trimming by selecting one object as the boundary edge and simply indicating which side of the object youd like the crossing objects to trim, and you have the new EXTRIM function. Not only that, but the object you select as the boundary edge can be a polyline, line, circle, arc or an ellipse. WOW! No more of that tedious one-at-a-time selecting. Lets give it a whirl. (Note: youll notice the command structure is a little odd in that it re-interjects the command prompt halfway through the command.)
- Command: EXTRIM
- Pick a polyline, line, circle, or arc for cutting edge...
- Select objects: 1 found
- Pick the side to trim on: select the side you want the objects trimmed from.
Its that simple! I noticed a couple of idiosyncrasies with this function. When I selected inside of a text string or mtext as the side to be trimmed, it told me it couldnt trim that object, then proceeded to do it anyway. I also liked seeing the text bounding box in the EXTRIM commandsomthing that the standard TRIM command doesnt have.
Clips Xrefs or Images Using Lines or Curves
Standard clipping in R14 permits clipping of external references and raster images using a polygonal area. This Bonus routine takes clipping one step further. The CLIPIT command allows you to use polylines, circles or arcs as clipping boundaries. You can use the function on blocks, external references or raster images. Lets look at the command sequence.
- Pick a polyline, circle or arc for clipping edge...
- Select objects: 1 foundCommand:
- Pick an image, a wipeout, or an xref/block to clip...
- Select objects: 1 found
- Max allowable error distance for resolution of arc segments <0.0100>:
- Specify clipping boundary:
It seems that this command needs a little more ironing out. I suspect the VIP bonus tools have cleaned this function up a little since it was first introduced. Youll notice the interjection of the command prompt again. I also found that I could only pick one object to be trimmed. Hence, if I wanted to trim several external references, I would have to enter the command several times. It wouldnt let me create a window, and keying in the word ALL didnt get me anywhere when I was asked to select the objects to clip.
I loved the Max allowable error distance for resolution of arc segments promptjust exactly what does that mean? Apparently, this function just approximates curves, and this question relates to the accuracy you want to force in the approximation segments. Supposedly, the higher the value, the faster AutoCAD will generate the result, but then youll suffer some loss in accuracy. I just leave this value alone, and Im still able to lead a happy life.
Edits Multiple Polylines
Weve all wanted to edit many noncontiguous polylines at once and found the standard PEDIT command to be deficient. I especially find this frustrating when Id like to change the width of several separate polylines at once and have to reenter the PEDIT command over and over. This new command makes it easy to make changes to many different polylines in one simple command. It will even change plain old lines and arcs into polylines if you request.
Lets take a look:
- Command: MPEDIT
- Select objects: Other corner: 3 found
- Select objects:
- Convert Lines and Arcs to polylines? <Yes>:
- Open/Close/Width/Fit/Spline/ Decurve/Ltype gen/eXit <X>: w
- Enter new width for all segments: 10
- Open/Close/Width/Fit/Spline/ Decurve/Ltype gen/eXit <X>:
I found that even if I didnt include any lines or arcs in my selection set, the command asked me anyway if Id like to convert them to polylines. The options should be familiar to you since theyre the same options found in the PEDIT command (with the exception of the Edit Vertex option, which is not in MPEDIT).
This AutoLISP routine was written years ago and still remains a valuable tool. When you explode a block, it insists on returning to the layer, color and linetypes it was initially saved with, which can be unfortunate when youve gone to the trouble of assigning it to the appropriate layer. Putting it back on the proper layer can be quite a chore as well. XPLODE to the rescue! With XPLODE, you have complete control over what goes where in your exploded blocks (dimensions, too!).
- Command line: xplode
- Select objects to Xplode.
- Select objects:
- All/Color/LAyer/LType/Inherit from parent block/<Explode>:
Choosing the default uses the standard EXPLODE command. Inherit from parent block will use the existing settings for the exploded block. If you pick several blocks to XPLODE, you can edit them individually or globally.
Copies Nested Objects
This nifty tool is used to copy objects of a nested external reference or block. The AutoLISP routine behind this command has a completely different name: trexblk.lsp (should you care to take a look at the code). Its pretty simple; you select the nested object youre interested in copying, a base point and the destination point. You can also copy the nested object multiple times.
- Command: NCOPY
- Select nested objects to copy:
- <Base point or displacement>/ Multiple:
- Second point of displacement:
No surprises here.
BTRIM and BEXTEND:
Trimming and Extending with Blocks and External References
The final two commands well be addressing this month permit you to TRIM or EXTEND to a block or xref. The standard Extend and Trim commands dont permit you to use these objects as cutting or boundary edges. Lets look at the syntax:
- Command: BTRIM
- Select cutting edges:
- <Select object to trim>/Project/ Edge/Undo:
This code is identical to the TRIM and EXTEND commands were familiar with. Note: neither of these commands works with MINSERTS (do any of you still use that command?).
Next month, Ill look at the remaining bonus routines. Be adventurous and try a couple of these out for sizeIm sure youll find some bonus trinkets you wont know how you survived without! Until next month.
In her easy-to-follow, friendly style, long-time Cadalyst contributing editor and Autodesk Technical Evangelist Lynn Allen guides you through a new feature or time-saving trick in every episode of her popular AutoCAD video tips. Subscribe to the free Cadalyst Video Picks newsletter and we'll notify you every time a new video tip is published. All exclusively from Cadalyst!