Method ShowSpace
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
ShowSpace(CadSpace)
Shows a space, model space or a layout, as a click on its tab does: one undo step named LAYOUT, which U takes back to the space shown before and REDO forward, as AutoCAD 2021's console undoes LAYOUT Set (probed: after switching from Model to Layout1 and to Layout2, two U took it back to Layout1 and to Model, each layout keeping the view it had). The step keeps no copy of the drawing, so an undo of it reads nothing again. The selection, which belongs to a space, is cleared by the switch and by its undo. Inside a command's group the switch joins the command's step.
public CadEditResult ShowSpace(CadSpace space)
Parameters
spaceCadSpaceThe space to show.
Returns
- CadEditResult
What came of it: done, with no record where the space is already shown or the document has none such; refused while the Block Editor is open.
Exceptions
- ArgumentNullException
Thrown when the space is null.