Message 1 of 1
Loading and Unloading Point Clouds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello! 🙂
I am having trouble figuring out how to unload a point cloud via the API.
Initially loading a point cloud from a file and creating an instance is straightforward (F# Code):
let cloudType = PointCloudType.Create(doc, engine, path)
let cloudInstance = PointCloudInstance.Create(doc, cloudType.Id, Transform.Identity)
But unloading the cloud seems to be trickier:
I tried
- creating a `RevitLinkType` with `RevitLinkType.Create(...)` to call `RevitLinkType.Unload()`.
But `RevitLinkType.Create(...)` needs a `ModelPath` or an `ExternalResourceReference`, which I was not able to get from my point cloud. - casting the `PointCloudType` to a `RevitLinkType`. This also does not work.
- using ExternalFileUtils after reading Remove DWF Links.
But there is no `ExternalFileReference` associated with a `PointCloudType`.ExternalFileUtils.GetExternalFileReference(doc, cloudType.Id)
What am I missing?
Thanks for your help! 🙂