DrawingPlaneAPI¶
Interface DrawingPlaneAPI
interface DrawingPlaneAPI {
changeDrawingPlane(
drawingPlaneId: number,
properties: DrawingPlaneProperties,
): DrawingPlaneProperties;
createDrawingPlane(properties?: DrawingPlaneProperties): number;
getDrawingPlaneData(drawingPlaneId: number): DrawingPlaneProperties;
getDrawingPlanes(): number[];
removeDrawingPlane(drawingPlaneId: number, safe?: boolean): RemoveState;
}
changeDrawingPlane(
drawingPlaneId: number,
properties: DrawingPlaneProperties,
): DrawingPlaneProperties;
createDrawingPlane(properties?: DrawingPlaneProperties): number;
getDrawingPlaneData(drawingPlaneId: number): DrawingPlaneProperties;
getDrawingPlanes(): number[];
removeDrawingPlane(drawingPlaneId: number, safe?: boolean): RemoveState;
}
Hierarchy (View Summary)
- DrawingPlaneAPI
change
- changeDrawingPlane(
 drawingPlaneId: number,
 properties: DrawingPlaneProperties,
 ): DrawingPlaneProperties
- Experimental- Parameters- drawingPlaneId: numberThe ID of the DrawingPlane you want to change. 
- properties: DrawingPlanePropertiesThe properties of the DrawingPlane you want change. 
 - Returns DrawingPlaneProperties- An Object with the changed Properties. 
- drawingPlaneId: number
create
- createDrawingPlane(properties?: DrawingPlaneProperties): number
- Experimental- Creates a new DrawingPlane with the specified properties. - Parameters- Optionalproperties: DrawingPlaneProperties- Initial properties of the created Drawing. 
 - Returns number- The ID of the newly created Drawing. 
get
- getDrawingPlaneData(drawingPlaneId: number): DrawingPlaneProperties
- Experimental- Returns the DrawingPlane properties for the specified DrawingPlane ID. - Parameters- drawingPlaneId: numberThe ID of the DrawingPlane you want to get the Data for. 
 - Returns DrawingPlaneProperties- The requested DrawingPlane properties. 
- drawingPlaneId: number
get
remove
- removeDrawingPlane(drawingPlaneId: number, safe?: boolean): RemoveState
- Experimental- Removes a DrawingPlane with the specified ID. If a DrawingPlane is part of a Snapshot the removal will fail with the State RemoveState.REFERENCED_BY_SNAPSHOT. - Parameters- drawingPlaneId: numberThe ID of the Drawing you want to remove. 
- Optionalsafe: boolean- Performs a safe remove which interrupt the removal process if the Drawing is part of one or more Snapshots. 
 - Returns RemoveState
- drawingPlaneId: number
Changes one or more properties of a DrawingPlane with the specified ID.