Hi David.
There is no way to find out what command was used to create an entity in a
drawing.
I created this littet function that might help you tho':
Private Function IsRevCloud(ByRef lwpLine As AcadLWPolyline) As Boolean
Dim lngCounter As Long
IsRevCloud = False
' Polyline must be closed, to be considered as RevCloud
If lwpLine.Closed = False Then
Exit Function
End If
' There must be morgfe than "X" segments in the polyline to be
considered a polyline (6 in this example)
If (UBound(lwpLine.Coordinates) + 1) / 2 < 6 Then
Exit Function
End If
' All segments must have a "bulge" to be considered a RevCloud
For lngCounter = 0 To (UBound(lwpLine.Coordinates) - 1) / 2
If lwpLine.GetBulge(lngCounter) = 0 Then
Exit Function
End If
Next
' All tests checked. Probably a RevCloud.
IsRevCloud = True
End Function
THL
"DTran" wrote in message news:5976888@discussion.autodesk.com...
> Hello all,
>
> Here's my situation. I have a bunch of drawings in a project folder.
> Some of the drawings have revision clouds in them, some don't. I'm trying
> to build a program that asks the user for the project folder, than goes
> through each drawing one by one, and if it finds a revision cloud, ask the
> user if
he wants to delete it or leave it. Whatever they choose, the
> program will continue onto the next drawing until it processes them all.
>
> However, here's the problem. Whether it was a lack of foresight, or
> something else, the revision clouds weren't added on their own unique
> layer. I've noticed that revision clouds are polylines, but so are other
> lines in the drawing itself. The only unique identifier I can find is
> that the clouds themselves were made using the "REVCLOUD" command.
>
> My question is: Is there some syntax in VBA that searches and identifies
> that this object was made with REVCLOUD, or is that not even possible.
> And I should add my experience with VBA has been limited thus far.
>
> Thanks!
> - David
Trond Hasse LieAutoCAD Electrical and
EPLAN expert
Ctrl Alt ElPlease select "Accept Solution" if this post answers your question. 'Likes' won't hurt either.
😉