<?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: how to apply solid or hatch to non-rectangular polylines in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/how-to-apply-solid-or-hatch-to-non-rectangular-polylines/m-p/1501599#M38498</link>
    <description>john coon wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Need help with solids or hatch:&lt;BR /&gt;
&amp;gt; I can't seem to find a sample to apply solid or solid hatch to a&lt;BR /&gt;
&amp;gt; outline polyline that is created below.&lt;BR /&gt;
&amp;gt; I placed a sample drawing in the customer-area that shows a arrow&lt;BR /&gt;
&amp;gt; head. this is what I am trying to apply the solid or&lt;BR /&gt;
&amp;gt; hatch to.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; 'create polyline&lt;BR /&gt;
&amp;gt; Dim DRWPOLYAPPR2 As AcadLWPolyline&lt;BR /&gt;
&amp;gt; Dim approachpoints2(13) As Double&lt;BR /&gt;
&amp;gt; approachpoints2(0) = newpt1013(0): approachpoints2(1) = newpt1013(1)&lt;BR /&gt;
&amp;gt; approachpoints2(2) = newpt1015(0): approachpoints2(3) = newpt1015(1)&lt;BR /&gt;
&amp;gt; approachpoints2(4) = newpt1016(0): approachpoints2(5) = newpt1016(1)&lt;BR /&gt;
&amp;gt; approachpoints2(6) = newpt1014(0): approachpoints2(7) = newpt1014(1)&lt;BR /&gt;
&amp;gt; approachpoints2(8) = newpt1018(0): approachpoints2(9) = newpt1018(1)&lt;BR /&gt;
&amp;gt; approachpoints2(10) = newpt1017(0): approachpoints2(11) = newpt1017(1)&lt;BR /&gt;
&amp;gt; approachpoints2(12) = newpt1013(0): approachpoints2(13) = newpt1013(1)&lt;BR /&gt;
&amp;gt; Set DRWPOLYAPPR2 = &lt;BR /&gt;
&amp;gt; ThisDrawing.ModelSpace.AddLightWeightPolyline(approachpoints2)&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; ' I was able to create solids on rectangles but not on odds shaped&lt;BR /&gt;
&amp;gt; geometry.  This is how I created the solids in the sample&lt;BR /&gt;
&amp;gt; 'in the customer-area&lt;BR /&gt;
&amp;gt; Dim solidObj As AcadSolid&lt;BR /&gt;
&amp;gt; Set solidObj = ThisDrawing.ModelSpace.AddSolid(newpt9003, newpt9004, &lt;BR /&gt;
&amp;gt; newpt9006, newpt9005)&lt;BR /&gt;
&amp;gt; Set solidObj = ThisDrawing.ModelSpace.AddSolid(newpt9007, newpt9008, &lt;BR /&gt;
&amp;gt; newpt9010, newpt9009)&lt;BR /&gt;
&amp;gt; Set solidObj = ThisDrawing.ModelSpace.AddSolid(newpt9011, newpt9012, &lt;BR /&gt;
&amp;gt; newpt9014, newpt9013)&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Any comments are welcome.&lt;BR /&gt;
&amp;gt; John Coon&lt;BR /&gt;
&lt;BR /&gt;
How about trying to create those solids manually in autocad first to&lt;BR /&gt;
see how it works?  I think you will find that solid elements are always&lt;BR /&gt;
4 sided and the points expressed in a kind of Z fashion.&lt;BR /&gt;
&lt;BR /&gt;
If you don't want a lot of sloids, consider doing a solid hatch object&lt;BR /&gt;
that has your polygon as a path.&lt;BR /&gt;
&lt;BR /&gt;
Either way, testing how one creates the data required manually in&lt;BR /&gt;
autocad and then it might help you understand how you should code the&lt;BR /&gt;
vba.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.&lt;BR /&gt;
&lt;BR /&gt;
Andrew&lt;BR /&gt;
&lt;BR /&gt;
--</description>
    <pubDate>Mon, 05 Dec 2005 13:58:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-12-05T13:58:03Z</dc:date>
    <item>
      <title>how to apply solid or hatch to non-rectangular polylines</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-apply-solid-or-hatch-to-non-rectangular-polylines/m-p/1501598#M38497</link>
      <description>Need help with solids or hatch:&lt;BR /&gt;
I can't seem to find a sample to apply solid or solid hatch to a outline &lt;BR /&gt;
polyline that is created below.&lt;BR /&gt;
I placed a sample drawing in the customer-area that shows a arrow head. this &lt;BR /&gt;
is what I am trying to apply the solid or&lt;BR /&gt;
hatch to.&lt;BR /&gt;
&lt;BR /&gt;
'create polyline&lt;BR /&gt;
Dim DRWPOLYAPPR2 As AcadLWPolyline&lt;BR /&gt;
Dim approachpoints2(13) As Double&lt;BR /&gt;
approachpoints2(0) = newpt1013(0): approachpoints2(1) = newpt1013(1)&lt;BR /&gt;
approachpoints2(2) = newpt1015(0): approachpoints2(3) = newpt1015(1)&lt;BR /&gt;
approachpoints2(4) = newpt1016(0): approachpoints2(5) = newpt1016(1)&lt;BR /&gt;
approachpoints2(6) = newpt1014(0): approachpoints2(7) = newpt1014(1)&lt;BR /&gt;
approachpoints2(8) = newpt1018(0): approachpoints2(9) = newpt1018(1)&lt;BR /&gt;
approachpoints2(10) = newpt1017(0): approachpoints2(11) = newpt1017(1)&lt;BR /&gt;
approachpoints2(12) = newpt1013(0): approachpoints2(13) = newpt1013(1)&lt;BR /&gt;
Set DRWPOLYAPPR2 = &lt;BR /&gt;
ThisDrawing.ModelSpace.AddLightWeightPolyline(approachpoints2)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
' I was able to create solids on rectangles but not on odds shaped geometry. &lt;BR /&gt;
This is how I created the solids in the sample&lt;BR /&gt;
'in the customer-area&lt;BR /&gt;
Dim solidObj As AcadSolid&lt;BR /&gt;
Set solidObj = ThisDrawing.ModelSpace.AddSolid(newpt9003, newpt9004, &lt;BR /&gt;
newpt9006, newpt9005)&lt;BR /&gt;
Set solidObj = ThisDrawing.ModelSpace.AddSolid(newpt9007, newpt9008, &lt;BR /&gt;
newpt9010, newpt9009)&lt;BR /&gt;
Set solidObj = ThisDrawing.ModelSpace.AddSolid(newpt9011, newpt9012, &lt;BR /&gt;
newpt9014, newpt9013)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Any comments are welcome.&lt;BR /&gt;
John Coon</description>
      <pubDate>Mon, 05 Dec 2005 13:33:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-apply-solid-or-hatch-to-non-rectangular-polylines/m-p/1501598#M38497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-05T13:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply solid or hatch to non-rectangular polylines</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-apply-solid-or-hatch-to-non-rectangular-polylines/m-p/1501599#M38498</link>
      <description>john coon wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Need help with solids or hatch:&lt;BR /&gt;
&amp;gt; I can't seem to find a sample to apply solid or solid hatch to a&lt;BR /&gt;
&amp;gt; outline polyline that is created below.&lt;BR /&gt;
&amp;gt; I placed a sample drawing in the customer-area that shows a arrow&lt;BR /&gt;
&amp;gt; head. this is what I am trying to apply the solid or&lt;BR /&gt;
&amp;gt; hatch to.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; 'create polyline&lt;BR /&gt;
&amp;gt; Dim DRWPOLYAPPR2 As AcadLWPolyline&lt;BR /&gt;
&amp;gt; Dim approachpoints2(13) As Double&lt;BR /&gt;
&amp;gt; approachpoints2(0) = newpt1013(0): approachpoints2(1) = newpt1013(1)&lt;BR /&gt;
&amp;gt; approachpoints2(2) = newpt1015(0): approachpoints2(3) = newpt1015(1)&lt;BR /&gt;
&amp;gt; approachpoints2(4) = newpt1016(0): approachpoints2(5) = newpt1016(1)&lt;BR /&gt;
&amp;gt; approachpoints2(6) = newpt1014(0): approachpoints2(7) = newpt1014(1)&lt;BR /&gt;
&amp;gt; approachpoints2(8) = newpt1018(0): approachpoints2(9) = newpt1018(1)&lt;BR /&gt;
&amp;gt; approachpoints2(10) = newpt1017(0): approachpoints2(11) = newpt1017(1)&lt;BR /&gt;
&amp;gt; approachpoints2(12) = newpt1013(0): approachpoints2(13) = newpt1013(1)&lt;BR /&gt;
&amp;gt; Set DRWPOLYAPPR2 = &lt;BR /&gt;
&amp;gt; ThisDrawing.ModelSpace.AddLightWeightPolyline(approachpoints2)&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; ' I was able to create solids on rectangles but not on odds shaped&lt;BR /&gt;
&amp;gt; geometry.  This is how I created the solids in the sample&lt;BR /&gt;
&amp;gt; 'in the customer-area&lt;BR /&gt;
&amp;gt; Dim solidObj As AcadSolid&lt;BR /&gt;
&amp;gt; Set solidObj = ThisDrawing.ModelSpace.AddSolid(newpt9003, newpt9004, &lt;BR /&gt;
&amp;gt; newpt9006, newpt9005)&lt;BR /&gt;
&amp;gt; Set solidObj = ThisDrawing.ModelSpace.AddSolid(newpt9007, newpt9008, &lt;BR /&gt;
&amp;gt; newpt9010, newpt9009)&lt;BR /&gt;
&amp;gt; Set solidObj = ThisDrawing.ModelSpace.AddSolid(newpt9011, newpt9012, &lt;BR /&gt;
&amp;gt; newpt9014, newpt9013)&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Any comments are welcome.&lt;BR /&gt;
&amp;gt; John Coon&lt;BR /&gt;
&lt;BR /&gt;
How about trying to create those solids manually in autocad first to&lt;BR /&gt;
see how it works?  I think you will find that solid elements are always&lt;BR /&gt;
4 sided and the points expressed in a kind of Z fashion.&lt;BR /&gt;
&lt;BR /&gt;
If you don't want a lot of sloids, consider doing a solid hatch object&lt;BR /&gt;
that has your polygon as a path.&lt;BR /&gt;
&lt;BR /&gt;
Either way, testing how one creates the data required manually in&lt;BR /&gt;
autocad and then it might help you understand how you should code the&lt;BR /&gt;
vba.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.&lt;BR /&gt;
&lt;BR /&gt;
Andrew&lt;BR /&gt;
&lt;BR /&gt;
--</description>
      <pubDate>Mon, 05 Dec 2005 13:58:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-apply-solid-or-hatch-to-non-rectangular-polylines/m-p/1501599#M38498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-05T13:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply solid or hatch to non-rectangular polylines</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-apply-solid-or-hatch-to-non-rectangular-polylines/m-p/1501600#M38499</link>
      <description>Hi John,&lt;BR /&gt;
I would suggest the Solid Hatch option. Trying to fill an irregular shape &lt;BR /&gt;
with basic solids will result in multiple objects that will be difficult to &lt;BR /&gt;
maintain.&lt;BR /&gt;
Once you have your pline:&lt;BR /&gt;
Dim objHatch as AcadHatch&lt;BR /&gt;
Set objPline = &lt;BR /&gt;
ThisDrawing.ModelSpace.AddLightWeightPolyline(approachpoints2)&lt;BR /&gt;
objPline.Closed = True&lt;BR /&gt;
Set objHatch = ThisDrawing.ModelSpace.AddHatch(acHatchPatternTypePreDefined, &lt;BR /&gt;
"SOLID", True)&lt;BR /&gt;
Set arrLoop(0) = objPline&lt;BR /&gt;
objHatch.AppendOuterLoop arrLoop&lt;BR /&gt;
objHatch.Evaluate&lt;BR /&gt;
&lt;BR /&gt;
"john coon" &lt;JCOON&gt; wrote in message &lt;BR /&gt;
news:5029062@discussion.autodesk.com...&lt;BR /&gt;
Need help with solids or hatch:&lt;BR /&gt;
I can't seem to find a sample to apply solid or solid hatch to a outline&lt;BR /&gt;
polyline that is created below.&lt;BR /&gt;
I placed a sample drawing in the customer-area that shows a arrow head. this&lt;BR /&gt;
is what I am trying to apply the solid or&lt;BR /&gt;
hatch to.&lt;/JCOON&gt;</description>
      <pubDate>Mon, 05 Dec 2005 18:24:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-apply-solid-or-hatch-to-non-rectangular-polylines/m-p/1501600#M38499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-05T18:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply solid or hatch to non-rectangular polylines</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-apply-solid-or-hatch-to-non-rectangular-polylines/m-p/1501601#M38500</link>
      <description>Jeff,&lt;BR /&gt;
&lt;BR /&gt;
The multiple objects is what I was trying to avoid. I  used the Set solidObj &lt;BR /&gt;
= ThisDrawing.ModelSpace.AddSolid&lt;BR /&gt;
and like you said I ended up with multiple object. Not what I was looking &lt;BR /&gt;
for!&lt;BR /&gt;
&lt;BR /&gt;
I could find a sample that was clear to me last night in my routine.&lt;BR /&gt;
&lt;BR /&gt;
This looks like just what the doctor ordered. I'll try your sample tonight.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks as always for the help!&lt;BR /&gt;
Have a great day.&lt;BR /&gt;
&lt;BR /&gt;
John Coon&lt;BR /&gt;
&lt;BR /&gt;
"Jeff Mishler" &lt;MIFFATSONICDOTNETIS_ALL&gt; wrote in message &lt;BR /&gt;
news:5029432@discussion.autodesk.com...&lt;BR /&gt;
Hi John,&lt;BR /&gt;
I would suggest the Solid Hatch option. Trying to fill an irregular shape&lt;BR /&gt;
with basic solids will result in multiple objects that will be difficult to&lt;BR /&gt;
maintain.&lt;BR /&gt;
Once you have your pline:&lt;BR /&gt;
Dim objHatch as AcadHatch&lt;BR /&gt;
Set objPline =&lt;BR /&gt;
ThisDrawing.ModelSpace.AddLightWeightPolyline(approachpoints2)&lt;BR /&gt;
objPline.Closed = True&lt;BR /&gt;
Set objHatch = ThisDrawing.ModelSpace.AddHatch(acHatchPatternTypePreDefined,&lt;BR /&gt;
"SOLID", True)&lt;BR /&gt;
Set arrLoop(0) = objPline&lt;BR /&gt;
objHatch.AppendOuterLoop arrLoop&lt;BR /&gt;
objHatch.Evaluate&lt;BR /&gt;
&lt;BR /&gt;
"john coon" &lt;JCOON&gt; wrote in message&lt;BR /&gt;
news:5029062@discussion.autodesk.com...&lt;BR /&gt;
Need help with solids or hatch:&lt;BR /&gt;
I can't seem to find a sample to apply solid or solid hatch to a outline&lt;BR /&gt;
polyline that is created below.&lt;BR /&gt;
I placed a sample drawing in the customer-area that shows a arrow head. this&lt;BR /&gt;
is what I am trying to apply the solid or&lt;BR /&gt;
hatch to.&lt;/JCOON&gt;&lt;/MIFFATSONICDOTNETIS_ALL&gt;</description>
      <pubDate>Mon, 05 Dec 2005 19:45:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-apply-solid-or-hatch-to-non-rectangular-polylines/m-p/1501601#M38500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-05T19:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply solid or hatch to non-rectangular polylines</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-apply-solid-or-hatch-to-non-rectangular-polylines/m-p/1501602#M38501</link>
      <description>(((((( Jeff ))))))&lt;BR /&gt;
&lt;BR /&gt;
That as it! Your the best&lt;BR /&gt;
&lt;BR /&gt;
Thank you&lt;BR /&gt;
John Coon&lt;BR /&gt;
&lt;BR /&gt;
If UserForm1.CheckBox1 = True Then&lt;BR /&gt;
&lt;BR /&gt;
Set layerObj = ThisDrawing.Layers.Add("C-STRP-PATT")&lt;BR /&gt;
layerObj.Color = acYellow&lt;BR /&gt;
ThisDrawing.ActiveLayer = layerObj&lt;BR /&gt;
&lt;BR /&gt;
Dim objPline As AcadLWPolyline&lt;BR /&gt;
Dim outerLoop(0 To 0) As AcadEntity&lt;BR /&gt;
Set objPline = &lt;BR /&gt;
ThisDrawing.ModelSpace.AddLightWeightPolyline(approachpoints8)&lt;BR /&gt;
objPline.Closed = True&lt;BR /&gt;
Set objHatch = ThisDrawing.ModelSpace.AddHatch(acHatchPatternTypePreDefined, &lt;BR /&gt;
"SOLID", True)&lt;BR /&gt;
Set outerLoop(0) = objPline&lt;BR /&gt;
objHatch.AppendOuterLoop outerLoop&lt;BR /&gt;
objHatch.Evaluate&lt;BR /&gt;
objPline.Delete&lt;BR /&gt;
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;BR /&gt;
Set objPline = &lt;BR /&gt;
ThisDrawing.ModelSpace.AddLightWeightPolyline(approachpoints9)&lt;BR /&gt;
objPline.Closed = True&lt;BR /&gt;
Set objHatch = ThisDrawing.ModelSpace.AddHatch(acHatchPatternTypePreDefined, &lt;BR /&gt;
"SOLID", True)&lt;BR /&gt;
Set outerLoop(0) = objPline&lt;BR /&gt;
objHatch.AppendOuterLoop outerLoop&lt;BR /&gt;
objHatch.Evaluate&lt;BR /&gt;
objPline.Delete&lt;BR /&gt;
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;BR /&gt;
End If&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Jeff Mishler" &lt;MIFFATSONICDOTNETIS_ALL&gt; wrote in message &lt;BR /&gt;
news:5029432@discussion.autodesk.com...&lt;BR /&gt;
Hi John,&lt;BR /&gt;
I would suggest the Solid Hatch option. Trying to fill an irregular shape&lt;BR /&gt;
with basic solids will result in multiple objects that will be difficult to&lt;BR /&gt;
maintain.&lt;BR /&gt;
Once you have your pline:&lt;BR /&gt;
Dim objHatch as AcadHatch&lt;BR /&gt;
Set objPline =&lt;BR /&gt;
ThisDrawing.ModelSpace.AddLightWeightPolyline(approachpoints2)&lt;BR /&gt;
objPline.Closed = True&lt;BR /&gt;
Set objHatch = ThisDrawing.ModelSpace.AddHatch(acHatchPatternTypePreDefined,&lt;BR /&gt;
"SOLID", True)&lt;BR /&gt;
Set arrLoop(0) = objPline&lt;BR /&gt;
objHatch.AppendOuterLoop arrLoop&lt;BR /&gt;
objHatch.Evaluate&lt;BR /&gt;
&lt;BR /&gt;
"john coon" &lt;JCOON&gt; wrote in message&lt;BR /&gt;
news:5029062@discussion.autodesk.com...&lt;BR /&gt;
Need help with solids or hatch:&lt;BR /&gt;
I can't seem to find a sample to apply solid or solid hatch to a outline&lt;BR /&gt;
polyline that is created below.&lt;BR /&gt;
I placed a sample drawing in the customer-area that shows a arrow head. this&lt;BR /&gt;
is what I am trying to apply the solid or&lt;BR /&gt;
hatch to.&lt;/JCOON&gt;&lt;/MIFFATSONICDOTNETIS_ALL&gt;</description>
      <pubDate>Mon, 05 Dec 2005 23:40:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-apply-solid-or-hatch-to-non-rectangular-polylines/m-p/1501602#M38501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-05T23:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply solid or hatch to non-rectangular polylines</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-apply-solid-or-hatch-to-non-rectangular-polylines/m-p/1501603#M38502</link>
      <description>You're welcome!&lt;BR /&gt;
BTW, I noticed that you are removing the pline at the end. I haven't tested &lt;BR /&gt;
it but I would think that you'd get a message about the associativity being &lt;BR /&gt;
lost. If you do, just change the True to False in the AddHatch line.....that &lt;BR /&gt;
specifies whether to create an associative hatch or not.&lt;BR /&gt;
&lt;BR /&gt;
Jeff&lt;BR /&gt;
&lt;BR /&gt;
"John Coon" &lt;JDCNH&gt; wrote in message &lt;BR /&gt;
news:5029852@discussion.autodesk.com...&lt;BR /&gt;
(((((( Jeff ))))))&lt;BR /&gt;
&lt;BR /&gt;
That as it! Your the best&lt;BR /&gt;
&lt;BR /&gt;
Thank you&lt;BR /&gt;
John Coon&lt;BR /&gt;
Set objHatch = ThisDrawing.ModelSpace.AddHatch(acHatchPatternTypePreDefined,&lt;BR /&gt;
"SOLID", True)&lt;BR /&gt;
Set outerLoop(0) = objPline&lt;BR /&gt;
objHatch.AppendOuterLoop outerLoop&lt;BR /&gt;
objHatch.Evaluate&lt;BR /&gt;
objPline.Delete&lt;BR /&gt;
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;BR /&gt;
End If&lt;/JDCNH&gt;</description>
      <pubDate>Mon, 05 Dec 2005 23:56:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-apply-solid-or-hatch-to-non-rectangular-polylines/m-p/1501603#M38502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-05T23:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to apply solid or hatch to non-rectangular polylines</title>
      <link>https://forums.autodesk.com/t5/vba-forum/how-to-apply-solid-or-hatch-to-non-rectangular-polylines/m-p/1501604#M38503</link>
      <description>Jeff,&lt;BR /&gt;
&lt;BR /&gt;
I didn't think of that but the associative hatch in my case will not be a &lt;BR /&gt;
problem as the items being created will not be resized. The reason for&lt;BR /&gt;
deleting the outline is that the routine inserts either hatch or non-hatched &lt;BR /&gt;
items and the hatch is placed on one layer so I can control visibility later &lt;BR /&gt;
on is the project where I don't need or want to show the hatch. when I ran &lt;BR /&gt;
just without the delete objpline I ended up with double the amount of plines &lt;BR /&gt;
because of the outline polyline so I needed to delete that.&lt;BR /&gt;
&lt;BR /&gt;
I'll check on the true / false message.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for all your help.&lt;BR /&gt;
&lt;BR /&gt;
John Coon&lt;BR /&gt;
&lt;BR /&gt;
"Jeff Mishler" &lt;MIFFATSONICDOTNETIS_ALL&gt; wrote in message &lt;BR /&gt;
news:5029822@discussion.autodesk.com...&lt;BR /&gt;
You're welcome!&lt;BR /&gt;
BTW, I noticed that you are removing the pline at the end. I haven't tested&lt;BR /&gt;
it but I would think that you'd get a message about the associativity being&lt;BR /&gt;
lost. If you do, just change the True to False in the AddHatch line.....that&lt;BR /&gt;
specifies whether to create an associative hatch or not.&lt;BR /&gt;
&lt;BR /&gt;
Jeff&lt;BR /&gt;
&lt;BR /&gt;
"John Coon" &lt;JDCNH&gt; wrote in message&lt;BR /&gt;
news:5029852@discussion.autodesk.com...&lt;BR /&gt;
(((((( Jeff ))))))&lt;BR /&gt;
&lt;BR /&gt;
That as it! Your the best&lt;BR /&gt;
&lt;BR /&gt;
Thank you&lt;BR /&gt;
John Coon&lt;BR /&gt;
Set objHatch = ThisDrawing.ModelSpace.AddHatch(acHatchPatternTypePreDefined,&lt;BR /&gt;
"SOLID", True)&lt;BR /&gt;
Set outerLoop(0) = objPline&lt;BR /&gt;
objHatch.AppendOuterLoop outerLoop&lt;BR /&gt;
objHatch.Evaluate&lt;BR /&gt;
objPline.Delete&lt;BR /&gt;
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;BR /&gt;
End If&lt;/JDCNH&gt;&lt;/MIFFATSONICDOTNETIS_ALL&gt;</description>
      <pubDate>Tue, 06 Dec 2005 11:41:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/how-to-apply-solid-or-hatch-to-non-rectangular-polylines/m-p/1501604#M38503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-06T11:41:36Z</dc:date>
    </item>
  </channel>
</rss>

