Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

actions - moving object to specific x/y

Status
Not open for further replies.

meriwether

Programmer
Mar 7, 2003
23
US
i've got a ton of files i'm would like to open, move the upper left corner of the object to a speciic x/y coordinate, then save and close the files. i can't seem to figure out if it's possible to move an object to a specific x/y? also will need to resize each object (one ojbect per drawing) to a specific size.

any help on this would be appreciated.
thx.
 
It should be possible to script AI to do this, but I only know actions... so when I get a chance to test and see what I can do with Actions(tommorrow probably) I will. The issue is that everything's Relative to the Ruler Origen, but Moves are relative to starting position... if I am remembering correctly.

Be back with you on this one.
Sef.

It is alright to decorate construction, but never construct decoration. - Pugin, on Arch.
 
Check out / use / modify the action:

MoveAbsolute.aia

Here:

Right click the filename and do Save Target As, otherwise you'll open the text itself.

Open the saved Action into the action palette. Then expand the steps to see How I did it.

Basically though:
Select All
Group
Set Ref. pt. to TopLeft
Move in X to 0
Move in Y to 0

The Caveat is that a new file has 0,0 (the ruler origin) at the bottom left of the page, NOT the Top. Your can drag the crosshairs in the corner of the ruler guides to change the origen... but I couln't seem to get that step to RECORD in the action. SO:

Instead of specifying 0 in ea. step of the two Moves, specify something like 10.75" in X .25" in Y to move it .25" in from the top left corner. Measure from lower left.

As for the scaling an object bit... well... in order to call an object, it has to have a specific NAME (which is the name in the layer palette) So unless the objects you need to move have common names, it will be difficult (impossible?) to record an action for it... though it may be possible w/ higher level scripting.

Actions are on p.389 of the manual... BTW.

Sef.

It is alright to decorate construction, but never construct decoration. - Pugin, on Arch.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top