Creates a new point cloud type for a given point cloud engine.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static PointCloudType Create(
Document document,
string engineIdentifier,
string typeIdentifier
)
Parameters
- document Document
-
The document in which to create the point cloud.
- engineIdentifier String
-
The string identifying the engine to be invoked.
It should be the file extension or engine identifier registered by the third party.
- typeIdentifier String
-
The file name or the identification string for a non-file based engine.
Return Value
PointCloudType
The newly created PointCloudType object to be used to create instances of
this point cloud.
Exceptions
Remarks
A list of supported engine identifiers and whether they are file-based or not can be
obtained from PointCloudEngineRegistry. The method GetSupportedEngines() returns a list
of the identifiers registered for engines.
Example
C#
private PointCloudInstance CreatePointCloud(Document doc)
{
PointCloudType type = PointCloudType.Create(doc, "rcs", "c:\\32_cafeteria.rcs");
return (PointCloudInstance.Create(doc, type.Id, Transform.Identity));
}
VB
Private Function CreatePointCloud(doc As Document) As PointCloudInstance
Dim type As PointCloudType = PointCloudType.Create(doc, "rcs", "c:\32_cafeteria.rcs")
Return (PointCloudInstance.Create(doc, type.Id, Transform.Identity))
End Function
See Also
Reference