2023 Class
Changes 3
C

OBJExportOptions

Description:
The export options used by exporting to OBJ file format.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.ATFBaseExportOptions
    Autodesk.Revit.DB.OBJExportOptions
Name Return Type Description Inherited From
C OBJExportOptions() None Constructs a new instance of OBJExportOptions with default values of all properties.
C OBJExportOptions(ExportResolution) None Constructs a new instance of OBJExportOptions with all predefined tessellation settings, depending on export resolution type. Note: in case of Custom resolution type, tessellation settings won't be predefined and will have default values.
Name Return Type Description Inherited From
M IsGridAspectRatioSet() bool Checks whether the GridAspectRatio tessellation parameter is explicitly set.
M IsMaxEdgeLengthSet() bool Checks whether the MaxEdgeLength tessellation parameter is explicitly set.
M IsNormalToleranceSet() bool Checks whether the NormalTolerance tessellation parameter is explicitly set.
M IsSurfaceToleranceSet() bool Checks whether the SurfaceTolerance tessellation parameter is explicitly set.
M IsValidForGridAspectRatio(Double) bool Checks whether the value is allowed (is in the allowed range) for GridAspectRatio tessellation parameter.
M IsValidForMaxEdgeLength(Double) bool Checks whether the value is allowed (is in the allowed range) for MaxEdgeLength tessellation parameter.
M IsValidForNormalTolerance(Double) bool Checks whether the value is allowed (is in the allowed range) for NormalTolerance tessellation parameter.
M IsValidForSurfaceTolerance(Double) bool Checks whether the value is allowed (is in the allowed range) for SurfaceTolerance tessellation parameter.
M SetTessellationSettings(ExportResolution) None Sets all the tessellation parameters to its predefined values for the given resolution type.
M Dispose() None Releases all resources used by the ATFBaseExportOptions
Name Return Type Description Inherited From
P GridAspectRatio double The maximum aspect ratio allowed in the grid placed across the face. The minimum allowed value is 1.0. The maximum allowed value is 10.0. By default this property is ignored.
P MaxEdgeLength double The maximum length allowed for any chord on an edge or between any two adjacent grid lines. This is a percentage value. By exporting, the real value of maximum edge length is calculated as a percent from the length of the diameter of the body bounding box.
P NormalTolerance double The maximum change in the surface normal between adjacent nodes in the mesh. This property is defined in degrees. The minimum allowed value is 1.0 degrees. The maximum allowed value is 45.0 degrees. Default value is 15.0 degrees.
P SurfaceTolerance double The maximum distance between mesh triangles and model geometry. This is a percentage value. By exporting, the real value of surface tolerance is calculated as a percent from the length of the diameter of the body bounding box.
P TargetUnit ExportUnit The unit type of geometry in the resultant OBJ file. Default value is ExportUnit::Default.
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity. ATFBaseExportOptions
P ViewId ElementId The element id of the 3D view to export. InvalidElementId by default. ATFBaseExportOptions