Jump to content

Recommended Posts

Posted (edited)

Has something changed in V2026? The script file below will not run.  It is a simple script that I run after completing block creation. Historically this would allow me to specify a point, move all to 0,0, set layer to 0, set base to 0,0 zoom extents and purge 3x save and close. The 3x purge was something I found through trial and error as often 1x purge stills leaves objects behind.  This routine does not run in 2026 as it doesn't seem to recognise the \, what am i missing?.

move all
\
#0,0,0
-layer set 0

Base 0,0,0
zoom extents
-purge all
-purge all
-purge all
save
close

 

Edited by SLW210
Added Code Tags!
Posted (edited)

i have got it working by explicitly specifying a point, so conclude it is definitely the \ not being recognised anymore?

I really need the 0,0,0 below to be a user selected point and the 100,100,0 to be 0,0,0.

move all

0,0,0
100,100,0
-layer set 0

zoom extents
-purge all * n
-purge all * n
-purge all * n
qsave
close

 

Edited by SLW210
Added Code Tags!!
Posted (edited)

i have got script below  working by explicitly specifying a point in the text.

I really need the 0,0,0 below to be a user selected point and the 100,100,0 to be 0,0,0. When I. Change 0,0,0 below to \ I just get an error like it’s trying to use \ as a coordinate . I remember many years ago I used this same script with no issue . \ allowed me to pick a point then the script continued and tidied up the block .

what am I missing ??

move all

0,0,0
100,100,0
-layer set 0

zoom extents
-purge all * n
-purge all * n
-purge all * n
qsave
close

 

Edited by SLW210
Added Code Tags!!
Posted

Have you looked at using (getvar 'extmax) & (getvar extmin) these can be used to make a pseudo box around "ALL" objects then can use say (getvar 'extmin) as the lower left corner and move all to 0,0,0. Used this in layouts making sure title block is at 0.0.0.

Posted

Threads merged and Code placed in Code Tags.

 

Please use Code Tags for your Code (<> in the editor toolbar) and keep related questions in a single thread.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...