<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Delete revision cloud in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/delete-revision-cloud/m-p/6319992#M70423</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you let me know on how to run this code in AutoCAD.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2016 09:55:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-11T09:55:01Z</dc:date>
    <item>
      <title>Delete revision cloud</title>
      <link>https://forums.autodesk.com/t5/net-forum/delete-revision-cloud/m-p/2491593#M70420</link>
      <description>i am trying to delete the revision cloud in many drawings.&lt;BR /&gt;
&lt;BR /&gt;
here's what the revision cloud is like:&lt;BR /&gt;
&lt;BR /&gt;
1. on all kinda of layers&lt;BR /&gt;
2. radius for arcs vary&lt;BR /&gt;
3. lengths vary&lt;BR /&gt;
4. could be in model space, or could be in paper space&lt;BR /&gt;
&lt;BR /&gt;
the only way i can think about to pin down this object is by confirming all entities on the polyline are arcs. also what can also help is since 99% of the revision cloud we draw are cyan colour (those who use other colour are retarded, because it's the rule). i can test whether the layer it reside on is cyan, also some people force the colour of the object when it is on layer 0. so that will also help to distinguish the object.&lt;BR /&gt;
&lt;BR /&gt;
so the plan is:&lt;BR /&gt;
&lt;BR /&gt;
1. test number of arcs, has to be all arcs&lt;BR /&gt;
2. check layer is cyan or bycolour is cyan&lt;BR /&gt;
3. ideally go through paper space, then look just the objects in the models space which fall under each viewport, this sounds difficult because what if the rev cloud is on 2 pages? so scratch this one.&lt;BR /&gt;
&lt;BR /&gt;
any new project i am going to tell people put rev cloud on a unique layer and keep it consistant. so we don't run into this trouble next time. and, there will always be people who doesn't follow the rules.&lt;BR /&gt;
&lt;BR /&gt;
Anybody have code example or recommendations to get started on that?</description>
      <pubDate>Tue, 19 May 2009 23:41:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/delete-revision-cloud/m-p/2491593#M70420</guid>
      <dc:creator>wang890</dc:creator>
      <dc:date>2009-05-19T23:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Delete revision cloud</title>
      <link>https://forums.autodesk.com/t5/net-forum/delete-revision-cloud/m-p/2491594#M70421</link>
      <description>&lt;DIV id="jive-html-wrapper-div"&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;How about testing the start / end points?&amp;nbsp; If &lt;BR /&gt;
the endpoint of an arc is the same as the start point of another arc, its a &lt;BR /&gt;
revcloud.&amp;nbsp; Are they&amp;nbsp;closed?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 May 2009 15:02:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/delete-revision-cloud/m-p/2491594#M70421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-20T15:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Delete revision cloud</title>
      <link>https://forums.autodesk.com/t5/net-forum/delete-revision-cloud/m-p/2491595#M70422</link>
      <description>here's something i came up with, actually some retards somehow broke some of the rev cloud. so yeah, they are not all closed. but there are always other closed polylines in the database, can't assume this is false.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Dim BTR_Layout As BlockTableRecord = CType(trans.GetObject(oLayout.BlockTableRecordId, OpenMode.ForWrite), BlockTableRecord)&lt;BR /&gt;
&lt;BR /&gt;
 For Each id As ObjectId In BTR_Layout&lt;BR /&gt;
Dim entBlock As DBObject = CType(trans.GetObject(id, OpenMode.ForRead), DBObject)&lt;BR /&gt;
 Dim DXF_Name As String = entBlock.GetRXClass.DxfName.ToUpper&lt;BR /&gt;
If DXF_Name = "LWPOLYLINE" Then&lt;BR /&gt;
                                    entBlock = CType(trans.GetObject(id, OpenMode.ForWrite), DBObject)&lt;BR /&gt;
                                    Dim bIsRevisionCloud As Boolean = True&lt;BR /&gt;
                                    Dim oPolyline As Polyline = CType(entBlock, Polyline)&lt;BR /&gt;
&lt;BR /&gt;
                                    For i As Integer = 0 To oPolyline.NumberOfVertices - 1&lt;BR /&gt;
                                        Select Case oPolyline.GetSegmentType(i)&lt;BR /&gt;
                                            Case SegmentType.Arc&lt;BR /&gt;
                                                'do nothing&lt;BR /&gt;
                                            Case SegmentType.Line&lt;BR /&gt;
                                                bIsRevisionCloud = False&lt;BR /&gt;
                                        End Select&lt;BR /&gt;
                                    Next&lt;BR /&gt;
&lt;BR /&gt;
                                    'delete object if it is rev cloud&lt;BR /&gt;
                                    If bIsRevisionCloud = True Then&lt;BR /&gt;
                                        entBlock.Erase()&lt;BR /&gt;
                                    End If&lt;BR /&gt;
&lt;BR /&gt;
                                End If&lt;BR /&gt;
         Next</description>
      <pubDate>Wed, 20 May 2009 16:16:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/delete-revision-cloud/m-p/2491595#M70422</guid>
      <dc:creator>wang890</dc:creator>
      <dc:date>2009-05-20T16:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Delete revision cloud</title>
      <link>https://forums.autodesk.com/t5/net-forum/delete-revision-cloud/m-p/6319992#M70423</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you let me know on how to run this code in AutoCAD.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 09:55:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/delete-revision-cloud/m-p/6319992#M70423</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-11T09:55:01Z</dc:date>
    </item>
  </channel>
</rss>

