<?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: How to get the file location of a PointCloud file in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/10236368#M73588</link>
    <description>Hi,&lt;BR /&gt;I came across this thread while searching to retrieve point cloud path, Im a newbie but as I followed the steps mentioned in response from Revitalizer and btmsoftware. I am able to retrieve path.&lt;BR /&gt;&lt;BR /&gt;List&amp;lt;Element&amp;gt; pointcloud = new FilteredElementCollector(doc).OfClass(typeof(PointCloudType)).ToElements().ToList();&lt;BR /&gt;if (pointcloud.Count &amp;gt; 0)&lt;BR /&gt;{&lt;BR /&gt;foreach (PointCloudType point in pointcloud)&lt;BR /&gt;{&lt;BR /&gt;//returns path&lt;BR /&gt;ModelPath path = point.GetPath();&lt;BR /&gt;//convert to user readable string format.&lt;BR /&gt;string path_location = ModelPathUtils.ConvertModelPathToUserVisiblePath(path);&lt;BR /&gt;}</description>
    <pubDate>Wed, 14 Apr 2021 04:21:27 GMT</pubDate>
    <dc:creator>ajinkya.warade</dc:creator>
    <dc:date>2021-04-14T04:21:27Z</dc:date>
    <item>
      <title>How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5529378#M73570</link>
      <description>&lt;P&gt;In a revit drawing, I need to be able to find the full path of the point cloud files (all of them, rcp AND rcs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following bit of code (VB.NET) allows me to get the cloud instances and the file names but NOt the file path:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; Public Function Execute(
      ByVal commandData As ExternalCommandData,
      ByRef message As String,
      ByVal elements As ElementSet) _
    As Result Implements IExternalCommand.Execute

        Dim uiapp As UIApplication = commandData.Application
        Dim uidoc As UIDocument = uiapp.ActiveUIDocument
        Dim doc As Document = uidoc.Document


        Using file As New StreamWriter("c:\temp\result.txt", False)
            Dim clouds As FilteredElementCollector = New FilteredElementCollector(doc).OfClass(GetType(PointCloudInstance))

            For Each cloud As PointCloudInstance In clouds
                file.WriteLine("Found instance: " &amp;amp; cloud.Id.IntegerValue)
                file.WriteLine(vbTab &amp;amp; "Name= " &amp;amp; cloud.Name) ' Seems to contain the filename of the rcp/rcs attached

                Dim files As IList(Of String) = cloud.GetScans()  ' if the point cloud is a rcp, then it contains the list of rcs, otherwise, it contains the rcs
                file.WriteLine(vbTab &amp;amp; "Files:")
                For Each filename As String In files
                    file.WriteLine(vbTab &amp;amp; vbTab &amp;amp; filename)
                Next

                file.WriteLine(vbCrLf &amp;amp; vbCrLf)
            Next

        End Using
        Process.Start("c:\temp\result.txt")
        Return Result.Succeeded

    End Function&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Found instance: 2304
	Name= pumpNoInvalidPoints.rcp
	Files:
		pumpNoInvalidPoints_1
		pumpNoInvalidPoints_2
		pumpNoInvalidPoints_3
		pumpNoInvalidPoints_4
		pumpNoInvalidPoints_5

Found instance: 2312
	Name= tester.rcs
	Files:
		tester
		&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 12:41:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5529378#M73570</guid>
      <dc:creator>btmsoftware</dc:creator>
      <dc:date>2015-03-05T12:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5530670#M73571</link>
      <description>I don't know which revit version you are working with but I think you are on the wrong track.&lt;BR /&gt;&lt;BR /&gt;You have to make a FilteredElementCollector of RevitLinkInstance . And a RevitLinkInstance does return the path.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Mar 2015 06:47:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5530670#M73571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-06T06:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5530727#M73572</link>
      <description>&lt;P&gt;Remy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm testing with Structure 2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't work. The collection is empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That makes sense, Point Clouds are not Revit &amp;nbsp;links, they don't even show up in the Revit Links of the Project browser as shown below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" border="0" title="Capture.JPG" src="https://forums.autodesk.com/t5/image/serverpage/image-id/157068i686DC75FB9ACADF9/image-size/original?v=mpbl-1&amp;amp;px=-1" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2015 07:51:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5530727#M73572</guid>
      <dc:creator>btmsoftware</dc:creator>
      <dc:date>2015-03-06T07:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5534407#M73573</link>
      <description>&lt;P&gt;Can you find them anywhere in RevitLookup?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2015 09:39:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5534407#M73573</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-03-10T09:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5534471#M73574</link>
      <description>&lt;P&gt;I didn't know about the RevitLookup tables (I'm a newbie with Revit).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll look into it and will let you know&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: If you have some examples about using those tables, feel free to share &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://forums.autodesk.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2015 10:40:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5534471#M73574</guid>
      <dc:creator>btmsoftware</dc:creator>
      <dc:date>2015-03-10T10:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5534484#M73575</link>
      <description>&lt;P&gt;forget my last comment, I'm&amp;nbsp;browsing your blog as we speak, whihc, by the way is an excellent source of information&amp;nbsp;I recommend to everybody as bad as me&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2015 10:49:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5534484#M73575</guid>
      <dc:creator>btmsoftware</dc:creator>
      <dc:date>2015-03-10T10:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5534527#M73576</link>
      <description>&lt;P&gt;Looked into your RevitLookup App from your blog and it doesn;t give the point cloud file path anywere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess it has to be stored somewhere since Revit itself can find it but I woudln;t know where to look. Any iother idea ?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2015 11:16:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5534527#M73576</guid>
      <dc:creator>btmsoftware</dc:creator>
      <dc:date>2015-03-10T11:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5535093#M73577</link>
      <description>&lt;P&gt;Dear Btmsoftware,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you see the information you are after in the Revit &amp;gt; Insert &amp;gt; Manage Links dialogue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please submit a minimal&amp;nbsp;sample RVT file containing a&amp;nbsp;single really small&amp;nbsp;point cloud link that I can open hassle-free and take a look at.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2015 16:19:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5535093#M73577</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-03-10T16:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5536159#M73578</link>
      <description>&lt;P&gt;Yes, it gives the relative path to the rcp file, which would be kind of enough for me (then again, I'd prefer the absolute path but I'll take whatever I&amp;nbsp;can get...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, I tested by creating a brand new project file in Revit and insterting (after indexing) the poibnt cloud example file I found at &lt;A target="_blank" href="http://www.bimblog.ca/2012/01/point-cloud-feature-extraction.html"&gt;http://www.bimblog.ca/2012/01/point-cloud-feature-extraction.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if I'm allowed to distribute the point cloud file but since it available o nthe web to the public, you can get it. It's quite small and when indexing, there's only 1 rcs file, on top of the rcp file of course, but if we ca nget the rcs full path for 1, we'll be able to get it for multiple....&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2015 08:21:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5536159#M73578</guid>
      <dc:creator>btmsoftware</dc:creator>
      <dc:date>2015-03-11T08:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5536225#M73579</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Btmsoftware,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;OK, we are now in business.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I grabbed the Zion and Irving samples from the page you mention:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://www.bimblog.ca/2012/01/point-cloud-feature-extraction.html" target="_blank"&gt;http://www.bimblog.ca/2012/01/point-cloud-feature-extraction.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then I had to figure out how to insert them.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I was forced to read the help onUsing Point Cloud Files in a Project:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://help.autodesk.com/view/RVT/2015/ENU/?guid=GUID-B89AD692-C705-458F-A638-EE7DD83D694C" target="_blank"&gt;http://help.autodesk.com/view/RVT/2015/ENU/?guid=GUID-B89AD692-C705-458F-A638-EE7DD83D694C&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I then needed to find out how to actually Insert a Point Cloud File:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://help.autodesk.com/view/RVT/2015/ENU/?guid=GUID-B89AD692-C705-458F-A638-EE7DD83D694C" target="_blank"&gt;http://help.autodesk.com/view/RVT/2015/ENU/?guid=GUID-B89AD692-C705-458F-A638-EE7DD83D694C&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I was especially challenged by the two-step process of first converting from a raw format to an indexed RCP version and using the same command a second time to finally insert that.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Once I had that, I used the element lister to determine what Revit database elements are generated by inserting a point cloud into the BIM:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2014/09/debugging-and-maintaining-the-image-relationship.html#2" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2014/09/debugging-and-maintaining-the-image-relationship.html#2&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here are the steps I took and the results obtained in this case:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Run the external command Revit &amp;gt; Add-ins &amp;gt; RvtSamples &amp;gt; ADN Abc &amp;gt; 2-1 List all elements.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Rename the resulting file:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;C:\tmp&amp;gt;ren RevitElements.txt RevitElementsBeforePointCloud.txt&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Insert the point cloud RCP using Revit &amp;gt; Insert &amp;gt; Point Cloud.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Run the external command Revit &amp;gt; Add-ins &amp;gt; RvtSamples &amp;gt; ADN Abc &amp;gt; 2-1 List all elements.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Rename the resulting file:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;C:\tmp&amp;gt;ren RevitElements.txt RevitElementsAfterPointCloud.txt&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Compare the differences to determine the newly added elements:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;C:\tmp&amp;gt;diff RevitElementsBeforePointCloud.txt RevitElementsAfterPointCloud.txt
3312a3313,3316
&amp;gt; Id=322639; Class=PointCloudType; Category=Point Clouds; Name=zion.rcp;
&amp;gt; Id=322640; Class=Element; Category=?; Name=zion.rcp;
&amp;gt; Id=322641; Class=GraphicsStyle; Category=?; Name=zion.rcp;
&amp;gt; Id=322642; Class=PointCloudInstance; Category=Point Clouds; Name=zion.rcp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As you can see, the process generated a point cloud type and instance, a graphics style, and another element.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;These four elements can now all be examined using RevitLookup to determine their properties and parameter values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the past, the file name used for the Revit Element.Name property was the only hint you would get, so you would have to take that a search through your file system using operating system directory traversal functionality to determine the full path.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In this case, in addition to that, I would also check what the IsExternalFileReference and GetExternalFileReference methods report.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RevitLookup will probably not evaluate them for you. One option you have is to use something more flexible for interactive command line exploration, like the Python or Ruby shells:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/11/intimate-revit-database-exploration-with-the-python-shell.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/11/intimate-revit-database-exploration-with-the-python-shell.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alternatively, you can implement a macro ar add-in that explicitly calls these methods and reports the result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I decided to take a closer look at the PointCloudType with the element id 322639 in RevitLookup, so I used Revit &amp;gt; Manage &amp;gt; Inquiry &amp;gt; Select by ID &amp;gt; 322639 and then Revit &amp;gt; Add-ins &amp;gt; Revit±Lookup &amp;gt; Snoop Current Selection...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;No path indeed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Next, I installed the Revit Python shell from&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://code.google.com/p/revitpythonshell" target="_blank"&gt;https://code.google.com/p/revitpythonshell&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://sustain.arch.ethz.ch/DPV/Setup_RevitPythonShell_2015.exe" target="_blank"&gt;http://sustain.arch.ethz.ch/DPV/Setup_RevitPythonShell_2015.exe&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Unfortunately, none of the four elements will admit to being an external file reference:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;IronPython 2.7.4 (2.7.0.40) on .NET 4.0.30319.18444 (64-bit)
Type "help", "copyright", "credits" or "license" for more information.
&amp;gt;&amp;gt;&amp;gt; doc
&amp;lt;Autodesk.Revit.DB.Document object at 0x000000000000002B [Autodesk.Revit.DB.Document]&amp;gt;
&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;
&amp;gt;&amp;gt;&amp;gt; id=ElementId(322639)
&amp;gt;&amp;gt;&amp;gt; e=doc.GetElement(id)
&amp;gt;&amp;gt;&amp;gt; e.IsExternalFileReference()
False
&amp;gt;&amp;gt;&amp;gt; e.GetExternalFileReference()
Traceback (most recent call last):
File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
Exception: This Element does not represent an external file.
&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;
&amp;gt;&amp;gt;&amp;gt; def f(i):
...&amp;nbsp;&amp;nbsp; id=ElementId(i)
...&amp;nbsp;&amp;nbsp; e=doc.GetElement(id)
...&amp;nbsp;&amp;nbsp; return e.IsExternalFileReference()
...
&amp;gt;&amp;gt;&amp;gt; f(322639)
False
&amp;gt;&amp;gt;&amp;gt; f(322640)
False
&amp;gt;&amp;gt;&amp;gt; f(322641)
False
&amp;gt;&amp;gt;&amp;gt; f(322642)
False
&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Well, at least this little exercise proves that your can very quickly indeed install and make productive use of the Revit Python shell.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Using the Ruby shell is equally easy.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I had a look at the results of calling ExternalFileUtils.GetAllExternalFileReferences as well:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt; ids=ExternalFileUtils.GetAllExternalFileReferences(doc)
&amp;gt;&amp;gt;&amp;gt; ids
List[ElementId]([&amp;lt;Autodesk.Revit.DB.ElementId object at 0x000000000000002E [109330]&amp;gt;, &amp;lt;Autodesk.Revit.DB.ElementId object at 0x000000000000002F [320645]&amp;gt;])
&amp;gt;&amp;gt;&amp;gt; id=ids[0]
&amp;gt;&amp;gt;&amp;gt; id
&amp;lt;Autodesk.Revit.DB.ElementId object at 0x000000000000002E [109330]&amp;gt;
&amp;gt;&amp;gt;&amp;gt; e=doc.GetElement(id)
&amp;gt;&amp;gt;&amp;gt; e
&amp;lt;Autodesk.Revit.DB.KeynoteTable object at 0x0000000000000030 [Autodesk.Revit.DB.KeynoteTable]&amp;gt;
&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That just leads to the keynote table, not the linked point cloud that we are after.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Anyway, to sum up, you may just have to live with the RCP filename and no path, and then see what you can achieve with that using operating system search tools.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2015 09:48:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5536225#M73579</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-03-11T09:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5543990#M73580</link>
      <description>&lt;P&gt;Dear Btmsoftware,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After further research by myself and Revitalizer (thank you, Rudi!) I am sorry to say that we are forced to conclude that there is currently no known way to retrieve the path of the point cloud scan file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried in Python as described above, and he explored similar paths in C# with the same results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are looking at providing this access in an updated version of the Revit API as soon as possible, though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2015 08:52:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5543990#M73580</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-03-17T08:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5544099#M73581</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate the extra mile on that topic. Can't wait to get the updated version&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Francois&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2015 10:29:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/5544099#M73581</guid>
      <dc:creator>btmsoftware</dc:creator>
      <dc:date>2015-03-17T10:29:22Z</dc:date>
    </item>
    <item>
      <title>Re : How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/6530730#M73582</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since this old story, I've been upgrading to 2016 (have to follow the customer's&amp;nbsp; version) but still couldn't find anything for the full path of the cloud points.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do you know if there's a new function I missed since 2015 and if not, do you know if there's something in Revit 2017 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TIA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Francois&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 09:53:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/6530730#M73582</guid>
      <dc:creator>btmsoftware</dc:creator>
      <dc:date>2016-08-30T09:53:08Z</dc:date>
    </item>
    <item>
      <title>Re : How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/6531349#M73583</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a quick search in the RevitAPI.chm for 2016 says that there is a PointCloudType.GetPath() method.&lt;/P&gt;
&lt;P&gt;May this help ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 14:54:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/6531349#M73583</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2016-08-30T14:54:14Z</dc:date>
    </item>
    <item>
      <title>Re : How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/6534252#M73584</link>
      <description>&lt;P&gt;Indeed ,from the instance I can get the type and from the type, I can get the path with this method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanx a lot (How the hell did I miss that ?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now the next step is to be able to change the source file location. If you have any idea, let me know...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 15:30:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/6534252#M73584</guid>
      <dc:creator>btmsoftware</dc:creator>
      <dc:date>2016-08-31T15:30:17Z</dc:date>
    </item>
    <item>
      <title>Re : How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/6539174#M73585</link>
      <description>&lt;P&gt;Can you confirm that it worked?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide a snippet of sample code showing the sequence of calls?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 13:35:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/6539174#M73585</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-09-02T13:35:43Z</dc:date>
    </item>
    <item>
      <title>Re : How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/6539534#M73586</link>
      <description>&lt;P&gt;Yes, it works. I'll do the snippet next week (I'm over my head at the moment &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 15:38:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/6539534#M73586</guid>
      <dc:creator>btmsoftware</dc:creator>
      <dc:date>2016-09-02T15:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/10032393#M73587</link>
      <description>&lt;P&gt;n you pls provide the snipped, i can't figure a way to get PointCloud Path&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 15:46:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/10032393#M73587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-26T15:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/10236368#M73588</link>
      <description>Hi,&lt;BR /&gt;I came across this thread while searching to retrieve point cloud path, Im a newbie but as I followed the steps mentioned in response from Revitalizer and btmsoftware. I am able to retrieve path.&lt;BR /&gt;&lt;BR /&gt;List&amp;lt;Element&amp;gt; pointcloud = new FilteredElementCollector(doc).OfClass(typeof(PointCloudType)).ToElements().ToList();&lt;BR /&gt;if (pointcloud.Count &amp;gt; 0)&lt;BR /&gt;{&lt;BR /&gt;foreach (PointCloudType point in pointcloud)&lt;BR /&gt;{&lt;BR /&gt;//returns path&lt;BR /&gt;ModelPath path = point.GetPath();&lt;BR /&gt;//convert to user readable string format.&lt;BR /&gt;string path_location = ModelPathUtils.ConvertModelPathToUserVisiblePath(path);&lt;BR /&gt;}</description>
      <pubDate>Wed, 14 Apr 2021 04:21:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/10236368#M73588</guid>
      <dc:creator>ajinkya.warade</dc:creator>
      <dc:date>2021-04-14T04:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the file location of a PointCloud file</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/10236525#M73589</link>
      <description>&lt;P&gt;Thank you very much for sharing this good news and useful code snippet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just fyi, you can eliminate both the call to&amp;nbsp;ToElements and to ToList.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oh, and, while you're at it, the `if` statement as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should work just as well. In fact, a tiny bit better:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;  List&amp;lt;Element&amp;gt; pointclouds = new FilteredElementCollector(doc)
    .OfClass(typeof(PointCloudType));
    
  foreach (PointCloudType point in pointclouds)
  {
    //returns path
    ModelPath path = point.GetPath();
    //convert to user readable string format.
    string path_location = ModelPathUtils.ConvertModelPathToUserVisiblePath(path);
  }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 05:57:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-the-file-location-of-a-pointcloud-file/m-p/10236525#M73589</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-04-14T05:57:47Z</dc:date>
    </item>
  </channel>
</rss>

