Over 1.111.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
The new Beam calculator, Spirograph generator and Regression curves in the Converters section.
CAD tip # 7171:
Question
A
For renderings, for screen-captures of your drawings, or other similar actions you may need to fix the size of the document window (DWG drawing) in the main AutoCAD application window. To set the window size to a specified number of pixels (width + height) you can use the following simple LISP code (change the size parameters as needed):
;Sets drawing window size ;by CADstudio.cz (vl-load-com) (setq sizer_actdoc (vla-get-activedocument (vlax-get-acad-object))) (vla-put-width sizer_actdoc 1000);W=1000px (vla-put-height sizer_actdoc 800);H=800pxCopy the code via copy/paste, or save it to SIZER.LSP and load it with APPLOAD, or assign it to a new AutoCAD menu icon. The function changes the window size of the current document (even a maximized window).
You can also use the interactive version of SIZER.LSP - see
Download
ACAD
20.1.2010
18829×
this tip shared by ARKANCE experts applies to: AutoCAD ·
![CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](../common/arkance_186.png)

