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.
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.
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!