I have received a drawing from a colleague and it is messy with lines all over the place on the z axis. I have tried selecting the whole drawing and running FLATTEN command with no effect. I then used quick select (QSELECT) to select all 3d polylines, used flatten, NO to remove hidden lines but again this had no effect. How can i bring all lines to 0 on the Z axis without doing it manually as this will take a very long time. I have attached a screenshot of the drawing.
Thanks
Solved! Go to Solution.
Solved by S.Faris. Go to Solution.
Run lisp:
(defun C:Z0 () (command "_.UCS" "") (command "_.move" "_all" "" '(0 0 1e99) "" "_.move" "_p" "" '(0 0 -1e99) "") (princ) (alert "done.") )
Try this
This will change the z value for the 2d elements in the drawing.
Blocks needs to be adjusted in the individual block editor windows, event hen you need to check for remaining culprits
Check this previous post
SALMANUL FARIS
Not sure these are LINES based on your image?
I've seen instances of stray directional line-like objects in certain versions of ACAD and messy drawings. Sometimes these are generated from block objects with strange insertion points.
To really help you solve the issue you might consider sharing the drawing if you can?
Blaine
Not too sure, when I select a line their are minus or plus values on the z axis. I have attached the drawing will be easier to spot something.
Thanks
WARNINGS!
I recommend 2 things...
Get the original drawing from the source who created it and hold them accountable for the content.
Do not work with the drawing in an educational seat of AutoCAD unless the drawing will never be used for commercial or work purposes.
If these cannot be achieved I recommend starting over or spending what looks to be hours fixing this mess. It's so much mess that I don't even know how anyone could fix it without knowledge of the project.
Sincerely,
Blaine
Thanks for checking the file. Sorry I wasn't clear by colleague I meant classmate, this is an architecture masters project. The original source won't be any help as they already did us a favor by sending this file..which is messy. Is it worth exploding all blocks and running FLATTEN?
Thing is I've already spent so long creating my own layers and cleaning up the drawing I forgot to check the Z axis! I don't want to give up on the drawing, can it be saved?
Exploding the blocks will allow flatten to work. Problem is that you will have to explode a few levels deep due to blocks within blocks.
You will have to be careful about exploding hatches and text.
Things flattened for me when I avoid blocks so explode and see what happens for you. Just be sure to save your work in steps.
Much Luck,
Blaine
Hi, I just had a look into your file and would like to briefly explain what I did(Let's say I had some spare time).
I'll anyway upload my file which is still not fully corrected, It looks much decent from the initial file I'll say.
SALMANUL FARIS
Thanks a lot S.Faris, this did the trick. Think the issue was the blocks, but I'll just go into them and through QSELECT set everything to 0. Thank you!
Hi,
This VLX certainly appears to repair many issues from the initial file. There were just a few remaining objects with Z axis differences but what a huge help it is in adjusting the block data and nested block data.
This routine is very helpful and saves so much step-by-step effort.
I hope the OP gives this a try so that he/she can verify the usefulness in their work.
Thanks for sharing!
Blaine
Can't find what you're looking for? Ask the community or share your knowledge.