<?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 Extract Scale Factor to Excel in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/extract-scale-factor-to-excel/m-p/7932065#M183314</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Hopefully someone can help.&amp;nbsp; I have 1,000+ .dwg files that have the wrong Scale Factor, and the drawing is scaled wrong.&amp;nbsp; I need to open each drawing, change the scale factor to 1, change the dimension scale to what the scale factor was, and then scale the drawing in model space to what the scale factor was. I don't want to do that manually.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read about Data Extraction, but can't figure out how to extract the scale factor or the dim scale from the drawing, those data fields don't show up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new at automating tasks in AutoCAD and would prefer the simplest way possible.&amp;nbsp; I don't understand the programming, or how to do that to accomplish this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Apr 2018 21:56:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-13T21:56:49Z</dc:date>
    <item>
      <title>Extract Scale Factor to Excel</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/extract-scale-factor-to-excel/m-p/7932065#M183314</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Hopefully someone can help.&amp;nbsp; I have 1,000+ .dwg files that have the wrong Scale Factor, and the drawing is scaled wrong.&amp;nbsp; I need to open each drawing, change the scale factor to 1, change the dimension scale to what the scale factor was, and then scale the drawing in model space to what the scale factor was. I don't want to do that manually.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read about Data Extraction, but can't figure out how to extract the scale factor or the dim scale from the drawing, those data fields don't show up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new at automating tasks in AutoCAD and would prefer the simplest way possible.&amp;nbsp; I don't understand the programming, or how to do that to accomplish this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 21:56:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/extract-scale-factor-to-excel/m-p/7932065#M183314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-13T21:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Scale Factor to Excel</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/extract-scale-factor-to-excel/m-p/7932280#M183315</link>
      <description>&lt;P&gt;You are going to get a faster response and much better bandwidth posting this over in the AutoCAD Customization / LISP forum &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130" target="_blank"&gt;&amp;gt;&amp;gt;HERE&amp;lt;&amp;lt;&lt;/A&gt;&lt;BR /&gt;Some of this can be done with a macro, but it might be easier with LISP.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Apr 2018 02:27:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/extract-scale-factor-to-excel/m-p/7932280#M183315</guid>
      <dc:creator>WarrenGeissler</dc:creator>
      <dc:date>2018-04-14T02:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Scale Factor to Excel</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/extract-scale-factor-to-excel/m-p/7946275#M183316</link>
      <description>&lt;P&gt;It sounds like you only want to do three things:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;change the scale factor to 1,&lt;/LI&gt;&lt;LI&gt;change the dimension scale to what the scale factor was, and then&lt;/LI&gt;&lt;LI&gt;scale the drawing in model space to what the scale factor was.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I am not sure what you mean by item #1.&amp;nbsp; Was the drawing not created in model space to full size? How would you go about determining the scale factor?&lt;/P&gt;&lt;P&gt;#2 can be change with the &lt;STRONG&gt;dimscale&lt;/STRONG&gt; command&lt;/P&gt;&lt;P&gt;#3 is done with the &lt;STRONG&gt;scale&lt;/STRONG&gt; command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm no vlisp whiz but it sounds like following vlisp program might do much of what you want.&amp;nbsp; It prompts the user for what the scale factor was.&amp;nbsp; This&amp;nbsp;could be changed to get the scale factor if you identify where that is stored. It then changes dimscale to that value and thaws and turns on all layer before scaling everything by 1/s.&lt;/P&gt;&lt;PRE&gt;(defun c:fixit (/)
  (setq s (getreal "\nEnter what the scale factor was:"))
					; do something to adjust scale factor
  (command "dimscale" s)
  (command "-layer" "t" "*" "on" "*" "")
  (command "scale" "all" "" "0,0,0" (/ 1 s))
)  &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 21:07:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/extract-scale-factor-to-excel/m-p/7946275#M183316</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2018-04-19T21:07:21Z</dc:date>
    </item>
  </channel>
</rss>

