New lines are always being drawn at zero elevation

New lines are always being drawn at zero elevation

Nathan_Riddle6VZCG
Explorer Explorer
4,792 Views
6 Replies
Message 1 of 7

New lines are always being drawn at zero elevation

Nathan_Riddle6VZCG
Explorer
Explorer

I recently got a new computer and reinstalled AutoCAD 2024 onto it. With that reinstall, AutoCAD is now doing something I've never seen before. When I draw a new line, it is setting its endpoints to zero, regardless of whether I snap to a 3d point for either is beginning or ending point. This problem only exists with new lines. I can move the endpoints of an existing line by selecting its grips and osnapping to a 3d point. Both endpoints of a new line are at zero elevation regardless of how its drawn (mouse or coordinate entry) and it can only be manipulated after its drawn. Osnapz is set to 0. UCS is set to world. This problem exists for existing or new drawings too. Any ideas? I'm hoping not to have to reinstall it again.

0 Likes
Accepted solutions (1)
4,793 Views
6 Replies
Replies (6)
Message 2 of 7

Patchy
Mentor
Mentor

Polyline would be flat at zero, but drawing line doesn't do that.

Can you attach your drawing?

0 Likes
Message 3 of 7

ParishSouthBdx
Collaborator
Collaborator

I understand the issue you’re facing in AutoCAD, where new lines drawn in a 3D environment consistently have their endpoints at elevation 0, regardless of where you start them. Let’s troubleshoot this and find a solution:

  1. System Variable Approach:

    • You can adjust the OSNAPZ system variable to control whether AutoCAD snaps to the Z value of existing objects. Here’s how:
      1. Open the Command Line.
      2. Type OSNAPZ and press Enter.
      3. Set the value to 0 (zero) to ensure that snapping does not consider the Z value of existing objects.
      4. Confirm the change.
  2. Manually Fixing the Drawing: If the system variable approach doesn’t resolve the issue, you can manually adjust the Z values for your objects:

    • Select all the objects in your drawing (or only the ones with elevations).
    • Open the Properties Palette.
    • Click the object drop-down list and select an object type (excluding dimensions and hatches).
    • Locate the elevation-related field (e.g., Position Z for blocks, Start Z and End Z for lines, etc.).
    • Change the value to 0 (zero) for each object type.
    • Repeat this procedure for other object types as needed.
  3. AutoLISP Solution:

    • If you prefer an automated solution, consider using the ALLFLAT AutoLISP program by Lee Mac. It quickly flattens objects to elevation 0. You can find the code on the CADtutor forum.
    • Alternatively, explore SUPERFLATTEN by Joe Burke, which also addresses this issue but has some limitations with dimensions and OLE objects.

Remember to create a backup of your drawing before making any changes. 

0 Likes
Message 4 of 7

Nathan_Riddle6VZCG
Explorer
Explorer

I already confirmed that the osnapz system seting is set to zero. I don't want to flatten the objects. The problem is that when creating a new line, it is already flattened to elevation zero. I want it my line to be a 3D object. Our department recently upgraded to new machines and it warranted an AutoCAD reinstall on all machines. I have confirmed with other users that this issue is specific to my machine. Their installs are all working correctly. I was hoping that there was another system setting that I wasn't aware of that is causing this issue. I suppose I can draw 3d polyline objects instead of a line objects to work around this issue. Thanks for the response.

0 Likes
Message 5 of 7

Nathan_Riddle6VZCG
Explorer
Explorer

The drawing isn't the issue. It's a problem with my AutoCAD. I was hoping there was a system setting that I didn't know about that was causing the issue. I am aware of the difference between lines, polylines, and 3d polylines. I have been a capable user of AutoCAD for 20 years. I have never had a this problem before. Thanks.

0 Likes
Message 6 of 7

Valentin_CAD
Mentor
Mentor

@Nathan_Riddle6VZCG ,

 

It works perfectly fine on my end.

 

Unfortunately, assuming your new computer meets the system requirements and have the latest updates, you will need to do a Clean Uninstall or contact support.

 



Select the "Mark as Solution" if my post solves your issue or answers your question.

Seleccione "Marcar como solución" si mi publicación resuelve o responde a su pregunta.


Emilio Valentin

0 Likes
Message 7 of 7

Nathan_Riddle6VZCG
Explorer
Explorer
Accepted solution

Issue solved. Not an AutoCAD problem. Turns out my aliases were messed up and "L" was calling for an addin "2dline" command and not the normal AutoCAD line command.