jamami Posted June 2 Posted June 2 (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 June 3 by SLW210 Added Code Tags! Quote
jamami Posted June 2 Author Posted June 2 (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 June 3 by SLW210 Added Code Tags!! Quote
jamami Posted June 2 Author Posted June 2 (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 June 3 by SLW210 Added Code Tags!! Quote
BIGAL Posted June 2 Posted June 2 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. Quote
SLW210 Posted June 3 Posted June 3 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. Quote
Recommended Posts
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.