Revit API

Distinguished Contributor
Posts: 856
Registered: ‎04-27-2007
Message 1 of 2 (222 Views)

Creating new PointCloudInstances

222 Views, 1 Replies
01-16-2012 07:17 AM

Good morning,


I've written a small bit of .NET code to access the currently open document and add some PointCloudInstances based on some .pcg files. Here is the equivalent in IronPython:


type = PointCloudType.Create(doc, 'pcg', file)

PointCloudInstance.Create(doc, type.Id, Transform.Identity)


What I need help with is scaling these and also performing the equivalent of the "Auto - Origin to Last Placed". The procedure our employees use to insert point clouds is:


1. Insert first point cloud and change scale to 3.2 (or 1:3.2, whichever it is).

2. Insert remaining point clouds with "Auto - Origin to Last Placed".


I assume this is all done through the Transform argument passed to PointCloudInstance.Create(). Any hints or nudges in the right direction would be greatly appreciated. TIA.

Distinguished Contributor
Posts: 856
Registered: ‎04-27-2007
Message 2 of 2 (219 Views)

Re: Creating new PointCloudInstances

01-16-2012 08:49 AM in reply to: thatcadguy

Figured out the scale part -- PointCloudType has a property called Scale, go figure. I was looking for a way to change the default scale for all point clouds as done through the edit type dialog in Revit.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!