Python Scripts for Point Clouds

Python Scripts for Point Clouds

Anonymous
Not applicable
3,154 Views
7 Replies
Message 1 of 8

Python Scripts for Point Clouds

Anonymous
Not applicable

Hello Everyone,

 

I need and urgent help. I am trying to filter and select points from points clouds in Revit 2014 using python scripts. I am new in python . I have pount clouds data in rcp format inserted into revit using "insert point clouds" command but I want to use python scripts to filter, select and maybe colour points in the point clouds. Can anybody help me with the scripts?

0 Likes
3,155 Views
7 Replies
Replies (7)
Message 2 of 8

augusto.goncalves
Alumni
Alumni
Hi,

Why do you need this in Python? In fact the supported API for Revit is in .NET.

In .NET we have a sample at the SDK, please download from www.autodesk.com/developrevit, install and get the sample under \Revit 2015 SDK\Samples\PointCloudEngine folder.

If that is not the case, please let us know.
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes
Message 3 of 8

Anonymous
Not applicable

Hi

 

I have installed SDK 2014, but where do I go from here? I am new to Revit API. All I wanted to do is to be able to select, Filter and colour sets of points in a point cloud data , then create walls for the selected points. Can  get a sample code for this? how do I use this codes? can you walk me through this?

I will really appreaciate your help as the submission for my dissertation is fast approaching. Please help. Thank you

0 Likes
Message 4 of 8

augusto.goncalves
Alumni
Alumni
For this you'll need Visual Studio installed. On the folder I mentioned, open the .sln project on Visual Studio, ensure Revit references are pointing to Revit install folder. This should build the sample

To run it, see instructions on the sample folder, there is a .rtf file with details.
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes
Message 5 of 8

Anonymous
Not applicable

Hi,

 

Thank you again. I have installed Visual Studio, referenced it to revit API. Opened the SDK sample pointcloud engine. Have my point cloud inserted in Revit. My question is whcih of this samples do i need to use for what I want to do? Can you tell me what each of the sample does,and how I should execute them. for example , with my point cloud in Revit what next can I do with any of the sample codes. Please see the attached images on my progress.

 

Thank you for your assistance

0 Likes
Message 6 of 8

augusto.goncalves
Alumni
Alumni
Hi,

Ok, so you'll need a "Getting started" material for Revit API, I would suggest www.autodesk.com/myfirstrevitplugin

In summary, at the folder you sent, you need to open the PointCloudEngine file on Visual Studio, adjust the references, compile, that will generate a DLL. Open the PointCloudEngine.addin file, make sure is pointing to the correct address of the DLL, copy this .addin file to C:\ProgramData\Autodesk\Revit\Addins\2015 and now Revit should recognise the addin. Read the ReadMe_PointCloudEngine.rtf (on the sample folder) for instructions.
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes
Message 7 of 8

Anonymous
Not applicable

Hi Augusto,

 

I have gone through the process, and it seems I have the commands in revit as you can see in the attached image. How do I use these PointCloudeEngine commands in Revit to achieve what I want? I have not found any clear instruction on this. So what next, remember all I want is to be able to filter points, select points, iterate and colour which I found in Point Cloud Client (http://help.autodesk.com/view/RVT/2014/ENU/?guid=GUID-B80DBCF1-56A8-4864-A0CD-181466E0EDE8). where do I go from here? I have point cloud data in rcp format.

 

Thank you for helping me out on this. I really appreciate it.

0 Likes
Message 8 of 8

augusto.goncalves
Alumni
Alumni
Indeed this will be the sample to look at, unfortunately I cannot write a more specialised sample, but looking at this sample and at the documentation (RevitAPI.chm) you can adjust it. For instance, check the CloudPoint class.
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes