Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating new PointCloudInstances

1 REPLY 1
Reply
Message 1 of 2
thatcadguy
393 Views, 1 Reply

Creating new PointCloudInstances

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.

1 REPLY 1
Message 2 of 2
thatcadguy
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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community