Message 1 of 4
Convert objects to revcloud
Not applicable
08-31-2011
01:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to convert a closed 2D polyline into a revcloud (like using the command Revcloud > Object).
But it seems there's no VBA command to draw a revcloud.
So I had the idea to add bulges between each vertex, but with this solution my cloud's arcs can be very small...
Has anyone tried to make a macro doing this?
Any other solution to submit?
Thanks,
PS: Here is my code :
If Entity.Layer = "RevCloud" Then
If Entity.EntityType = acPolyline Then
NumberVertices = 0
vCoord = Entity.Coordinates
For Each Dcoord In vCoord
NumberVertices = NumberVertices + 1
Next
NumberVertices = NumberVertices / 3
If Entity.Type <> acSimplePoly Then
Entity.Type = acSimplePoly
End If
For nIndex = 0 To NumberVertices - 1
Entity.SetBulge nIndex, -1
Next
End If
End If