For Each ent In ThisDrawing.ModelSpace
intPoints = vbEmpty
intPoints = lineObj.IntersectWith(ent, acExtendNone)
If VarType(intPoints) <> vbEmpty Then
ReDim Preserve px(I) As Variant
ReDim Preserve py(I) As Variant
ReDim Preserve pz(I) As Variant
px(I) = intPoints(0)
py(I) = intPoints(1)
pz(I) = intPoints(2)
MsgBox px(I) & py(I) & pz(I)
End If
Next ent |