AutoCAD Mechanical
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
command for automatica lly changing Z coordinate into zero
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
If we copy the drawing with lot of entities in Z coordinate into other file, i need the command which automatically convert all the details in z=0. We can use 'filter' command after paste it and change the z co ordinate into 0. But, if we have thousands of entities in negative z coordinate, it becomes time consuming. We can use OSNAPZ=>0 & AMPSNAPZO. But, it will control the selection only. If we use the FLATTEN command, drawing clarity became worst. Kindly suggest any other system variable which convert all the Z coordinate into zero.
Regards,
Suresh
Re: command for automatica lly changing Z coordinate into zero
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
Try this lisp code. It's a little out of date -was designed for the 2000 version- but it think it will works with most of the AutoCAD entities.
Regards,
Francisco
Re: command for automatica lly changing Z coordinate into zero
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi Francisco,
I saw your good advise and dowloaded your *.lsp file. I am not to interprete the comands as they are in a different language than English and Danish. Would someon be able to provide the details or comands in English?
Kent
Re: command for automatica lly changing Z coordinate into zero
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi Kent,
It's true that I should have explained how the code works. It's easy.
Just load the application into AutoCAD with 'appload'. This load the code with the executable command 'smash'.
In the command line, execute the command 'smash'. No additional input is required.
The code will preserve all the processed entities just changing the z coordinate to 0.
I hope it will help you.
Re: command for automatica lly changing Z coordinate into zero
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi Francisco,
Thanks a lot. Seems like I, as a ACAD LT user, is restricted from using LISP as there is possebilities to load LPS applications. - Unless I purches "Toolkit LT", which we do not find for the 2011 versions.
Kent
Re: command for automatica lly changing Z coordinate into zero
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi Francisco
What does this error mean?
"Checking entity 3449; error: divide by zero"
Doug
Re: command for automatica lly changing Z coordinate into zero
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Since I lost my Express Tool functions (loaded but don't work) I tired this lsp file and it works great! Even better than the FLATTEN command in Express Tools.
Thanks so much!
Re: command for automatica lly changing Z coordinate into zero
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
