Jump to content
nocturne00

Flatten alternatives

Recommended Posts

maratovich

Try this:

(defun C:settozero_Z ()
(command "_.UCS" "")
(command "_.move" "_all" "" '(0 0 1e99) ""
"_.move" "_p" "" '(0 0 -1e99) "")
(princ)
(alert "Zeroing coordinate Z is complete.")
)

Share this post


Link to post
Share on other sites
sevdo2000

Have you ever tried command CHANGE? I recommend first to select all objects (ctrl+A) and then call CHANGE command. It will ask for properties - "P", then select "E" for ELEVATION, and give it value 0.

Share this post


Link to post
Share on other sites
SLW210
Hello the script above works great.. however I am recieving the following error message:

 

; error: Automation Error. Not allowed for this proxy

 

Any ideas ? :D

 

What exactly are you using, the LISP or The Macro code?

 

AFAIK Revit does not use LISP. I doubt if the Macro works in REVIT either. Ask in the REVIT MEP FORUM.

Share this post


Link to post
Share on other sites
Somraj

Hi, Copied the Code and gave Flat at Commonad Prompt, but nothing happened. Pl let me know how to make all "Z" values to zeros.

Regards

Som

Share this post


Link to post
Share on other sites
Cad64
1 hour ago, Somraj said:

Hi, Copied the Code and gave Flat at Commonad Prompt, but nothing happened. Pl let me know how to make all "Z" values to zeros.

 

Well, I posted that routine in this thread 12 yeas ago, so it could simply be that it doesn't work in the latest 2021 version. It still works for me in 2018 though.

What are you trying to move to Z0? Can you provide some screenshots or post your drawing?

Share this post


Link to post
Share on other sites
Dadgad
Posted (edited)

Welcome to CADTutor Morphix.  :)

 

I am lisp illiterate, and haven't tried this one, but if you are unaware there is a built-in Autocad command which you might want to know.

 

The CHANGE command has been around for a long time, and is very useful.

It can be used to change the Properties of multiple selected entities, or all of them.

Among those Properties is ELEVATION.

Read the commandline prompts to see all the options.

 

WHOOPS!  I just revisited this thread and realized that sevdo2000 made that suggestion back in 2012, NEVER MIND!  :oops:

 

Edited by Dadgad
follow up

Share this post


Link to post
Share on other sites
Dadgad

Additionally, since 2008 VIEWBASE has been added to the quiver, a great alternate and very good functionality to explore, if you are not familiar with it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...