<?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: writing dxf files in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/writing-dxf-files/m-p/356957#M70972</link>
    <description>Open a blank drawing, draw a lwpolyline on it. Execute DXFOUT and look at the code that is generated by AutoCAD. Make it the same as theirs. The DXF file is nothing more than an ASCII text file.&lt;BR /&gt;
&lt;BR /&gt;
Joe&lt;BR /&gt;
--</description>
    <pubDate>Wed, 04 Sep 2002 04:06:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-09-04T04:06:04Z</dc:date>
    <item>
      <title>writing dxf files</title>
      <link>https://forums.autodesk.com/t5/vba-forum/writing-dxf-files/m-p/356956#M70971</link>
      <description>hello everyone&lt;BR /&gt;
I am trying to insert a new entity (a LWPOLYLINE) inside an empty (is not&lt;BR /&gt;
essential) dxf file using an text editor. One of the group codes describing&lt;BR /&gt;
the polylines entities regards the HANDLE (code "5")(see at&lt;BR /&gt;
http://www.autodesk.com/techpubs/autocad/acad2000/dxf/lwpolyline_dxf_06.htm&lt;BR /&gt;
and&lt;BR /&gt;
http://www.autodesk.com/techpubs/autocad/acad2000/dxf/common_group_codes_for&lt;BR /&gt;
_entities_dxf_06.htm#XREF_22164_DXF_06)&lt;BR /&gt;
. I do not know how to define the handle for the entity I want to insert.&lt;BR /&gt;
Any suggestion is welcome.&lt;BR /&gt;
Thanx&lt;BR /&gt;
Bepcan</description>
      <pubDate>Tue, 03 Sep 2002 22:52:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/writing-dxf-files/m-p/356956#M70971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-03T22:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: writing dxf files</title>
      <link>https://forums.autodesk.com/t5/vba-forum/writing-dxf-files/m-p/356957#M70972</link>
      <description>Open a blank drawing, draw a lwpolyline on it. Execute DXFOUT and look at the code that is generated by AutoCAD. Make it the same as theirs. The DXF file is nothing more than an ASCII text file.&lt;BR /&gt;
&lt;BR /&gt;
Joe&lt;BR /&gt;
--</description>
      <pubDate>Wed, 04 Sep 2002 04:06:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/writing-dxf-files/m-p/356957#M70972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-04T04:06:04Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/writing-dxf-files/m-p/356958#M70973</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;As far as I know, you don't write the handle when &lt;BR /&gt;
creating an object in a dxf file.&amp;nbsp; Just ignore this group code when you are &lt;BR /&gt;
creating the polyline.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Rob&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"joesu" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:joesu@worldnet.att.net"&amp;gt;joesu@worldnet.att.net&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
  message &lt;A&gt;&lt;BR /&gt;
  href="news:f10aad7.0@WebX.maYIadrTaRb"&amp;gt;news:f10aad7.0@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Open &lt;BR /&gt;
  a blank drawing, draw a lwpolyline on it. Execute DXFOUT and look at the code &lt;BR /&gt;
  that is generated by AutoCAD. Make it the same as theirs. The DXF file is &lt;BR /&gt;
  nothing more than an ASCII text file. &lt;BR /&gt;
  &lt;P&gt;Joe &lt;BR /&gt;--&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 04 Sep 2002 14:40:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/writing-dxf-files/m-p/356958#M70973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-04T14:40:47Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/writing-dxf-files/m-p/356959#M70974</link>
      <description>Well, AutoCAD is writing it to the DXF file. This is an excerpt from a file created using DXFOUT in AutoCAD. 2B is the handle of the LWPolyline.&lt;BR /&gt;
&lt;BR /&gt;
Joe&lt;BR /&gt;
--&lt;BR /&gt;
ENTITIES&lt;BR /&gt;
  0&lt;BR /&gt;
LWPOLYLINE&lt;BR /&gt;
  5&lt;BR /&gt;
2B</description>
      <pubDate>Thu, 05 Sep 2002 04:00:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/writing-dxf-files/m-p/356959#M70974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-05T04:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: writing dxf files</title>
      <link>https://forums.autodesk.com/t5/vba-forum/writing-dxf-files/m-p/356960#M70975</link>
      <description>&amp;gt; I am trying to insert a new entity (a LWPOLYLINE) inside an empty (is not&lt;BR /&gt;
&amp;gt; essential) dxf file using an text editor. One of the group codes describing&lt;BR /&gt;
&amp;gt; the polylines entities regards the HANDLE (code "5")(see at&lt;BR /&gt;
&amp;gt; http://www.autodesk.com/techpubs/autocad/acad2000/dxf/lwpolyline_dxf_06.htm&lt;BR /&gt;
&amp;gt; and&lt;BR /&gt;
&amp;gt; http://www.autodesk.com/techpubs/autocad/acad2000/dxf/common_group_codes_for&lt;BR /&gt;
&amp;gt; _entities_dxf_06.htm#XREF_22164_DXF_06)&lt;BR /&gt;
&amp;gt; . I do not know how to define the handle for the entity I want to insert.&lt;BR /&gt;
&amp;gt; Any suggestion is welcome.&lt;BR /&gt;
&lt;BR /&gt;
Write the files using an only style polyline. You don't need the handles &lt;BR /&gt;
and all the other junk that Autodesk now requires in DXF files now for &lt;BR /&gt;
some of the newer entity types.  The following is all you would need for &lt;BR /&gt;
a polyline.&lt;BR /&gt;
&lt;BR /&gt;
This works because AutoCAD will support older file format versions of &lt;BR /&gt;
DXF which didn't have nearly as much info. Once you start using newer &lt;BR /&gt;
entities or items in the DXF file, AutoCAD then needs a lot more junk to &lt;BR /&gt;
go with it to support them. Handles are just one of those things that's &lt;BR /&gt;
needed in a newer DXF file version that isn't in the older ones.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Darren Young&lt;BR /&gt;
&lt;BR /&gt;
Minnesota CADWorks, Inc.&lt;BR /&gt;
PO Box 1172&lt;BR /&gt;
Monticello, Minnesota 55362-1172&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
---snip---snip---snip--- Start DXF File&lt;BR /&gt;
  0&lt;BR /&gt;
SECTION&lt;BR /&gt;
  2&lt;BR /&gt;
ENTITIES&lt;BR /&gt;
  0&lt;BR /&gt;
POLYLINE&lt;BR /&gt;
  8&lt;BR /&gt;
0&lt;BR /&gt;
 66&lt;BR /&gt;
     1&lt;BR /&gt;
 10&lt;BR /&gt;
0.0&lt;BR /&gt;
 20&lt;BR /&gt;
0.0&lt;BR /&gt;
 30&lt;BR /&gt;
0.0&lt;BR /&gt;
  0&lt;BR /&gt;
VERTEX&lt;BR /&gt;
  8&lt;BR /&gt;
0&lt;BR /&gt;
 10&lt;BR /&gt;
2.725886&lt;BR /&gt;
 20&lt;BR /&gt;
5.285&lt;BR /&gt;
 30&lt;BR /&gt;
0.0&lt;BR /&gt;
  0&lt;BR /&gt;
VERTEX&lt;BR /&gt;
  8&lt;BR /&gt;
0&lt;BR /&gt;
 10&lt;BR /&gt;
4.566485&lt;BR /&gt;
 20&lt;BR /&gt;
5.285&lt;BR /&gt;
 30&lt;BR /&gt;
0.0&lt;BR /&gt;
  0&lt;BR /&gt;
SEQEND&lt;BR /&gt;
  8&lt;BR /&gt;
0&lt;BR /&gt;
  0&lt;BR /&gt;
ENDSEC&lt;BR /&gt;
  0&lt;BR /&gt;
EOF&lt;BR /&gt;
---snip---snip---snip--- End DXF File</description>
      <pubDate>Thu, 05 Sep 2002 07:45:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/writing-dxf-files/m-p/356960#M70975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-05T07:45:39Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/writing-dxf-files/m-p/356961#M70976</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;If you delete the lines with the "5" and the "2B" &lt;BR /&gt;
from the DXF file and then do a dxfin in AutoCAD, you will see that the polyline &lt;BR /&gt;
will be created.&amp;nbsp; If you list it, AutoCAD has automatically given it a &lt;BR /&gt;
handle and it is not needed in the DXF file.&amp;nbsp; Unless you need to identify &lt;BR /&gt;
that exact polyline at a later time, you will not need the handle.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"joesu" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:joesu@worldnet.att.net"&amp;gt;joesu@worldnet.att.net&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
  message &lt;A&gt;&lt;BR /&gt;
  href="news:f10aad7.2@WebX.maYIadrTaRb"&amp;gt;news:f10aad7.2@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Well, &lt;BR /&gt;
  AutoCAD is writing it to the DXF file. This is an excerpt from a file created &lt;BR /&gt;
  using DXFOUT in AutoCAD. 2B is the handle of the LWPolyline. &lt;BR /&gt;
  &lt;P&gt;Joe &lt;BR /&gt;-- &lt;BR /&gt;ENTITIES &lt;BR /&gt;&amp;nbsp;&amp;nbsp;0 &lt;BR /&gt;LWPOLYLINE &lt;BR /&gt;&amp;nbsp;&amp;nbsp;5 &lt;BR /&gt;
  &lt;BR /&gt;2B&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 05 Sep 2002 08:29:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/writing-dxf-files/m-p/356961#M70976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-05T08:29:14Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/writing-dxf-files/m-p/356962#M70977</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Sorry:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I was using a AcadPolyline not &lt;BR /&gt;
AcadLWPolyline&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"RWEBB" &amp;lt;&lt;A href="mailto:rwebb@smednet.com"&gt;rwebb@smednet.com&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:A09077D689ADAE685465AA17BEF7CA4A@in.WebX.maYIadrTaRb"&amp;gt;news:A09077D689ADAE685465AA17BEF7CA4A@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;If you delete the lines with the "5" and the "2B" &lt;BR /&gt;
  from the DXF file and then do a dxfin in AutoCAD, you will see that the &lt;BR /&gt;
  polyline will be created.&amp;nbsp; If you list it, AutoCAD has automatically &lt;BR /&gt;
  given it a handle and it is not needed in the DXF file.&amp;nbsp; Unless you need &lt;BR /&gt;
  to identify that exact polyline at a later time, you will not need the &lt;BR /&gt;
  handle.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
    &lt;DIV&gt;"joesu" &amp;lt;&lt;A&gt;&lt;BR /&gt;
    href="mailto:joesu@worldnet.att.net"&amp;gt;joesu@worldnet.att.net&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
    message &lt;A&gt;&lt;BR /&gt;
    href="news:f10aad7.2@WebX.maYIadrTaRb"&amp;gt;news:f10aad7.2@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Well, &lt;BR /&gt;
    AutoCAD is writing it to the DXF file. This is an excerpt from a file &lt;BR /&gt;
    created using DXFOUT in AutoCAD. 2B is the handle of the LWPolyline. &lt;BR /&gt;
    &lt;P&gt;Joe &lt;BR /&gt;-- &lt;BR /&gt;ENTITIES &lt;BR /&gt;&amp;nbsp;&amp;nbsp;0 &lt;BR /&gt;LWPOLYLINE &lt;BR /&gt;
    &lt;BR /&gt;&amp;nbsp;&amp;nbsp;5 &lt;BR /&gt;2B&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 05 Sep 2002 08:40:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/writing-dxf-files/m-p/356962#M70977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-05T08:40:30Z</dc:date>
    </item>
  </channel>
</rss>

