Message 1 of 8
help with IntersectWith, doesnt always return lowest point first.
Not applicable
03-26-2002
01:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
AutoCad2002
Win2000
How can I get the Intersect with to return the array with the lowest
selected points first,
example:
I have a rectangle and a vertical line drawn through it, depending on how I
draw that rectangle sometime the returned points are first the Upper
intersection,Lower intersection and sometimes they are Lower intersection,
Upper intersection - the latter is what I am aiming for. I need to insert
some blocks from the lower point to the higher point, the way I have it now
is to sporadic.
Without pasting to much useless, this is the intersection part:
''-----------------------------------------
If Me.optVertical.value = True Then
intPoints = objOutlineItem.IntersectWith(EachPLine, acExtendNone)
insertionPntOne(0) = intPoints(0)
insertionPntOne(1) = intPoints(1)
insertionPntOne(2) = intPoints(2)
insertionPntTwo(0) = intPoints(3)
insertionPntTwo(1) = intPoints(4)
insertionPntTwo(2) = intPoints(5)
Set blockRefObjLE = ThisDrawing.ModelSpace.InsertBlock(insertionPntTwo,
blkSstrand, 1#, 1#, 1#, 1.5708)
Set blockRefObjAN = ThisDrawing.ModelSpace.InsertBlock(insertionPntOne,
blkSanchor, 1#, 1#, 1#, 1.5708)
End If
''-----------------------------------------
AnyHelp, thanks
Win2000
How can I get the Intersect with to return the array with the lowest
selected points first,
example:
I have a rectangle and a vertical line drawn through it, depending on how I
draw that rectangle sometime the returned points are first the Upper
intersection,Lower intersection and sometimes they are Lower intersection,
Upper intersection - the latter is what I am aiming for. I need to insert
some blocks from the lower point to the higher point, the way I have it now
is to sporadic.
Without pasting to much useless, this is the intersection part:
''-----------------------------------------
If Me.optVertical.value = True Then
intPoints = objOutlineItem.IntersectWith(EachPLine, acExtendNone)
insertionPntOne(0) = intPoints(0)
insertionPntOne(1) = intPoints(1)
insertionPntOne(2) = intPoints(2)
insertionPntTwo(0) = intPoints(3)
insertionPntTwo(1) = intPoints(4)
insertionPntTwo(2) = intPoints(5)
Set blockRefObjLE = ThisDrawing.ModelSpace.InsertBlock(insertionPntTwo,
blkSstrand, 1#, 1#, 1#, 1.5708)
Set blockRefObjAN = ThisDrawing.ModelSpace.InsertBlock(insertionPntOne,
blkSanchor, 1#, 1#, 1#, 1.5708)
End If
''-----------------------------------------
AnyHelp, thanks