<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Check &amp;quot;measurement&amp;quot; var. on dwg open in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811068#M161275</link>
    <description>Keith,&lt;BR /&gt;
&lt;BR /&gt;
You might want to consider doing the following.&lt;BR /&gt;
&lt;BR /&gt;
Within the s::startup add the following:&lt;BR /&gt;
   (if (findfile "autoload.lsp")(load (findfile "autoload.lsp")))&lt;BR /&gt;
&lt;BR /&gt;
Then in the drawing directory for metric drawings create an autoload.lsp&lt;BR /&gt;
file.  Set all of your project specific settings in this file.  I often use&lt;BR /&gt;
this as a pseudo script by placing commands that update things like the&lt;BR /&gt;
title block drawn date.  I never have to worry about having the wrong date&lt;BR /&gt;
on my drawings after doing this.&lt;BR /&gt;
&lt;BR /&gt;
==============================&lt;BR /&gt;
Michael Weaver&lt;BR /&gt;
By day: Charles Bettisworth &amp;amp; Co.&lt;BR /&gt;
     mweaver@bettisworth.com&lt;BR /&gt;
By night: AlasCAD&lt;BR /&gt;
   alascad@go.com&lt;BR /&gt;
AOL Instant messenger screen name:&lt;BR /&gt;
   AlasCAD&lt;BR /&gt;
AUGI #w2170&lt;BR /&gt;
==============================&lt;BR /&gt;
&lt;BR /&gt;
"Keith Pocock" &lt;KEITHPOCOCK&gt; wrote in message&lt;BR /&gt;
news:85ieih$d7e22@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Having discovered that drawings recovered after a crash ALWAYS have&lt;BR /&gt;
&amp;gt; MEASUREMENT set to "0",&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I have been trying to get a little bit of lisp to check the status of&lt;BR /&gt;
&amp;gt; MEASUREMENT and, if it is not "1", prompt the user if he/she wants to&lt;BR /&gt;
change&lt;BR /&gt;
&amp;gt; it.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I have tried putting the routine in acaddoc.lsp, as partof S::STARTUP, and&lt;BR /&gt;
&amp;gt; in acad.lsp. I have been able to get the routine to run, but it does not&lt;BR /&gt;
&amp;gt; wait for the user to respond to the prompt.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Can anyone elighten me?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; thanks&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Keith P.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Balston &amp;amp; Company&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KEITHPOCOCK&gt;</description>
    <pubDate>Thu, 13 Jan 2000 04:02:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-01-13T04:02:05Z</dc:date>
    <item>
      <title>Check "measurement" var. on dwg open</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811064#M161271</link>
      <description>Having discovered that drawings recovered after a crash ALWAYS have&lt;BR /&gt;
MEASUREMENT set to "0",&lt;BR /&gt;
&lt;BR /&gt;
I have been trying to get a little bit of lisp to check the status of&lt;BR /&gt;
MEASUREMENT and, if it is not "1", prompt the user if he/she wants to change&lt;BR /&gt;
it.&lt;BR /&gt;
&lt;BR /&gt;
I have tried putting the routine in acaddoc.lsp, as partof S::STARTUP, and&lt;BR /&gt;
in acad.lsp. I have been able to get the routine to run, but it does not&lt;BR /&gt;
wait for the user to respond to the prompt.&lt;BR /&gt;
&lt;BR /&gt;
Can anyone elighten me?&lt;BR /&gt;
&lt;BR /&gt;
thanks&lt;BR /&gt;
&lt;BR /&gt;
Keith P.&lt;BR /&gt;
&lt;BR /&gt;
Balston &amp;amp; Company</description>
      <pubDate>Wed, 12 Jan 2000 17:40:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811064#M161271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-12T17:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Check "measurement" var. on dwg open</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811065#M161272</link>
      <description>Good intentions but it might be annoying to be prompted to change&lt;BR /&gt;
MEASUREMENT for every valid setting of 0.&lt;BR /&gt;
&lt;BR /&gt;
"Keith Pocock" &lt;KEITHPOCOCK&gt; wrote in message&lt;BR /&gt;
news:85ieih$d7e22@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Having discovered that drawings recovered after a crash ALWAYS have&lt;BR /&gt;
&amp;gt; MEASUREMENT set to "0",&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I have been trying to get a little bit of lisp to check the status of&lt;BR /&gt;
&amp;gt; MEASUREMENT and, if it is not "1", prompt the user if he/she wants to&lt;BR /&gt;
change&lt;BR /&gt;
&amp;gt; it.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I have tried putting the routine in acaddoc.lsp, as partof S::STARTUP, and&lt;BR /&gt;
&amp;gt; in acad.lsp. I have been able to get the routine to run, but it does not&lt;BR /&gt;
&amp;gt; wait for the user to respond to the prompt.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Can anyone elighten me?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; thanks&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Keith P.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Balston &amp;amp; Company&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KEITHPOCOCK&gt;</description>
      <pubDate>Wed, 12 Jan 2000 23:00:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811065#M161272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-12T23:00:16Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811066#M161273</link>
      <description>Frank&lt;BR /&gt;
&lt;BR /&gt;
He may be trying to set the undocmented measureinit variable since he's in&lt;BR /&gt;
the UK.&lt;BR /&gt;
&lt;BR /&gt;
"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:85j19t$evg24@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Good intentions but it might be annoying to be prompted to change&lt;BR /&gt;
&amp;gt; MEASUREMENT for every valid setting of 0.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Keith Pocock" &lt;KEITHPOCOCK&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:85ieih$d7e22@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; Having discovered that drawings recovered after a crash ALWAYS have&lt;BR /&gt;
&amp;gt; &amp;gt; MEASUREMENT set to "0",&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I have been trying to get a little bit of lisp to check the status of&lt;BR /&gt;
&amp;gt; &amp;gt; MEASUREMENT and, if it is not "1", prompt the user if he/she wants to&lt;BR /&gt;
&amp;gt; change&lt;BR /&gt;
&amp;gt; &amp;gt; it.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I have tried putting the routine in acaddoc.lsp, as partof S::STARTUP,&lt;BR /&gt;
and&lt;BR /&gt;
&amp;gt; &amp;gt; in acad.lsp. I have been able to get the routine to run, but it does not&lt;BR /&gt;
&amp;gt; &amp;gt; wait for the user to respond to the prompt.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Can anyone elighten me?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; thanks&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Keith P.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Balston &amp;amp; Company&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KEITHPOCOCK&gt;&lt;/FRANKO&gt;</description>
      <pubDate>Thu, 13 Jan 2000 01:15:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811066#M161273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-13T01:15:34Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811067#M161274</link>
      <description>As I see it, Frank, and I may be nearsighted:-).  There are only two valid&lt;BR /&gt;
settings for Measurement.  Measurement = 1 means the drawing is a metric&lt;BR /&gt;
(mm) drawing.  Measurement = 0 means it is note.&lt;BR /&gt;
&lt;BR /&gt;
For those who haven't run into this.  When measurement = 1, Acad uses the&lt;BR /&gt;
metric versions of acad.pat and acad.lin.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
==============================&lt;BR /&gt;
Michael Weaver&lt;BR /&gt;
By day: Charles Bettisworth &amp;amp; Co.&lt;BR /&gt;
     mweaver@bettisworth.com&lt;BR /&gt;
By night: AlasCAD&lt;BR /&gt;
   alascad@go.com&lt;BR /&gt;
AOL Instant messenger screen name:&lt;BR /&gt;
   AlasCAD&lt;BR /&gt;
AUGI #w2170&lt;BR /&gt;
==============================&lt;BR /&gt;
&lt;BR /&gt;
"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:85j19t$evg24@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Good intentions but it might be annoying to be prompted to change&lt;BR /&gt;
&amp;gt; MEASUREMENT for every valid setting of 0.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Keith Pocock" &lt;KEITHPOCOCK&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:85ieih$d7e22@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; Having discovered that drawings recovered after a crash ALWAYS have&lt;BR /&gt;
&amp;gt; &amp;gt; MEASUREMENT set to "0",&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I have been trying to get a little bit of lisp to check the status of&lt;BR /&gt;
&amp;gt; &amp;gt; MEASUREMENT and, if it is not "1", prompt the user if he/she wants to&lt;BR /&gt;
&amp;gt; change&lt;BR /&gt;
&amp;gt; &amp;gt; it.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I have tried putting the routine in acaddoc.lsp, as partof S::STARTUP,&lt;BR /&gt;
and&lt;BR /&gt;
&amp;gt; &amp;gt; in acad.lsp. I have been able to get the routine to run, but it does not&lt;BR /&gt;
&amp;gt; &amp;gt; wait for the user to respond to the prompt.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Can anyone elighten me?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; thanks&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Keith P.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Balston &amp;amp; Company&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KEITHPOCOCK&gt;&lt;/FRANKO&gt;</description>
      <pubDate>Thu, 13 Jan 2000 03:55:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811067#M161274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-13T03:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Check "measurement" var. on dwg open</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811068#M161275</link>
      <description>Keith,&lt;BR /&gt;
&lt;BR /&gt;
You might want to consider doing the following.&lt;BR /&gt;
&lt;BR /&gt;
Within the s::startup add the following:&lt;BR /&gt;
   (if (findfile "autoload.lsp")(load (findfile "autoload.lsp")))&lt;BR /&gt;
&lt;BR /&gt;
Then in the drawing directory for metric drawings create an autoload.lsp&lt;BR /&gt;
file.  Set all of your project specific settings in this file.  I often use&lt;BR /&gt;
this as a pseudo script by placing commands that update things like the&lt;BR /&gt;
title block drawn date.  I never have to worry about having the wrong date&lt;BR /&gt;
on my drawings after doing this.&lt;BR /&gt;
&lt;BR /&gt;
==============================&lt;BR /&gt;
Michael Weaver&lt;BR /&gt;
By day: Charles Bettisworth &amp;amp; Co.&lt;BR /&gt;
     mweaver@bettisworth.com&lt;BR /&gt;
By night: AlasCAD&lt;BR /&gt;
   alascad@go.com&lt;BR /&gt;
AOL Instant messenger screen name:&lt;BR /&gt;
   AlasCAD&lt;BR /&gt;
AUGI #w2170&lt;BR /&gt;
==============================&lt;BR /&gt;
&lt;BR /&gt;
"Keith Pocock" &lt;KEITHPOCOCK&gt; wrote in message&lt;BR /&gt;
news:85ieih$d7e22@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Having discovered that drawings recovered after a crash ALWAYS have&lt;BR /&gt;
&amp;gt; MEASUREMENT set to "0",&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I have been trying to get a little bit of lisp to check the status of&lt;BR /&gt;
&amp;gt; MEASUREMENT and, if it is not "1", prompt the user if he/she wants to&lt;BR /&gt;
change&lt;BR /&gt;
&amp;gt; it.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I have tried putting the routine in acaddoc.lsp, as partof S::STARTUP, and&lt;BR /&gt;
&amp;gt; in acad.lsp. I have been able to get the routine to run, but it does not&lt;BR /&gt;
&amp;gt; wait for the user to respond to the prompt.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Can anyone elighten me?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; thanks&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Keith P.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Balston &amp;amp; Company&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KEITHPOCOCK&gt;</description>
      <pubDate>Thu, 13 Jan 2000 04:02:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811068#M161275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-13T04:02:05Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811069#M161276</link>
      <description>Frank and Mike - thanks for the replies&lt;BR /&gt;
Yes I am in the UK and ALL our drawings are metric (you know we dumped that&lt;BR /&gt;
querky Imperial stuff years ago &lt;G&gt;)&lt;BR /&gt;
Hence it is very annoying to find that drawings recovered after a crash have&lt;BR /&gt;
been reset to Imperial. It often goes unnoticed until a user cannot figure&lt;BR /&gt;
out why hatches/linetypes are behaving strangely.&lt;BR /&gt;
I have gone to the extreme of removing ACAD.PAT and ACAD.LIN from the search&lt;BR /&gt;
paths (leaving the ISO versions in place), then the user gets notified that&lt;BR /&gt;
MEASUREMENT is incorrect by a file not found error when hatching or&lt;BR /&gt;
importing linetypes.&lt;BR /&gt;
&lt;BR /&gt;
So yes, I _really_ do want to be notified if a drawing I have opened is&lt;BR /&gt;
Imperial.&lt;BR /&gt;
&lt;BR /&gt;
And what's the best way to achieve it please!!&lt;BR /&gt;
&lt;BR /&gt;
thanks&lt;BR /&gt;
&lt;BR /&gt;
Keith&lt;BR /&gt;
&lt;BR /&gt;
"Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
news:85j19t$evg24@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; Good intentions but it might be annoying to be prompted to change&lt;BR /&gt;
&amp;gt; MEASUREMENT for every valid setting of 0.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Keith Pocock" &lt;KEITHPOCOCK&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:85ieih$d7e22@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; Having discovered that drawings recovered after a crash ALWAYS have&lt;BR /&gt;
&amp;gt; &amp;gt; MEASUREMENT set to "0",&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I have been trying to get a little bit of lisp to check the status of&lt;BR /&gt;
&amp;gt; &amp;gt; MEASUREMENT and, if it is not "1", prompt the user if he/she wants to&lt;BR /&gt;
&amp;gt; change&lt;BR /&gt;
&amp;gt; &amp;gt; it.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I have tried putting the routine in acaddoc.lsp, as partof S::STARTUP,&lt;BR /&gt;
and&lt;BR /&gt;
&amp;gt; &amp;gt; in acad.lsp. I have been able to get the routine to run, but it does not&lt;BR /&gt;
&amp;gt; &amp;gt; wait for the user to respond to the prompt.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Can anyone elighten me?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; thanks&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Keith P.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Balston &amp;amp; Company&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/KEITHPOCOCK&gt;&lt;/FRANKO&gt;&lt;/G&gt;</description>
      <pubDate>Thu, 13 Jan 2000 08:51:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811069#M161276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-13T08:51:10Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811070#M161277</link>
      <description>Well, for notification you could include this at the end of your acad.lsp&lt;BR /&gt;
or acaddoc.lsp S::Startup&lt;BR /&gt;
&lt;BR /&gt;
(if (= 0 (getvar "measurement")) (alert "This drawing is Imperial"))&lt;BR /&gt;
&lt;BR /&gt;
If you want to automatically change it to Metric, you could use:&lt;BR /&gt;
&lt;BR /&gt;
(if (= 0 (getvar "measurement")) (setvar "measurement" 1))&lt;BR /&gt;
&lt;BR /&gt;
Or to go further, you could do both by using:&lt;BR /&gt;
&lt;BR /&gt;
(if (= 0 (getvar "measurement")) (progn&lt;BR /&gt;
  (alert "This drawing is Imperial . . . .\nAnd will be changed to Metric.&lt;BR /&gt;
")&lt;BR /&gt;
  (setvar "measurement" 1)&lt;BR /&gt;
) )&lt;BR /&gt;
&lt;BR /&gt;
FD&lt;BR /&gt;
&lt;BR /&gt;
Keith Pocock &lt;KEITHPOCOCK&gt; wrote in article&lt;BR /&gt;
&amp;lt;85k3uc$ge016@adesknews2.autodesk.com&amp;gt;...&lt;BR /&gt;
&amp;gt; Frank and Mike - thanks for the replies&lt;BR /&gt;
&amp;gt; Yes I am in the UK and ALL our drawings are metric (you know we dumped&lt;BR /&gt;
that&lt;BR /&gt;
&amp;gt; querky Imperial stuff years ago &lt;G&gt;)&lt;BR /&gt;
&amp;gt; Hence it is very annoying to find that drawings recovered after a crash&lt;BR /&gt;
have&lt;BR /&gt;
&amp;gt; been reset to Imperial. It often goes unnoticed until a user cannot&lt;BR /&gt;
figure&lt;BR /&gt;
&amp;gt; out why hatches/linetypes are behaving strangely.&lt;BR /&gt;
&amp;gt; I have gone to the extreme of removing ACAD.PAT and ACAD.LIN from the&lt;BR /&gt;
search&lt;BR /&gt;
&amp;gt; paths (leaving the ISO versions in place), then the user gets notified&lt;BR /&gt;
that&lt;BR /&gt;
&amp;gt; MEASUREMENT is incorrect by a file not found error when hatching or&lt;BR /&gt;
&amp;gt; importing linetypes.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; So yes, I _really_ do want to be notified if a drawing I have opened is&lt;BR /&gt;
&amp;gt; Imperial.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; And what's the best way to achieve it please!!&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; thanks&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Keith&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; "Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:85j19t$evg24@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; Good intentions but it might be annoying to be prompted to change&lt;BR /&gt;
&amp;gt; &amp;gt; MEASUREMENT for every valid setting of 0.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Keith Pocock" &lt;KEITHPOCOCK&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:85ieih$d7e22@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Having discovered that drawings recovered after a crash ALWAYS have&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; MEASUREMENT set to "0",&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I have been trying to get a little bit of lisp to check the status of&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; MEASUREMENT and, if it is not "1", prompt the user if he/she wants to&lt;BR /&gt;
&amp;gt; &amp;gt; change&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; it.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I have tried putting the routine in acaddoc.lsp, as partof&lt;BR /&gt;
S::STARTUP,&lt;BR /&gt;
&amp;gt; and&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; in acad.lsp. I have been able to get the routine to run, but it does&lt;BR /&gt;
not&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; wait for the user to respond to the prompt.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Can anyone elighten me?&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; thanks&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Keith P.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Balston &amp;amp; Company&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;/KEITHPOCOCK&gt;&lt;/FRANKO&gt;&lt;/G&gt;&lt;/KEITHPOCOCK&gt;</description>
      <pubDate>Thu, 13 Jan 2000 20:07:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811070#M161277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-13T20:07:03Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811071#M161278</link>
      <description>Thank you.&lt;BR /&gt;
Will I be able to even further and offer the user the option with a Y/N&lt;BR /&gt;
question, I wonder.&lt;BR /&gt;
&lt;BR /&gt;
I'll try it and see......&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Keith P.&lt;BR /&gt;
&lt;BR /&gt;
"Flitter Dee" &lt;FRIS-KA&gt; wrote in message&lt;BR /&gt;
news:01bf5e01$a995ac80$d557d2d0@lms-1...&lt;BR /&gt;
&amp;gt; Well, for notification you could include this at the end of your acad.lsp&lt;BR /&gt;
&amp;gt; or acaddoc.lsp S::Startup&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (if (= 0 (getvar "measurement")) (alert "This drawing is Imperial"))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; If you want to automatically change it to Metric, you could use:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (if (= 0 (getvar "measurement")) (setvar "measurement" 1))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Or to go further, you could do both by using:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (if (= 0 (getvar "measurement")) (progn&lt;BR /&gt;
&amp;gt;   (alert "This drawing is Imperial . . . .\nAnd will be changed to Metric.&lt;BR /&gt;
&amp;gt; ")&lt;BR /&gt;
&amp;gt;   (setvar "measurement" 1)&lt;BR /&gt;
&amp;gt; ) )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; FD&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Keith Pocock &lt;KEITHPOCOCK&gt; wrote in article&lt;BR /&gt;
&amp;gt; &amp;lt;85k3uc$ge016@adesknews2.autodesk.com&amp;gt;...&lt;BR /&gt;
&amp;gt; &amp;gt; Frank and Mike - thanks for the replies&lt;BR /&gt;
&amp;gt; &amp;gt; Yes I am in the UK and ALL our drawings are metric (you know we dumped&lt;BR /&gt;
&amp;gt; that&lt;BR /&gt;
&amp;gt; &amp;gt; querky Imperial stuff years ago &lt;G&gt;)&lt;BR /&gt;
&amp;gt; &amp;gt; Hence it is very annoying to find that drawings recovered after a crash&lt;BR /&gt;
&amp;gt; have&lt;BR /&gt;
&amp;gt; &amp;gt; been reset to Imperial. It often goes unnoticed until a user cannot&lt;BR /&gt;
&amp;gt; figure&lt;BR /&gt;
&amp;gt; &amp;gt; out why hatches/linetypes are behaving strangely.&lt;BR /&gt;
&amp;gt; &amp;gt; I have gone to the extreme of removing ACAD.PAT and ACAD.LIN from the&lt;BR /&gt;
&amp;gt; search&lt;BR /&gt;
&amp;gt; &amp;gt; paths (leaving the ISO versions in place), then the user gets notified&lt;BR /&gt;
&amp;gt; that&lt;BR /&gt;
&amp;gt; &amp;gt; MEASUREMENT is incorrect by a file not found error when hatching or&lt;BR /&gt;
&amp;gt; &amp;gt; importing linetypes.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; So yes, I _really_ do want to be notified if a drawing I have opened is&lt;BR /&gt;
&amp;gt; &amp;gt; Imperial.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; And what's the best way to achieve it please!!&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; thanks&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Keith&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Frank Oquendo" &lt;FRANKO&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:85j19t$evg24@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Good intentions but it might be annoying to be prompted to change&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; MEASUREMENT for every valid setting of 0.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; "Keith Pocock" &lt;KEITHPOCOCK&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; news:85ieih$d7e22@adesknews2.autodesk.com...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Having discovered that drawings recovered after a crash ALWAYS have&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; MEASUREMENT set to "0",&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; I have been trying to get a little bit of lisp to check the status&lt;BR /&gt;
of&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; MEASUREMENT and, if it is not "1", prompt the user if he/she wants&lt;BR /&gt;
to&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; change&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; it.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; I have tried putting the routine in acaddoc.lsp, as partof&lt;BR /&gt;
&amp;gt; S::STARTUP,&lt;BR /&gt;
&amp;gt; &amp;gt; and&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; in acad.lsp. I have been able to get the routine to run, but it does&lt;BR /&gt;
&amp;gt; not&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; wait for the user to respond to the prompt.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Can anyone elighten me?&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; thanks&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Keith P.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Balston &amp;amp; Company&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;/KEITHPOCOCK&gt;&lt;/FRANKO&gt;&lt;/G&gt;&lt;/KEITHPOCOCK&gt;&lt;/FRIS-KA&gt;</description>
      <pubDate>Thu, 13 Jan 2000 21:40:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/check-quot-measurement-quot-var-on-dwg-open/m-p/811071#M161278</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-01-13T21:40:32Z</dc:date>
    </item>
  </channel>
</rss>

