Revision cloud filter

Revision cloud filter

Hassan.ME3V3M
Observer Observer
1,523 Views
2 Replies
Message 1 of 3

Revision cloud filter

Hassan.ME3V3M
Observer
Observer

Hi I am looking for a way to filter and find all the revision clouds in a drawing using . net.

I am aware that in the previous versions of the Autocad(before 2021 based on my experience), the type of the revision cloud was shown as polyline in the Autocad, however in the newer versions, it shows as Revcloud. Even using Qselect, it is possible to select the object type as RevCloud and select all of them manually.

However, I have checked the object type of a revision cloud using C#, and it seems that is still actually a polyline.

Is there any way to filter or find the Revclouds using .Net?

I know there are some methods to filter the polylines based on some geometry conditions, however it might not work all the time. Is there any flag, property or record in the database that Autocad uses to filter

 Revclouds in the newer versions?

Thank you in advance for your time.

0 Likes
Accepted solutions (1)
1,524 Views
2 Replies
Replies (2)
Message 2 of 3

_gile
Consultant
Consultant
Accepted solution

Hi,

 

You can filter 'revision cloud' polylines by using a filter on xdata.

var filter = new SelectionFilter(new[]
{
    new TypedValue(0, "LWPOLYLINE"),
    new TypedValue(1001, "RevcloudProps")
});


Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 3

norman.yuan
Mentor
Mentor

The RevCloud entity created in Cad2021 or later has Data attached with registered app name "RevCloudProps", while in older version, it is just a regular polyline without specific attribute data (XData or ExtensionDictionary, or whatever...). So, if you want to select RevCloud in Acad2021 or later, you can use its XData app name as selection filter.

 

Norman Yuan

Drive CAD With Code

EESignature