基础工具
各类系统既有工具。可通过 IModelApp.tools.run 方式运行该工具。
# **接口类 ****id **功能描述
| id | 说明 |
|---|---|
| FitViewTool “View.Fit” | 相机自适应当前场景。 |
| FlyViewTool “View.Fly” | |
| IdleTool “Idle” | |
| LookAndMoveTool “View.LookAndMove” | |
| LookViewTool “View.Look” | |
| PanViewTool "View.Pan" | 平移模式,鼠标操作平移场景。 |
| RotateViewTool "View.Rotate" | 旋转模式,鼠标操作旋转场景。 |
| ScrollViewTool "View.Scroll" | |
| SetupCameraTool "View.SetupCamera" | |
| SetupWalkCameraTool "View.SetupWalkCamera" | |
| StandardViewTool "View.Standard" | |
| ViewClipByElementTool "ViewClip.ByElement" | 构件剖切工具,选择构件创建剖切。 |
| ViewClipByPlaneTool "ViewClip.ByPlane" | |
| ViewClipByRangeTool "ViewClip.ByRange" | |
| ViewClipByShapeTool "ViewClip.ByShape" | |
| ViewClipClearTool "ViewClip.Clear" | 清除剖切。 |
| ViewGlobeBirdTool "View.GlobeBird" | |
| ViewGlobeIModelTool "View.GlobeIModel" | |
| ViewGlobeLocationTool "View.GlobeLocation" | |
| ViewGlobeSatelliteTool "View.GlobeSatellite" | |
| ViewRedoTool "View.Redo" | |
| ViewToggleCameraTool "View.ToggleCamera" | |
| ViewUndoTool "View.Undo" | |
| WalkViewTool "View.Walk" | |
| WindowAreaTool "View.WindowArea" | |
| ZoomViewTool "View.Zoom" | |
| MeasureAreaByPointsTool "Measure.AreaByPoints" | 多点面积测量。 |
| MeasureAreaTool "Measure.Area" | 构件面积测量。 |
| MeasureDistanceTool "Measure.Distance" | 距离测量。 |
| MeasureLengthTool "Measure.Length" | 构件长度测量。 |
| MeasureLocationTool "Measure.Location" | 位置测量。 |
| MeasureVolumeTool "Measure.Volume" | |
| SelectionTool "Select" | 选择模式,鼠标操作为选择模式。 |
# 示例
IModelApp.tools.run( “View.Fit”, IModelApp.viewManager.selectedView );
IModelApp.tools.run( FitViewTool .toolId, IModelApp.viewManager.selectedView );