- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I work currently on an addin for Revit 2020.2. And I observed a behavior where I am not sure what the intend of this behavior is.
So immediately after creating a pointcloud with
PointCloudType type = PointCloudType.Create(doc, engineType, identifier);
PointCloudInstance.Create(doc, type.Id, trf);
"Free()" (implemented via IPointCloudAccess) is called. And then again exactly the same pointcloud is constructed (same identifier) but this time "Free()" is not called.
But then "Free()" is never called again (not when deleting or closing revit/the document)
This can be observed with the official samples.
I also noticed that in older samples (like for 2019) the free method threw an NotImplementedException.
This was removed in the new samples See on this mirror. So I guess the developers are aware of this.
This leads to my question: Why is "Free()" called immediately after creation and what is the actual purpose of "Free()"?
Solved! Go to Solution.