Autocad lt flatten

Autocad lt flatten DEFAULT

AutoCAD – Flatten or remove Z values

An issue that is sometimes found in AutoCAD 2D drawings is the dreaded Z values.

This is because normal AutoCAD is mostly used in 2D,

This means that only the XY plain is being used and any Z value that creeps in,

Could cause us problems.

 

The image below looks ok until you change the view to a side view,

You do this by selecting one of the faces on the view cube or cardinal points around it.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Now we can see that the drawing that looked nice and flat has several different Z heights.

If we where to draw lines between certain points, we may end up with lines drastically longer than they appear from the top view.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A quick option to fix this mess,

Is to switch back to the Top view, looking onto the XY Plane,

This is critical that you are looking directly down on the XY Plane,

If you are looking at it at a different angle,

The view will be projected skew.

Use the FLATTEN command.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Once started,

Select all the lines/objects that you need to flatten,

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

When you are done with the selection and hit enter,

The prompt for Removehiddenlines will pop up.

As you may guess this will try to remove hidden lines and objects though this only really works in certain situations.

Type Y or N and hit enter.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The objects should now be flattened,

To check this, flip your view to the side by selecting a face on the view cube or orbiting around.

Sours: https://www.mgfx.co.za/blog/engineering-manufacturing-design/autocad-flatten-or-remove-z-values/

How to: Fix Drawing That’s Accidentally Has Z value

This is a classic issue with AutoCAD drawing: Sometimes you accidentally draw with elevation in your 2D drawing. The probable cause is because you snap to an existing object with elevation. But we never know, why the objects have Z value in the first place anyway.

If you rotate the drawing and see it from an elevation view, you will see the objects has elevations. This is a 2D drawing, so it’s not supposed to look like this.

There is a suggestion to use FLATTEN command to fix it. But it never works well for this issue.

Before you continue, create a backup of your drawing!

Using AutoLISP program

My recommended tool for this problem is by using ALLFLAT by Lee Mac. You can find the code in CADtutor forum here. If you are not familiar with using AutoLISP program,

If you are not familiar with using AutoLISP program, read how you can save the code and use it here. Lee Mac has many useful LISP program. This program is very simple and works very quickly.

However, because this program is very simple and not developed further, there are some minor issues with rotated blocks and hatches. If you want to try another solution, try SUPERFLATTEN by Joe Burke. The problem with SUPERFLATTEN is it doesn’t work with dimensions and OLE object.

Dimensions are a bit tricky because they don’t have elevation. If you use Associative Dimension, then you will be okay. The dimension will follow the objects. The problem is when the dimension is not associated with any object.

You may want to try them both and see which one works well for you.

Manually Fix the Drawing

If you use AutoCAD LT or AutoLISP doesn’t work for your drawing, you can try to fix it manually. It’s not difficult but takes some time.

Select all objects. Or you can select only objects that have elevations from elevation view. For a very complex drawing, you may want to do this gradually. Selecting all objects at once can make your computer slow or crash.

We need to change the Z value for our objects to 0 (zero). Open Properties Palette.

Because we select multiple types of objects, we will not see the Z or elevation properties here.

Click the object drop-down list. Select an object type, except for dimensions and hatches. We can ignore them because they don’t have elevation.

The elevation field is named differently. For example, blocks elevation is defined by Position Z. Change the Position Z value to 0.

Repeat the procedure for other object types.

Here are several fields that control the elevation.

  1. Lines elevation are defined by Start Z and End Z
  2. Polylines elevation are defined by Elevation
  3. Arc, Circle, and Ellipse elevation are defined by Center Z
  4. etc.

The real challenge is when you have blocks with the objects inside it have different Z value. You will need to open each block in block editor and change the Z value using the procedure above.

I know this can be a tedious task. But if you need to continue working on this drawing, I suggest you fix it. The problem won’t just go away; it would be harder to work with it when it gets more complicated!

Preventing this Issue

If you only with 2D drawing, it is a good idea to set Object Snap to ignore Z value. It will not fix existing drawing, but at least you will not having a bigger problem.

You can set it in AutoCAD options, Drafting Tab. Check Replace Z value with current elevation.

If you prefer to change System Variable from the command line, it is saved in OSNAPZ variable.

It’s a good idea to add this variable in System Variable Monitor, so when the variable changed you will know it immediately. Yes, sometimes the variables are changed in a mysterious way.

If you are adventurous, you can add the default System Variable in acad.lsp or acaddoc.lsp. It will make sure the variable is set when you start AutoCAD.

About Edwin Prakoso

I work as a Sr. Technical Consultant in Tech Data Advanced Solutions Indonesia. I've been using AutoCAD since R14 and Revit since Revit Building 9. I occasionally write for AUGIWorld magazine and also active in Autodesk discussion forum.
I'm an Autodesk Certified Professional (ACP) for Revit Architecture and AutoCAD. I'm also a member of Autodesk Expert Elite, appreciation for individuals who give contribution to Autodesk community.
Connect with me on twitter or LinkedIn

Filed Under: AutoCADTagged With: autocad tips

Sours: https://www.cad-notes.com/fix-autocad-drawing-thats-accidentally-has-z-value/
  1. Baltimore weather today
  2. Massachusetts trooper shot
  3. Veritas rods discontinued
  4. Tiny paws rescue

AutoCAD

Solution:

To flatten a drawing automatically in AutoCAD:

Use the FLATTENcommand to change the Z values of all lines, arcs, and polylines to 0.
  1. Turn off or freeze any hatch layers with hatch patterns so they are not included in the selection.
  2. Type FLATTEN at the command line.
  3. Select all objects and press the Enter key.
  4. Type N for No when prompted to remove hidden lines.
  • FLATTEN requires Express Tools to be loaded.
  • Although it is possible to select and flatten everything in a drawing all at once, it might be necessary to use the QSELECT command to select each group of object types and then run the FLATTEN command on them.
For 3D objects, use the FLATSHOT or SOLPROF command to create 2D views.
  • Replace the Z value For 3D objects in layout viewports.
    1. Enter  OPTIONS in the command line.
    2. On the Drafting tab > Object snap options, check Replace Z value with current elevation.
User-added image


To flatten a drawing manually or in AutoCAD LT:

  1. Open the Properties Palette in AutoCAD.
  2. Use Quick Select or the QSELECT command to select objects by type (see Use Quick Select to select objects in your AutoCAD drawing).
  3. In the Properties Palette, find the values for Start Z, End Z and Center Z (for certain shapes), change to any whole number other than 0 (Zero) for each. 
  4. Do the same except change the value of each to 0 (Zero). (This fixes any values that are more than 8 decimal places and not visible in the Properties Palette). 
    Note: To use this method with certain objects such as blocks and groups, they must first be exploded.


Alternative to change the Z value of objects to zero:

Use the CHANGE command:
  1. Type in the CHANGE command.
  2. Type ALL to select all objects and then Enter.
  3. Type P for Properties.
  4. Type E for Elevation.
  5. Type 0 and then a final Enter to end the command.
Note: This will not work on complex objects such as 3D objects.


To flatten a drawing using LISPs, macros, and scripts:

One or both of the following LISP routines, pasted into the command line in AutoCAD, will flatten a drawing.
  • This command changes the elevation of all objects to zero:
(command "_change""_all""""p""e""0""")
  • This command moves objects very high and then back down to zero:
(command "_move""_all""""""0,0,1e99""_move""_all""""""0,0,-1e99") Macros may be assigned to CUI buttons AutoCAD and AutoCAD LT.
  • To flatten selected objects:
^C^C_UCS;;_select;\_move;_p;;0,0,1e99;;_move;_p;;0,0,-1e99;;
  • To flatten the entire drawing:
^C^C_UCS;;_move;_all;;0,0,1e99;;_move;_all;;0,0,-1e99;; The ZIP file attached to this article is a script file that can be run in AutoCAD and AutoCAD LT. It will remove the elevation of all objects in the drawing.

How to use the SCRIPT (Command)

  1. Launch AutoCAD LT
  2. Open any working drawing
  3. At the command prompt type Script
  4. In the 'Select script file' dialog browse to and select the saved script file
  5. Select 'Open'
  6. The script will run through the commands.
  7. Save the drawing.

To flatten a drawing via PDF or DXB export:

Do the following:
  1. Plot a PDF or DXB file.
  2. Import this file into a new or existing drawing with PDFIMPORT. The geometry will be flattened.
  • To create a DXB file, a DXB PC3 printer must first be created using the Add-A-Plotter Wizard. Enter the PLOTTERMANAGER command to open the folder that contains the wizard.
  • AutoCAD 2017 and above have the PDFIMPORT command.
  • The DXB plotter converts all color data to black and white and places all drawing geometry on layer 0.
  • A PDF will retain color and layers as long as a color plot style is selected and the PDF layers options is selected when creating the PDF.

If objects are far from the origin (0,0,0), move objects closer to the origin.

Products:

AutoCAD for Mac; AutoCAD LT for Mac; AutoCAD; AutoCAD LT;
Sours: https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/how-to-flatten-a-drawing-in-autocad.html
How To Flatten Autocad Drawing

Select objects with the QSELECT command.

  1. Type in the QSELECT command.
  2. Select the object type.
  3. Choose the Elevation (or Start Z or End Z), and then Not Equal To > 0 (zero).
  4. In the Properties palette, change Elevation (or Start Z or End Z) to 0 (zero).

Click to see full answer


Correspondingly, how do I change the elevation of a line in AutoCAD?

Click Modify tab Edit Elevations panel Quick Elevation Edit Find. Enter Reference. Select the reference point to use.

To quickly edit feature line elevation points by selecting a reference point

  1. Enter a grade.
  2. Enter Slope and then enter a slope.
  3. Enter Difference and then enter the elevational difference.

One may also ask, how do you flatten a command in AutoCAD? Tool Set: Drafting tab > Modify panel > Flatten Objects. Menu: Modify > Flatten Objects. FLATTEN creates a 2D representation of selected objects and projects them onto the current viewing plane. FLATTEN results in 2D objects that retain their original layers, linetypes, colors and object types where possible.

Likewise, how do you make all lines coplanar in AutoCAD?

Select all of the lines to be modified. Right-click and select Properties. Set Start Z and End Z to 0 (zero) or another consistent value.

How do I edit lines in AutoCAD?

On the ribbon, click Home tab P&ID panel Sline Edit. In the drawing area, click a schematic line and in the Schematic Line Edit list, click Link. Click the line segment to which you want the line linked. At the warning prompt, press the Down arrow to select Yes and link the line.

Sours: https://findanyanswer.com/how-do-i-move-all-lines-to-zero-elevation-in-autocad

Lt flatten autocad

Aside from being rather absent from the blogosphere, I have found myself using AutoCAD for Mac more and more lately. In fact, my company and I are preparing to host an AutoCAD for Mac training class in the next month. While the gap between the Mac and Windows releases of AutoCAD 2011 left me wishing for more, the 2012, and especially the new 2013 release dramatically narrow the gap between the two platforms.

No matter how small the gap between platforms, a missing tool is a missing tool. Since AutoCAD for Mac was a complete rewrite, and the Express Tools team has long been dissolved, it only makes sense Autodesk chose not to port Express Tools to the Mac platform. Regardless of the incredibly logical reasons behind the decision, it still doesn’t supersede the frustration of a missing tool.

I came across that very situation as I opened a drawing that was sent to me, and had linework drawn at many elevations. Express Tool users know the perfect solution to this problem is the FLATTEN command. Trouble is, AutoCAD for Mac doesn’t have the FLATTEN command since its part of the Express Tools bundle.

My solution?

Create a Custom Macro

Booting Parallels to open the Windows version would have been too easy. Instead, my solution was to create a custom macro. I was able to very easily do this by:

Recreating the FLATTEN Command in AutoCAD for Mac CustomMacro
  1. Inside AutoCAD for Mac, open Tools > Customize > Interface (CUI).
  2. From the Customize dialog, click the [+] button to create a new command.
  3. Within the Properties section of the Customize dialog; give your tool a name (i.e. Flatten), and an optional description.
  4. Copy the following into the Macro portion of the Customize dialog:
    ^C^C_SELECT;_MOVE;0,0,0;0,0,1e99;_MOVE;P;;0,0,0;0,0,–1e99;
  5. Choose an icon for your new macro. Here’s the FLATTEN tool icon from the Windows version of AutoCAD.
    Recreating the FLATTEN Command in AutoCAD for Mac flatten

What the above macro does is moves the objects you select above the maximum range for AutoCAD which results in those objects being placed at the maximum height of 1e99. Now that all of the selected objects share a common elevation, we can move them down –1e99, and the final elevation will be 0. Put another way, the functionality of the FLATTEN command has been emulated through a Macro.

Adding to a Tool Set

Adding access to your newly created Macro is just a matter of adding it to a new or existing Tool Set. To do this:

Recreating the FLATTEN Command in AutoCAD for Mac MacroToolSet
  1. Expand an existing Tool Set contained within the right-hand panel, or click the [+] button to create a new one.
  2. Locate your newly created macro within the left-hand panel.
  3. Drag-and-drop your macro into your Tool Set.
  4. Click OK to close the Customize dialog, and begin using your new Flatten macro.

Like this:

LikeLoading...

Categories AutoCAD for Mac, AutoCAD for Mac 2013Tags FLATTEN, MacroSours: https://thecadgeek.com/blog/mac-flatten-command/
Flatten a drawing in AutoCAD and AutoCAD LT - Tips \u0026 tricks - Ep 07

Have you ever wondered how to flatten AutoCAD drawings?

Even though you may be working in 2D, AutoCAD is a 3D application with an X, Y and Z axis. Sometimes you may unwittingly place something with a Z value (Height) and from a 2D top down view your drawing may look fine but it isn’t.

Even though AutoCAD LT supports 3D, you can’t work in 3D in AutoCAD LT but objects can still have a Z value, especially if you have been sent a drawing created in full AutoCAD.

AutoCAD Drawing with Z Axis Value

Figure 1: Front view of seemingly 2D drawing

So how can I check if I have anything with a Z value?

You have two options to check if you have anything that has a Z value:

  1. In full AutoCAD you can eyeball it. Using the view Cube select the front view, if you see anything above the rest of your drawing, you have placed something on the Z axis.
  2. Using the Quick Filter search for anything that has a Z axis value greater than 0. You may need to search both Start Z and End Z from the properties list.
AutoCAD Quick Select Filter

I have 3D objects so how do I fatten my drawing back to 2D?

OK, so you have objects in your drawing which have a Z value. You want to make your drawing flat again with one simple command? Easy…

Making sure you’re in your top down view and select everything in your drawing (Ctrl+A).

Flatten AutoCAD Drawing Step 1

With everything selected use the command “FLATTEN”.

This will Flatten your drawing removing any Z axis values.

Flatten AutoCAD Drawing To Remove Z Values

Conclusion

FLATTEN is a very useful command and is quick to use. Even if you don’t think you have any 3D objects, quickly selecting everything in the drawing and using the command Flatten is a good thing to do.

Its is also useful to use the OVERKILL command after FLATTEN to remove any duplicate lines that now exist in the same space.

For more information on this blog post or if you have any other questions/requirements, please complete the below form:

Related Links

AutoCAD Software – Purchase Online | Man and Machine

AutoCAD Training Courses – Autodesk Authorised | Man and Machine

Categories AutoCAD
Click here to view all of our blog postsSours: https://www.manandmachine.co.uk/how-to-flatten-your-autocad-drawings-to-2d/

You will also be interested:

Causes:

AutoCAD drawing entities on the Z plane or which have elevation are not measuring or aligning correctly with other objects on a different plane. To see objects at different elevations, switch to a side 3D view.

Solution:

To flatten a drawing automatically in AutoCAD:
  • Use the FLATTEN command to change the Z values of all lines, arcs, and polylines to 0 (Requires Express Tools to be loaded). (Although it is possible to select and flatten everything in a drawing all at once, it might be necessary to use the QSELECT command to select each group of object types and then run the FLATTEN command on them).
    1. Turn off or freeze any hatch layers with hatch patterns so they are not included in the selection
    2. Type FLATTEN at the command line
    3. Select all objects and hit Enter
    4. Type N for No when prompted to Remove hidden lines
  • For 3D objects, the FLATSHOT command can be used to create 2D views (not available in AutoCAD LT).
  • Replace the Z value For 3D objects in layout viewports:

    1. Enter OPTIONS in the command line.
    2. On the Drafting tab.
    3. Under Object snap options.
    4. Check Replace Z value with current elevation (not available in AutoCAD LT).
User-added image 

To flatten a drawing manually (or as needed in AutoCAD LT):
  • Select objects with the QSELECT command:
    1. Select the object type.
    2. Choose the Elevation (or Start Z or End Z), and then Not Equal To > 0 (zero)
    3. In the Properties palette, change Elevation (or Start Z or End Z) to 0 (zero). Note: To use this method with certain objects such as blocks and groups, you need to explode the objects first.
  • Use the CHANGE command:
    1. Type in the CHANGE command.
    2. Type ALL to select all objects and then Enter.
    3. Type P for Properties.
    4. Type E for Elevation.
    5. Type 0 and then a final Enter to end the command.

Alternate options

One or both of the following LISP routines, pasted into the command line in AutoCAD will flatten a drawing.
  • This command changes the elevation of all objects to zero:
(command "_change""_all""""p""e""0""")
  • This command moves objects very high and then back down to zero:
(command "_move""_all""""""0,0,1e99""_move""_all""""""0,0,-1e99") 

You may also create a couple buttons in the CUI. These will work in AutoCAD LT:
  • To flatten selected objects:

^C^C_UCS;;_select;\_move;_p;;0,0,1e99;;_move;_p;;0,0,-1e99;;

  • To flatten the entire drawing:

^C^C_UCS;;_move;_all;;0,0,1e99;;_move;_all;;0,0,-1e99;;

The ZIP file attached to this article is a script file that can be run in AutoCAD and AutoCAD LT which will remove the elevation of all objects in the drawing.

PDF workaround:

Plot a PDF or DXB file and then import that into a new or existing drawing and the geometry will be flat. AutoCAD 2017 and above have thePDFIMPORT command. Plot a drawing to PDF and then import the PDF. To create a DXB file, a DXB PC3 printer must first be created using the Add-A-Plotter Wizard. Enter the PLOTTERMANAGER command to open the folder that contains the wizard. Once the DXB printer is created, plot the drawing to DXB and then import it using the DXBIN command. Note: The DXB plotter converts all color data to black and white and places all drawing geometry on layer 0. A PDF will retain color and layers as long as a color plot style is selected and the PDF layers options is selected when creating the PDF.
Sours: https://civli-engineering.blogspot.com/2019/05/flatten-drawing-in-autocad.html


417 418 419 420 421