LSP to move all 3d objects to 0 plain
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
LSP to move all 3d objects to 0 plain

 
Post new topic   Reply to topic    CADForums.net Forum Index -> AutoCAD
Author Message
Boll Weevil
Guest





Posted: Thu Mar 03, 2005 1:52 am    Post subject: LSP to move all 3d objects to 0 plain Reply with quote

We have a model of buildings that were create in another cad program. The
building were set on a 3d terrain so they are Z values. Is there a LSP file
that can take all the buildings and set them on the zero Z plain?? Thanx.

Back to top
Michael Bulatovich
Guest





Posted: Thu Mar 03, 2005 2:55 am    Post subject: Re: LSP to move all 3d objects to 0 plain Reply with quote

I don't know of anything that will convert all kinds of entities into 2D.
Depending on the type of entities used to make the model, a simple lisp like
that below will do it. It won't change the thickness of entities to 0, and
it won't flatten solids, or blocks with 3d relations in them, so you may be
into a multi-stage process. Copy everything between the lines into a file
named flat.lsp, and put the file in your path. Use APPLOAD to load the lisp
file then issue the command FLAT at the command prompt.

There are other routines around, but they have the same effect, I think.
--


MichaelB
www.michaelbulatovich.ca

---------------------------------------------------------
(defun C:FLAT ()
(command "_.move" "_all" "" '(0 0 1e99) ""
"_.move" "_p" "" '(0 0 -1e99) "")
(princ)
)
-------------------------------------------------------


"Boll Weevil" <washerdryer@maytag.com> wrote in message
news:oo9c21pk6jahmiqgqb8065vgsq8tspfftc@4ax.com...
Quote:
We have a model of buildings that were create in another cad program. The
building were set on a 3d terrain so they are Z values. Is there a LSP
file
that can take all the buildings and set them on the zero Z plain?? Thanx.
Back to top
Boll Weevil
Guest





Posted: Thu Mar 03, 2005 3:26 am    Post subject: Re: LSP to move all 3d objects to 0 plain Reply with quote

On Wed, 2 Mar 2005 16:55:28 -0500, "Michael Bulatovich" <Please@dont.try> wrote:

Quote:
I don't know of anything that will convert all kinds of entities into 2D.

You misunderstood my intent. I have buildings floating above and blow the
ground plain at elevation zero. I want to move down the buildings that are
above ground zero and move up buildings below ground zero. All to the same
ground plain. I don't want to alter or modify the object.

Back to top
Michael Bulatovich
Guest





Posted: Thu Mar 03, 2005 4:09 am    Post subject: Re: LSP to move all 3d objects to 0 plain Reply with quote

That's done with the MOVE command. I'd suggest splitting up the screen into
maybe three ports and set one of them to look at the model with the XY plane
perpendicular to the screen. Then you can use point filters to get them
level with each other. I hope there isn't a small town's worth of buildings
there......
--


MichaelB
www.michaelbulatovich.ca

"Boll Weevil" <washerdryer@maytag.com> wrote in message
news:68fc21peoc31aljti1hlqdlso1p9e8if2r@4ax.com...
Quote:
On Wed, 2 Mar 2005 16:55:28 -0500, "Michael Bulatovich" <Please@dont.try
wrote:

I don't know of anything that will convert all kinds of entities into 2D.

You misunderstood my intent. I have buildings floating above and blow the
ground plain at elevation zero. I want to move down the buildings that
are
above ground zero and move up buildings below ground zero. All to the
same
ground plain. I don't want to alter or modify the object.
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> AutoCAD All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB