Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi There
i am trying to get Coordinates of polyline to be used later for selection set
but when i have arc it only get me start point and end point of an arc
i am using point array to get all object within selection set but i am missing all objects inside Arc/Circle portion
how i can adjust code to include Arcs within point array
Set Flooringshape1 = Room
Test = True
If TypeOf Flooringshape1 Is AcadCircle Then
Set Floorcircle = Flooringshape
circleCen(0) = Floorcircle.center(0)
circleCen(1) = Floorcircle.center(1)
circleRad = Floorcircle.radius
ElseIf TypeOf Flooringshape1 Is AcadLWPolyline Then
If Flooringshape1.closed = True Then
Set PL = Flooringshape1
sarea = PL.area
Slength = PL.length
ReDim points(UBound(PL.Coordinates) + (UBound(PL.Coordinates) + 1) / 2 + 3) As Double
ReDim savepoints(UBound(PL.Coordinates) + (UBound(PL.Coordinates) + 1) / 2 + 3) As Double
Dim Roompoints() As Double
''dim v As Variant
' V is the Room 2D coordinates
v = PL.Coordinates
End If
Dim i As Integer
L = UBound(v)
index = 0
' Change 2D Coordinates to 3D Z=0
For i = 0 To UBound(v) Step 2
points(index) = v(i)
points(index + 1) = v(i + 1)
points(index + 2) = 0
index = index + 3
Next
points(index) = points(0)
points(index + 1) = points(1)
points(index + 2) = 0
'3D Coordinates
savepoints = points
End If
Solved! Go to Solution.