Maintaining Draw Order in 3D rotation

Maintaining Draw Order in 3D rotation

Anonymous
Not applicable
674 Views
4 Replies
Message 1 of 5

Maintaining Draw Order in 3D rotation

Anonymous
Not applicable

Hello,

 

I would like to simplify my draw order such that the real world view is shown no matter the orientation of the viewport. Whenever I rotate the view cube, the viewport shows me the real world view I am seeking (that is, the draw order reflects reality), but then once I settle on a view, it returns to a confusing draw order I am unsure how I arrived at.

 

Is there a way to set the default draw order of objects/hatches etc such that there is no, so to speak, transparency?

0 Likes
Accepted solutions (1)
675 Views
4 Replies
Replies (4)
Message 2 of 5

john.vellek
Alumni
Alumni

Hi @Anonymous,

 

I see that you are visiting as a new member to the AutoCAD forum. Welcome to the Autodesk Community!

 

 Can you share a sample file that exhibits this behavior? Please also tell me which version of AutoCAD you are using (type ABOUT at the command line).

 

Is this draw order related to linework or hatches or image attachments?

 

 

Please select the Accept as Solution button if my post solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes
Message 3 of 5

BrianBenton
Collaborator
Collaborator

To my knowledge there is no way to "lock" items in a draw order. Since 2007 draw order seems to change from time to time. I did find this older post discussing the issue and that has a link to a third party program that will help you lock draw order if you want to try it out.

 

https://forums.autodesk.com/t5/civil-3d-forum/is-there-a-way-to-lock-draworder-objects-in-place/td-p...

 

Brian C. Benton

bbenton@cad-a-blog.com
http://CAD-a-Blog.com
twitter.com/bcbenton
www.facebook.com/CADaBlog


0 Likes
Message 4 of 5

leeminardi
Mentor
Mentor
Accepted solution

The draworder command is only relevant for the 2D Wireframe visualstyle. When the 2D Wireframe visual style is active AutoCAD uses a 2D display list to generate what is seen on the screen. 

 

With the visualstyle set to 2D Wireframe createa white rectangle in the top view that lies on the XY plane.  Using OSNAP Nearest, create a red line collinear to the top line of the rectangle but it doesn't go to the ends. If you cannot see the red line use order to place it in front of the white line.  YOU should see something like this.

 do1.PNG

 Now move the red line in the + Z direction (towards you). It's appearance will not change.

Now give the draworder command and change the redline to "back".  The red line is obscured by the white line of the rectangle although the red line is technically in front.

Note the the WCS coordinate icon has white lines and XY.  This is an indication that the 2D Visualstyle is active. Now clicking on the view cube slightly rotate the scene.  As you do note that the axis icon changes to the a red-green-blue axes indicating that the visual style has change to wireframe (a 3D mode).  You can clearly  see that the red line is clearly in front of the while line. 

Here's a view while rotating the viewcube.

do2.PNG

Here's what you see after the view rotation.  The visualstyle returns to 2D Wireframe.

do3.PNG

Now go back to the top view.  The red line cannot be seen.  Changing the visualstyle to Wireframe will make the red line visible because in 3D space the red line is closer to the observer and the concept of draworder is not supported.  Geometry is drawn in a back to front order (known as z-buffering).

When AutoCAD was primarily a 2D system it used a 2D display list which is still what is used by 2D Wireframe.  Wireframe and the other visualstyle use 3D display list techniques. 

 

I think the confusion you are facing is with your interpretation of the 3D geometry not with its display.  I suggest adding a box to the scene that would give you a frame of reference which would aid in visualizing the  3D geometry.

 

 

 

lee.minardi
Message 5 of 5

Anonymous
Not applicable

Thank you for the help.

 

It appears that changing the visual style fixes the problem I was trying to describe.

0 Likes