- const ACHAR * filename Input fully qualified file name of the DWG file that contains the view; if null, this is assumed to be the current AcDbDatabase
- const ACHAR * viewName Input name of an AcDbViewTableRecord in the drawing referred to by filename
- const AcGePoint2d location Input desired location of the new viewport in paperspace coordinates of the current layout
- double scale Input scale of the model space within the viewport to the paperspace the viewport is being created in; this effectively dictates the size of the viewport
- AcDbObjectId labelBlockId Input object ID of the label block definition to be displayed below the viewport
- AcDbObjectId& sheetViewId Output the ID of an AcDbViewTableRecord for a paperspace view showing the viewport, the label block, and a small padding area around the border on success, or AcDbObjectId::kNull otherwise
- AcDbObjectId& viewportId Output set to the ID of the AcDbViewport created by this method on success, or AcDbObjectId::kNull otherwise
This function creates an AcDbViewport in the current layout of the current drawing database. It takes the referred to file, XREFs it in, creates a viewport at the specified location at a size determined from the view's model size combined with the scale factor, and sets the viewing parameters of the viewport to those of the view, including the views layer state. This method provides no user interaction.
The insertion point of the block definition should be appropriate for the labelBlockId block to be inserted in the layout at the lower-left corner of the viewport.
Returns eOk on success.
Hi Jeff, I'm aware that this is an old topic but this is a great idea, adding a new sheet view set on a sheet set manually takes a lot of time per view.The method is not exposed and using pinvoke
Can you add more information on how to use the code at post #1
BTW, are you having issues using sheet sets with cloud servers?I have not used them on a cloud server but from my understanding 2023 has improvements for that and is currently being updated to fix bugs and add more functionality