jrice174
Civil/Environmental
- Nov 8, 2004
- 129
Can I change certain coordinates of a LWPolyline using VBA? I'm trying to raise certain Y coordinates by 4". I've written the below code which seems like it should work but it doesn't do anything.
For i = LBound(objLWPoly.Coordinates) To UBound(objLWPoly.Coordinates) - 1 Step 2
objLWPoly.Coordinates(i) = objLWPoly.Coordinates(i)
objLWPoly.Coordinates(i + 1) = objLWPoly.Coordinates(i + 1) + (4)
Next
objLWPoly.Update
End If
ThisDrawing.Application.Update
Any ideas on what I'm doing wrong and how to fix it?
For i = LBound(objLWPoly.Coordinates) To UBound(objLWPoly.Coordinates) - 1 Step 2
objLWPoly.Coordinates(i) = objLWPoly.Coordinates(i)
objLWPoly.Coordinates(i + 1) = objLWPoly.Coordinates(i + 1) + (4)
Next
objLWPoly.Update
End If
ThisDrawing.Application.Update
Any ideas on what I'm doing wrong and how to fix it?