Message 1 of 2
Hatching LWPolyline based on Object Data
Not applicable
07-03-2003
01:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I figured that I could check for the data in the object data tables using an
if..then, and then close the data table, but I don't see a method like this.
Here is the portion of the code that is not working correctly. At this
point, objEnt1(i) is a LWPolyline obtained by cycling through a selection
set.
bln = objODRecords.Init(objEnt1(i), True, False)
If objODRecords.Record.Item(2).Value = 18 Then
Set objPline(0) = objEnt1(i) 'set the AcadEntity for the
hatch outer loop
Set objHatch =
ThisDrawing.ModelSpace.AddHatch(acHatchPatternTypePreDefined, "SOLID", True)
objHatch.AppendOuterLoop objPline
End IF
Am I missing something simple? Am I trying to do something the hard way? any
help is really appreciated. Thanks - mike
if..then, and then close the data table, but I don't see a method like this.
Here is the portion of the code that is not working correctly. At this
point, objEnt1(i) is a LWPolyline obtained by cycling through a selection
set.
bln = objODRecords.Init(objEnt1(i), True, False)
If objODRecords.Record.Item(2).Value = 18 Then
Set objPline(0) = objEnt1(i) 'set the AcadEntity for the
hatch outer loop
Set objHatch =
ThisDrawing.ModelSpace.AddHatch(acHatchPatternTypePreDefined, "SOLID", True)
objHatch.AppendOuterLoop objPline
End IF
Am I missing something simple? Am I trying to do something the hard way? any
help is really appreciated. Thanks - mike