Complete the code to switch from model space to paper space in AutoCAD.
acad.ActiveDocument.[1] = acPaperSpaceActiveSpace is the property used to switch between model space (acModelSpace) and paper space (acPaperSpace).
Complete the code to get the active viewport in paper space.
vp = acad.ActiveDocument.[1]ActiveViewport returns the current viewport object when working in paper space.
Fix the error in the code to access model space objects.
ms = acad.ActiveDocument.[1]ModelSpace is the collection of all objects in the model environment.
Fill both blanks to create a new layout and switch to paper space.
layout = acad.ActiveDocument.Layouts.Add('[1]') acad.ActiveDocument.[2] = layout
Add a new layout by name and then set ActiveLayout to the new layout object to switch to its paper space.
Fill all three blanks to print the current paper space layout.
layout = acad.ActiveDocument.ActiveLayout printer = acad.ActiveDocument.Plot.[1] acad.ActiveDocument.Plot.[2] = layout.Name acad.ActiveDocument.Plot.[3]()
Set the plot ConfigName (printer/plotter), assign the layout name to LayoutName, then call PlotToDevice to print.
