This method provides a direct entry point to get access to an object from the ReCap SDK (ReCapWrapper.RCProject) from Revit. This object represents the point cloud from the RC file path stored in PointCloudType. The ReCap assembly AdskRcManaged.dll will need to be included into code using this method.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public RCProject GetReCapProject()
Return Value
RCProject
Exceptions
Remarks
The coordinate system in RCProject is defined by Point Cloud. Please refer to ReCap SDK document for RCProject::getCoordinateSystem.
If you need points converted to the modeling coordinate system in Revit, you can obtain the transformation matrix from PointCloudInstance
GetTransform().
Example
C#
private Autodesk.RealityComputing.Managed.RCProject GetRCProject(Document doc)
{
PointCloudType type = PointCloudType.Create(doc, "rcs", "c:\\32_cafeteria.rcs");
Autodesk.RealityComputing.Managed.RCProject proj = type.GetReCapProject();
UInt64 numOfPoints = proj.GetNumberOfPoints();
return type.GetReCapProject();
}
VB
Private Function GetRCProject(ByVal doc As Document) As Autodesk.RealityComputing.Managed.RCProject
Dim type As PointCloudType = PointCloudType.Create(doc, "rcs", "c:\32_cafeteria.rcs")
Dim proj As Autodesk.RealityComputing.Managed.RCProject = type.GetReCapProject()
Dim numOfPoints As ULong = proj.GetNumberOfPoints()
Return type.GetReCapProject()
End Function
See Also
Reference