<?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: Extract points from a point cloud in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/6025142#M37274</link>
    <description>&lt;P&gt;Point clouds are created in Autodesk ReCap from .LAS files. It is attached to AutoCAD by the PCATTACH command.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2016 23:09:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-04T23:09:02Z</dc:date>
    <item>
      <title>Extract points from a point cloud</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/6018635#M37270</link>
      <description>&lt;P&gt;I am using AutoCAd 2016 and need to access and exract a sub-set of points from the point cloud that is attached to the working drawing. I need to let the user click-drag a rectangle and or select few points individually and write out their coordinates to a text file. Is this possible - and if so which API should I use? Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 00:01:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/6018635#M37270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-02T00:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extract points from a point cloud</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/6018902#M37271</link>
      <description>&lt;P&gt;Something along this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        [CommandMethod("Test", CommandFlags.Modal)]
        public static void ExtractCoordinatesOfPOintsToTextFile()
        {
            Document Acdoc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
            Database dbs = Acdoc.Database;
            Editor edt = Acdoc.Editor;
            PromptSelectionOptions sel = new PromptSelectionOptions();
            TypedValue[] typV = { new TypedValue(0, "POINT") };
            var ss = edt.GetSelection(new SelectionFilter(typV));
            if (ss.Status == PromptStatus.OK)
            {
                SaveFileDialog sv = new SaveFileDialog();
                sv.Title = "Specify Text file name :";
                sv.Filter = "Txt File:|*.txt";
                if (sv.ShowDialog() == DialogResult.OK)
                {
                    using (Transaction trs = dbs.TransactionManager.StartTransaction())
                    {
                        try
                        {
                            StreamWriter writer = new StreamWriter(sv.FileName);
                            foreach (ObjectId id in ss.Value.GetObjectIds())
                            {
                                DBPoint p = (DBPoint)trs.GetObject(id, OpenMode.ForRead);
                                writer.Write(p.Position + Environment.NewLine);
                            }
                            writer.Close();
                        }
                        catch (System.Exception x)
                        {
                            edt.WriteMessage(x.Message);
                        }
                    }
                }
            }
        }&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Feb 2016 06:42:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/6018902#M37271</guid>
      <dc:creator>_Tharwat</dc:creator>
      <dc:date>2016-02-02T06:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extract points from a point cloud</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/6022828#M37272</link>
      <description>&lt;P&gt;Thanks for the sample code. But that would only select point entities that are par tof the drawing. What I need to do is to select a sub-set of points that are part of a pointcloud that is attached to the working drawing. Any suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 21:35:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/6022828#M37272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-03T21:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extract points from a point cloud</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/6023329#M37273</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;I have no idea about the pointcloud , is it create with AutoCAD ?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 04:27:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/6023329#M37273</guid>
      <dc:creator>_Tharwat</dc:creator>
      <dc:date>2016-02-04T04:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extract points from a point cloud</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/6025142#M37274</link>
      <description>&lt;P&gt;Point clouds are created in Autodesk ReCap from .LAS files. It is attached to AutoCAD by the PCATTACH command.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 23:09:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/6025142#M37274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-04T23:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Extract points from a point cloud</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/6025511#M37275</link>
      <description>&lt;P&gt;Can you attach a sample drawing to have a look ?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 07:51:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/6025511#M37275</guid>
      <dc:creator>_Tharwat</dc:creator>
      <dc:date>2016-02-05T07:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extract points from a point cloud</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/6042586#M37276</link>
      <description>&lt;P&gt;Point clouds are very large. Please download a .las file from following link and convert it to .rcp or .rcs file using Autrodesk ReCap (feree desktop version). The you can attach that point cloud to a drawing using&amp;nbsp;POINTCLOUDATTACH command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.liblas.org/samples/" target="_blank"&gt;http://www.liblas.org/samples/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 02:17:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/6042586#M37276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-17T02:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extract points from a point cloud</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/11025822#M37277</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;i am trying to start writing à plugin for autocad to make some special tasks on point cloud,&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone tell me how and where to start please? I used to creat autocad plugins in vb and c# under Visual studio.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 08:49:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/11025822#M37277</guid>
      <dc:creator>Mahass</dc:creator>
      <dc:date>2022-03-24T08:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Extract points from a point cloud</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/11677623#M37278</link>
      <description>&lt;P&gt;I think you need to have a library/sdk (&lt;A href="https://www.autodesk.com/developer-network/platform-technologies/reality-solutions-sdk" target="_blank"&gt;https://www.autodesk.com/developer-network/platform-technologies/reality-solutions-sdk&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And to have it you need be a stantard ADN member witch is not free.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 15:53:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/11677623#M37278</guid>
      <dc:creator>gabrielarchambo</dc:creator>
      <dc:date>2023-01-13T15:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extract points from a point cloud</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/11682173#M37279</link>
      <description>&lt;P&gt;For pointclouds, it is best to use ObjectARX, there are more methods and you can accomplish things not possible in .NET. Like spatialfilters or the pointAttributes method which is what could probably be used by the original poster to get coordinates of points.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 11:59:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/11682173#M37279</guid>
      <dc:creator>Jkirkla</dc:creator>
      <dc:date>2023-01-16T11:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Extract points from a point cloud</title>
      <link>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/11687441#M37280</link>
      <description>&lt;P&gt;Accessing the points in a Point Cloud attached to AutoCAD is not possible with the AutoCAD API as far as I know.&lt;/P&gt;&lt;P&gt;You can build your own .las/laz Point Cloud file reader using this library:&amp;nbsp;&lt;A href="https://github.com/shintadono/laszip.net" target="_blank"&gt;https://github.com/shintadono/laszip.net&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can access the points of the file directly without converting it to a .rcs file.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 08:32:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/extract-points-from-a-point-cloud/m-p/11687441#M37280</guid>
      <dc:creator>gleeuwdrent</dc:creator>
      <dc:date>2023-01-18T08:32:04Z</dc:date>
    </item>
  </channel>
</rss>

