Author Topic: Move everything to #,#,0?  (Read 2872 times)

0 Members and 1 Guest are viewing this topic.

craigr

  • Guest
Move everything to #,#,0?
« on: March 20, 2007, 11:06:03 AM »
I would like to have a macro to move everything to zero on the Z axis.

1. Is there an problem with doing this?

2. I don't know how to do this. I know the 'draworder' thing, but as I understand it, that isn't really moving anything. I want to select everything in the dwg at once, and move it to zero on the z axis.

Do any of you already have a macro to do this?

Thanks in advance,
craigr

Arizona

  • Guest
Re: Move everything to #,#,0?
« Reply #1 on: March 20, 2007, 11:12:11 AM »
Hi Craig,

The problem with this method is that each type of object is stored differently.
In other words to move a line you must set the Z coordinate to zero for both the start and end point of the line. A circle, by it's center point, text by it's insertion point, etc...
I have a VBA program for this that works on lines, circles, arcs, text and mtext, that you are welcome to have. Just send me a PM if you are interested. :-)

craigr

  • Guest
Re: Move everything to #,#,0?
« Reply #2 on: March 20, 2007, 11:14:45 AM »
Just send me a PM if you are interested. :-)

Thanks for the offer, but alas, I am using LT  :cry:

LT doesn't use VBA or Lisps

craigr

Josh Nieman

  • Guest
Re: Move everything to #,#,0?
« Reply #3 on: March 20, 2007, 11:20:41 AM »
I guess you don't have "flatten" eh?

craigr

  • Guest
Re: Move everything to #,#,0?
« Reply #4 on: March 20, 2007, 11:23:09 AM »
I guess you don't have "flatten" eh?

'unknown command' - or were you joking?

Really, that is exactly what I want to do to the dwg.

craigr

Josh Nieman

  • Guest
Re: Move everything to #,#,0?
« Reply #5 on: March 20, 2007, 11:33:12 AM »
I guess you don't have "flatten" eh?

'unknown command' - or were you joking?

Really, that is exactly what I want to do to the dwg.

craigr

nah, it's a real command for full autocad... but I think it is still an "express tools" command which means it's still just a lsp addin.  I don't see why they wouldn't add Flatten to LT... the whole purpose of the command is "Convert objects to 2d" which I would say would be most used BY LT users....

Gliderider

  • Guest
Re: Move everything to #,#,0?
« Reply #6 on: March 20, 2007, 11:35:03 AM »

uncoolperson

  • Guest
Re: Move everything to #,#,0?
« Reply #7 on: March 20, 2007, 11:35:09 AM »
have you tried using the properties window and changing all the x and y values?

(might work for a few... not everything, but some)

Arizona

  • Guest
Re: Move everything to #,#,0?
« Reply #8 on: March 20, 2007, 11:46:24 AM »
Can you use qselect filtering?
filter for all lines...set start and end point z-coords
filter for all circles...set z-coord for centers,
etc...

craigr

  • Guest
Re: Move everything to #,#,0?
« Reply #9 on: March 20, 2007, 12:44:08 PM »
Try here:
http://www.eng-tips.com/viewthread.cfm?qid=104669

The macro works great.

Thanks for the link.

The macro mentions '1e99' as the value of the 'z' axis. Does anyone here know what '1e99' is?

craigr

Arizona

  • Guest
Re: Move everything to #,#,0?
« Reply #10 on: March 20, 2007, 01:03:23 PM »
The macro mentions '1e99' as the value of the 'z' axis. Does anyone here know what '1e99' is?

Quote
The natural logarithm, formerly known as the hyperbolic logarithm, is the logarithm to the base e, where e is a certain constant approximately equal to 2.718281828459. The natural logarithm can be defined for all positive real numbers x as the area under the curve y = 1/t from 1 to x....

http://en.wikipedia.org/wiki/Natural_logarithm

So e raised to the 99th power?

Gliderider

  • Guest
Re: Move everything to #,#,0?
« Reply #11 on: March 20, 2007, 01:17:43 PM »
1 to the 99th power. (1 exponent 99). From what I understand, acad can't work with such a large number, so it considers it 0. (I think)

Oops... 1 x 10 to the 99th power. 1 to the 99th power = 1
« Last Edit: March 21, 2007, 07:19:05 AM by Gliderider »

Tramber

  • Guest
Re: Move everything to #,#,0?
« Reply #12 on: March 20, 2007, 01:21:45 PM »
Beleive it or not, the 1e99 (in Z) movement (and then back -1e99) is the official method from Autodesk to be used in LT.

This technic was created by Randy Richardson from Tee Square Graphics.

craigr

  • Guest
Re: Move everything to #,#,0?
« Reply #13 on: March 20, 2007, 02:05:36 PM »
Holy Cow!!!

You folks are great! Is there anything you CAN'T answer?

Thanks for all of the responses,

craigr

Chuck Gabriel

  • Guest
Re: Move everything to #,#,0?
« Reply #14 on: March 20, 2007, 04:59:47 PM »
Try here:
http://www.eng-tips.com/viewthread.cfm?qid=104669

The macro works great.

Thanks for the link.

The macro mentions '1e99' as the value of the 'z' axis. Does anyone here know what '1e99' is?

craigr

1e99 is scientific notation.  It means 1 x 10^99.

http://en.wikipedia.org/wiki/Scientific_notation