<?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 the VB program generates bigger shapes than usual in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/the-vb-program-generates-bigger-shapes-than-usual/m-p/5633574#M40119</link>
    <description>&lt;P&gt;Hi to everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a beginner with VB.net and Autocad,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been giver a program by a partner in VB.net to generate drawing in Autocad,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In his computer, everything is working fine,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I tried to run the same program on mine it gives me a wrong display ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The part listed in the code below appears 50 times bigger than the other items of my drawing :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a part of the code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Sub MainPanelIBIU1List()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Dim FuctionXPos As String = "0.5767", YPos1st As Double = 15.3596, BIUFont As String = "0.08"&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Dim ToXPos As String = "1.641"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Dim BIU1Listing(,) = {{"+24 VDC", "K1-11"}, {"+24 VDC", "J2-1B"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"LS1 RED", "LS1-6"}, {"LS1 YELLOW", "LS1-8"}, {"LS1 GREEN", "LS1-10"}, {"LS2 RED", "LS2-6"}, {"LS2 YELLOW", "LS2-8"}, {"LS2 GREEN", "LS2-10"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"LS3 RED", "LS3-6"}, {"LS3 YELLOW", "LS3-8"}, {"LS3 GREEN", "LS3-10"}, {"LS4 RED", "LS4-6"}, {"LS4 YELLOW", "LS4-8"}, {"LS4 GREEN", "LS4-10"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"LS5 RED", "LS5-6"}, {"LS5 YELLOW", "LS5-8"}, {"LS5 GREEN", "LS5-10"}, {"LS6 RED", "LS6-6"}, {"LS6 YELLOW", "LS6-8"}, {"LS6 GREEN", "LS6-10"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"LS7 RED", "LS7-6"}, {"LS7 YELLOW", "LS7-8"}, {"LS7 GREEN", "LS7-10"}, {"LS8 RED", "LS8-6"}, {"LS8 YELLOW", "LS8-8"}, {"LS8 GREEN", "LS8-10"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"TBC AUX 1", "A-16"}, {"TBC AUX 2", "A-17"}, {"PMT ACT 1", "A-21"}, {"PMT ACT 2", "A-22"}, {"PMT CALL 1", "B-15"}, {"PMT CALL 2", "B-16"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"TEST A", "A-12"}, {"TEST B", "A-13"}, {"AUTO FLASH", "A-37"}, {"DIM. ENABLE", "A-36"}, {"MANUAL CONT.", "A-39"}, {"INT. ADVANCE", "A-40"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"EXT. MIN. RECALL", "A-10"}, {"EXT. START", "A-11"}, {"TBC ONLINE", "A-15"}, {"STOP TIME (1)", "A-30"}, {"STOP TIME (2)", "A-30"}, {"MAX. 2 (1)", "A-5"}, {"MAX. 2 (2)", "A-6"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"FORCE OFF (1)", "A-3"}, {"FORCE OFF (2)", "A-4"}, {"CNA 1", "A-7"}, {"WALK REST MOD.", "A-9"}, {"PED. ISO. 1", "B-6"}, {"PED. ISO. 2", "PC2-A"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"PED. ISO. 3", "B-7"}, {"PED. ISO. 4", "PC4-A"}, {"PED. ISO. COMN.", "J3-D1"}, {"ADDR. SEL. 0", "-----"}, {"ADDR. SEL. 1", "-----"}, {"ADDR. SEL. 2", "-----"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"ADDR. SEL. 3", "-----"}, {"RESERVED", "-----"}, {"RESERVED", "-----"}, {"EARTH GND.", "LS12-2"}, {"LINE FREQ. REF.", "J3-C9"}, {"LOGIC GND.", "B-14"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"LOGIC GND.", "J2-32A"}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CurProLabel.Text = "Creating BIU 1's listing"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CurProLabel.Refresh()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;For i As Integer = 0 To BIU1Listing.GetLength(0) - 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;WriteStd(FuctionXPos + "," + (YPos1st - 0.12 * i).ToString(New CultureInfo("en-US")), BIUFont, 0, BIU1Listing(i, 0))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;WriteStd(ToXPos + "," + (YPos1st - 0.12 * i).ToString(New CultureInfo("en-US")), BIUFont, 0, BIU1Listing(i, 1))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CurCounter.Text = i.ToString(New CultureInfo("en-US")) + " of " + (BIU1Listing.GetLength(0) - 1).ToString(New CultureInfo("en-US"))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CurCounter.Refresh()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Next&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;End Sub&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Here is the function WriteStd :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub WriteStd(ByVal location, ByVal size, ByVal rotation, ByVal content)&lt;BR /&gt;Dim sw As StreamWriter&lt;BR /&gt;sw = File.AppendText(ScriptPathTXT)&lt;BR /&gt;sw.WriteLine("_.text")&lt;BR /&gt;sw.WriteLine("style")&lt;BR /&gt;sw.WriteLine("Standard")&lt;BR /&gt;sw.WriteLine(location)&lt;BR /&gt;sw.WriteLine(size)&lt;BR /&gt;sw.WriteLine(rotation)&lt;BR /&gt;sw.WriteLine(content)&lt;BR /&gt;sw.Flush()&lt;BR /&gt;sw.Close()&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The items in given the code given here&amp;nbsp;are too big and not in the right place on the drawing generated.&lt;/P&gt;&lt;P&gt;I think the guy was using the File TXT.SHX (an old version of the file) with Autocad 2012.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if I should to remap my Autocad to this file or not ? And how to map Autocad to this file ?&lt;/P&gt;&lt;P&gt;Also my window is in french, I do not know if that could be an issue&lt;/P&gt;&lt;P&gt;I have added in my program :&amp;nbsp;Thread.CurrentThread.CurrentCulture = New Globalization.CultureInfo("en-us")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 May 2015 18:31:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-05-13T18:31:05Z</dc:date>
    <item>
      <title>the VB program generates bigger shapes than usual</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-vb-program-generates-bigger-shapes-than-usual/m-p/5633574#M40119</link>
      <description>&lt;P&gt;Hi to everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a beginner with VB.net and Autocad,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been giver a program by a partner in VB.net to generate drawing in Autocad,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In his computer, everything is working fine,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I tried to run the same program on mine it gives me a wrong display ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The part listed in the code below appears 50 times bigger than the other items of my drawing :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a part of the code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Sub MainPanelIBIU1List()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Dim FuctionXPos As String = "0.5767", YPos1st As Double = 15.3596, BIUFont As String = "0.08"&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Dim ToXPos As String = "1.641"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Dim BIU1Listing(,) = {{"+24 VDC", "K1-11"}, {"+24 VDC", "J2-1B"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"LS1 RED", "LS1-6"}, {"LS1 YELLOW", "LS1-8"}, {"LS1 GREEN", "LS1-10"}, {"LS2 RED", "LS2-6"}, {"LS2 YELLOW", "LS2-8"}, {"LS2 GREEN", "LS2-10"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"LS3 RED", "LS3-6"}, {"LS3 YELLOW", "LS3-8"}, {"LS3 GREEN", "LS3-10"}, {"LS4 RED", "LS4-6"}, {"LS4 YELLOW", "LS4-8"}, {"LS4 GREEN", "LS4-10"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"LS5 RED", "LS5-6"}, {"LS5 YELLOW", "LS5-8"}, {"LS5 GREEN", "LS5-10"}, {"LS6 RED", "LS6-6"}, {"LS6 YELLOW", "LS6-8"}, {"LS6 GREEN", "LS6-10"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"LS7 RED", "LS7-6"}, {"LS7 YELLOW", "LS7-8"}, {"LS7 GREEN", "LS7-10"}, {"LS8 RED", "LS8-6"}, {"LS8 YELLOW", "LS8-8"}, {"LS8 GREEN", "LS8-10"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"TBC AUX 1", "A-16"}, {"TBC AUX 2", "A-17"}, {"PMT ACT 1", "A-21"}, {"PMT ACT 2", "A-22"}, {"PMT CALL 1", "B-15"}, {"PMT CALL 2", "B-16"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"TEST A", "A-12"}, {"TEST B", "A-13"}, {"AUTO FLASH", "A-37"}, {"DIM. ENABLE", "A-36"}, {"MANUAL CONT.", "A-39"}, {"INT. ADVANCE", "A-40"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"EXT. MIN. RECALL", "A-10"}, {"EXT. START", "A-11"}, {"TBC ONLINE", "A-15"}, {"STOP TIME (1)", "A-30"}, {"STOP TIME (2)", "A-30"}, {"MAX. 2 (1)", "A-5"}, {"MAX. 2 (2)", "A-6"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"FORCE OFF (1)", "A-3"}, {"FORCE OFF (2)", "A-4"}, {"CNA 1", "A-7"}, {"WALK REST MOD.", "A-9"}, {"PED. ISO. 1", "B-6"}, {"PED. ISO. 2", "PC2-A"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"PED. ISO. 3", "B-7"}, {"PED. ISO. 4", "PC4-A"}, {"PED. ISO. COMN.", "J3-D1"}, {"ADDR. SEL. 0", "-----"}, {"ADDR. SEL. 1", "-----"}, {"ADDR. SEL. 2", "-----"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"ADDR. SEL. 3", "-----"}, {"RESERVED", "-----"}, {"RESERVED", "-----"}, {"EARTH GND.", "LS12-2"}, {"LINE FREQ. REF.", "J3-C9"}, {"LOGIC GND.", "B-14"},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{"LOGIC GND.", "J2-32A"}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CurProLabel.Text = "Creating BIU 1's listing"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CurProLabel.Refresh()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;For i As Integer = 0 To BIU1Listing.GetLength(0) - 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;WriteStd(FuctionXPos + "," + (YPos1st - 0.12 * i).ToString(New CultureInfo("en-US")), BIUFont, 0, BIU1Listing(i, 0))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;WriteStd(ToXPos + "," + (YPos1st - 0.12 * i).ToString(New CultureInfo("en-US")), BIUFont, 0, BIU1Listing(i, 1))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CurCounter.Text = i.ToString(New CultureInfo("en-US")) + " of " + (BIU1Listing.GetLength(0) - 1).ToString(New CultureInfo("en-US"))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CurCounter.Refresh()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Next&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;End Sub&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Here is the function WriteStd :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub WriteStd(ByVal location, ByVal size, ByVal rotation, ByVal content)&lt;BR /&gt;Dim sw As StreamWriter&lt;BR /&gt;sw = File.AppendText(ScriptPathTXT)&lt;BR /&gt;sw.WriteLine("_.text")&lt;BR /&gt;sw.WriteLine("style")&lt;BR /&gt;sw.WriteLine("Standard")&lt;BR /&gt;sw.WriteLine(location)&lt;BR /&gt;sw.WriteLine(size)&lt;BR /&gt;sw.WriteLine(rotation)&lt;BR /&gt;sw.WriteLine(content)&lt;BR /&gt;sw.Flush()&lt;BR /&gt;sw.Close()&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The items in given the code given here&amp;nbsp;are too big and not in the right place on the drawing generated.&lt;/P&gt;&lt;P&gt;I think the guy was using the File TXT.SHX (an old version of the file) with Autocad 2012.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if I should to remap my Autocad to this file or not ? And how to map Autocad to this file ?&lt;/P&gt;&lt;P&gt;Also my window is in french, I do not know if that could be an issue&lt;/P&gt;&lt;P&gt;I have added in my program :&amp;nbsp;Thread.CurrentThread.CurrentCulture = New Globalization.CultureInfo("en-us")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 18:31:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-vb-program-generates-bigger-shapes-than-usual/m-p/5633574#M40119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-13T18:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: the VB program generates bigger shapes than usual</title>
      <link>https://forums.autodesk.com/t5/net-forum/the-vb-program-generates-bigger-shapes-than-usual/m-p/5639916#M40120</link>
      <description>Looks like a UNITS problem, please check on your machine and on your colleague machine to compare.</description>
      <pubDate>Mon, 18 May 2015 13:43:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/the-vb-program-generates-bigger-shapes-than-usual/m-p/5639916#M40120</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2015-05-18T13:43:52Z</dc:date>
    </item>
  </channel>
</rss>

