[Search tip detail and code files using keywords, tip number, author name, etc ]
 
I Wish Everything Were Flat!
Tip# 3903 By Danny Korem On 04-Jun-2012
0
Rated By 0 users
Categories : Polylines
Software type : AutoCAD 2013
Rename File To : No Files to download.
Draw polylines at an elevation of zero units.

Frequent tipster Danny Korem provides a method of drawing a polyline in AutoCAD by snapping to objects that have elevation, but keeping the polyline's elevation at zero.

"While designing, architects cross-reference surveyors' maps and layouts. Mostly these CAD files are products created by sophisticated equipment and all of the points have z values; contour lines have their respective elevation values, and so on.

"While 2D drafting, we would typically like to get rid of the 3D data. We can deal with objects and change their properties, but should we? It's the essence of x-referencing not to intervene in your design team’s data. And what about 3D data we can't deal with? (For instance, changing the z insertion point of a block won't necessarily alter the z values within it.)

"I opted for a shorter and simpler procedure. I used the CUI (Customize User Interface) command to create the following new command:

^C^C(command "pline" ".xy" (getpoint) "0")

For practical reasons I used the Polyline (Pline) command, since the elevation is set by the first point you pick while object snapping to a point. I use the .xy filter of the point osnapped and use 0 as the z value. That way, no matter what the z value is, the pline's elevation will be kept to 0'. Finally, after assigning it a proper icon, I dragged the command to the quick-access toolbar. Though plines became very flexible (hot grip add vertex and mid-grip turn to arc), one can still explode the polyline into lines and arcs but all of them have start, end, and center z points with value=0."

Notes from Cadalyst Tip Reviewer Brian Benton: This works, and it is very useful. The macro in the new command forces your polyline to be drawn at an elevation of zero units.

In the past, I would trace over the objects with a Z value and use the Flatten command. From time to time, however, there would be side effects that left my new linework unusable, or at least made it frustrating to use.

 

Average Rating:
0


User comments
Comment by Stewart,Bob
Posted on 2012-06-04 15:16:11
How about turning on the "Replace Z value with current elevation" on the Drafting tab in Options?
Comment by Azbell,Nicholas
Posted on 2012-06-05 13:07:26
Yep, but then you have to make sure your Elevation is actually at 0.
Comment by Antonov,Nikolay
Posted on 2013-10-22 03:13:18
I use Variable : OSNAPZ when 0 it snaps to Z elevations of the objects, When 1 the current elevation os (z-(z) value of the new lines polylines.etc) is 0.000 I created myself toolbar with 2 buttons that toggle between ^C^COSNAPZ 0 and ^C^COSNAPZ 1 See attachments CUIX with the macros toolbar ..


Log In