SheetManager
-
class
SheetManager() Index
Constructors
Methods
deactivateSheetsendComparisonget3DNodesgetActiveSheetIdgetBackgroundSelectionEnabledgetBackgroundSheetEnabledgetSheetBackgroundColorgetSheetColorgetSheetIdsgetSheetShadowColorisDrawingSheetActivesetActiveSheetIdsetBackgroundSelectionEnabledsetBackgroundSheetEnabledsetSheetColorsstartComparison
Constructors
-
SheetManager.constructor() - SheetManager(viewer:
IWebViewer, engine:IScEngine, callbackManager:ICallbackManager, disableAutomaticBackgroundSheets: boolean):SheetManagerParameters
viewer:
IWebViewerengine:
IScEnginecallbackManager:
ICallbackManagerdisableAutomaticBackgroundSheets: boolean
Returns:
SheetManager
Methods
-
SheetManager.deactivateSheets() - deactivateSheets(triggerCallback: boolean?, ignoreFitNodes: boolean?): Promise
Deactivate sheets and only display 3D content
Parameters
triggerCallback: boolean = true
triggers a “sheetDeactivated” callback if trueignoreFitNodes: boolean = false
camera will not fit nodes if trueReturns: Promise
promise that resolves when the operation has completed
-
SheetManager.endComparison() - endComparison(): Promise
Disables a visual comparison of two drawing sheets enabled by [[startSheetComparison]]. The
Promisereturned by that function should be waited upon before calling [[endSheetComparison]].Returns: Promise
-
SheetManager.get3DNodes() - get3DNodes(): number[]
Returns Ids of sheet nodes which contain 3D data.
Returns: number[]
-
SheetManager.getActiveSheetId() - getActiveSheetId(): (None | number)
Returns: (None | number)
gets the id of the current active sheet. null if none has been set.
-
SheetManager.getBackgroundSelectionEnabled() - getBackgroundSelectionEnabled(): boolean
Gets the current state of the background sheet.
Returns: boolean
trueif enabled andfalseotherwise.
-
SheetManager.getBackgroundSheetEnabled() - getBackgroundSheetEnabled(): boolean
Gets the current state of the background sheet.
Returns: boolean
trueif enabled andfalseotherwise.
-
SheetManager.getSheetBackgroundColor() - getSheetBackgroundColor():
ColorGets the sheet Background Color.
Returns:
Color
-
SheetManager.getSheetIds() - getSheetIds(): number[]
Returns: number[]
an array of 2D [[SheetId]]s.
-
SheetManager.getSheetShadowColor() - getSheetShadowColor():
ColorGets the Sheet Shadow Color.
Returns:
Color
-
SheetManager.isDrawingSheetActive() - isDrawingSheetActive(): boolean
Returns: boolean
true if a drawing sheet is activated, false otherwise
-
SheetManager.setActiveSheetId() - setActiveSheetId(activeSheetId: number, isolateNodes: boolean?, fitNodes: boolean?): Promise
Sets the id of the current active sheet
Parameters
activeSheetId: number
id of the sheet which will be activated.isolateNodes: boolean = true
indicates whether the nodes in the sheet should be isolatedfitNodes: boolean = true
indicates whether a fit world should be performed after isolating the nodes. Note: This parameter has no effect ifisolateNodesisfalse.Returns: Promise
promise that resolves when the operation has completed
-
SheetManager.setBackgroundSelectionEnabled() - setBackgroundSelectionEnabled(enabled: boolean): Promise
Sets whether the background for 2D drawings is selectable. By default it is not. 2D drawings have an invisible selection plane with a single face. Note that this setting is unaffected by the background-sheet enable setting.
Parameters
enabled: booleanReturns: Promise
-
SheetManager.setBackgroundSheetEnabled() - setBackgroundSheetEnabled(enabled: boolean): Promise
Enables or disables the background sheet used for 2D drawings.
Parameters
enabled: booleanReturns: Promise
-
SheetManager.setSheetColors() -
Sets custom sheet colors.
Parameters
Returns: Promise
-
SheetManager.startComparison() - startComparison(sheetId1: number, sheetId2: number, config:
ComparisonConfig): PromiseEnables a visual comparison of two drawing sheets. The nodes specified by
sheetId1are filled with one color, the nodes specified bysheetId2with another color, and overlapping areas are filled with a third color.See [[endSheetComparison]], [[View.startComparison]].
Parameters
sheetId1: number
the drawing sheet to compare againstsheetId2sheetId2: number
the drawing sheet to compare againstsheetId1config:
ComparisonConfigsettings controlling the behavior of the comparisonReturns: Promise