Insert a point cloud with API

Insert a point cloud with API

Anonymous
Not applicable
699 Views
4 Replies
Message 1 of 5

Insert a point cloud with API

Anonymous
Not applicable

Hi,

 

I would like to know how if it's possible to insert a point cloud with API command.

 

Thanks,

 

 

 

0 Likes
700 Views
4 Replies
Replies (4)
Message 2 of 5

rosalesduquej
Alumni
Alumni

Dear Remyescaffit,

 

Have you looked over the Samples folder on the SDK, I see there is one called PointCloudEngine, that might give you some ideas on how to implement the command you are looking for. Another good resource I can give you comes from Jeremy Tammik's Blog, The Builder Coder.

 

Check it out, there is a couple of interesting discussions regarding the use of the Point Cloud API.

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.43

 

Good luck,

Cheers,

 

 

 



Jaime Rosales D.
Sr. Developer Consultant
Twitter | AEC ADN DevBlog
0 Likes
Message 3 of 5

Anonymous
Not applicable

Thanks Rosalesduquej for your reply,

 

I'm a new in API programming and i don't know where i can find the Sample Folder. 

 

Besides, i try to insert a point cloud with this command : 

        nuage=PointCloudType.Create(doc,"rcs","c:\\Test.rcs") 

but i have the this error message : "Modifying is forbidden because the docuement has no open transaction."

 

I try to write somthing else :

       Dim t As New Transaction (doc,"Test")
        t.Start()
        nuage=PointCloudType.Create(doc,"rcs","c:\\Test.rcs")
        t.Commit()

And i Have this error message : "Starting a transaction for an external application running outside of API conext is not allowed"

 

Can You help me ?

 

Thanks,

 

0 Likes
Message 4 of 5

Anonymous
Not applicable

(I find the sample folder)

0 Likes
Message 5 of 5

rosalesduquej
Alumni
Alumni

Hello,

 

If you are new to Revit API developement I will suggest going over this link http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=16459234

 

It will give you a lot of knowledge with the starting point on your developement. There is a lot of things that you need to take into consideration when using Revit from the API. So I will suggest go over and start testing some of the samples I refered on the SDK folder.

 

Best of luck.

Cheers,

 



Jaime Rosales D.
Sr. Developer Consultant
Twitter | AEC ADN DevBlog
0 Likes