View and Size Processing
Model
PARAMETER |
Model |
Purpose |
Selects the Model Space of the Input drawing |
Example |
-model |
JSON |
{“SpaceMode”: “Model”} |
Alias |
See View section |
Use |
DWG/DXF/DGN Only |
Last
PARAMETER |
Last |
Purpose |
Converts the last saved view. |
Example |
-last |
JSON |
{“SpaceMode”: “Last”} |
Alias |
See View section |
Use |
DWG/DXF/DGN Only |
View
PARAMETER |
View |
Purpose |
Converts a named paperspace view |
Example |
-view=“my view” |
JSON |
{“View”: “My View”} |
Alias |
-vn=“my view”, See View section |
Use |
DWG/DXF/DGN Only |
Paper
PARAMETER |
Paper |
Purpose |
Converts the first paperspace Layout in the drawing |
Example |
-paper |
JSON |
{“SpaceMode”: “Paper”} |
Alias |
See View section |
Use |
DWG/DXF/DGN Only |
Basic
PARAMETER |
Basic |
Purpose |
Converts the the modelspace and all layout views |
Example |
-basic |
JSON |
{“SpaceMode”: “Basic”} |
Alias |
See View section |
Use |
DWG/DXF/DGN Only |
Block Name
PARAMETER |
BLOCKNAME |
Purpose |
If the block named by this parameter is processed, then the AutoCAD Handle is output on the SVG Group (<g>) command using the tag “cvjs:handle”. |
Example |
-BN=THISBLOCK |
JSON |
{“BlockName”: “ThisBlock”} |
Alias |
-BN |
Use |
SVG Only |
Drawing Size
PARAMETER |
A or US |
Purpose |
These parameters control the output drawing size for PDF documents. |
Values |
A: 0: A0 to 5: A5 |
|
US: A: ANSI A to E: ANSI E |
Note |
If only A or US is used, then Drawing Size Mode is ignored |
Example |
-A=2 |
JSON |
{“DIN”: “A0”} {“ANSI”: “A”} {“ARCH”: “A”} |
Alias |
-A0: DIN A0 |
|
-A1: DIN A1 |
|
-A2: DIN A2 |
|
-A3: DIN A3 |
|
-A4: DIN A4 |
|
-A5: DIN A5 |
|
-UA: ANSI A |
|
-UB: ANSI B |
|
-UC: ANSI C |
|
-UD: ANSI D |
|
-UE: ANSI E |
Use |
With all graphic formats |
Extents
PARAMETER |
EXTENTS |
Purpose |
This parameter forces the entire extents (all of the graphics) in the current “space” (Model Space or Paper Space) to be converted, not just the graphics in the current view. |
Example |
-EXTENTS |
JSON |
{“EXTENTS”: “TRUE”} {“EXTENTS”: true} |
Alias |
None |
Use |
With all graphic formats |
Height
PARAMETER |
HEIGHT |
Purpose |
This parameter sets the height of the output drawing. The size is given in the default units of the output format (pixels for SVG and points (1/72nd of an inch) for PDF). |
Example |
-HEIGHT 792 |
JSON |
{“Height”: “792”} {“Height”: 792} |
Alias |
-HGT |
Use |
With all graphic formats |
Note |
The drawing width is not affected |
Layout Name
PARAMETER |
LAY |
Purpose |
This parameter controls which Paperspace Layout is converted. The default is “Layout1”. |
Notes |
The Layout must exist in the drawing or nothing will be converted and an error message will be output. If a Layout Name is listed, Paperspace Mode will be automatically selected. |
Example |
-LAY=Layout30 |
JSON |
{“Layout”: “Layout30”} |
Alias |
-LAYOUT |
Use |
With all graphic formats |
Size
PARAMETER |
SIZE |
Purpose |
This parameter sets both the height and the width of the output drawing to the same value. The size is given in the default units of the output format (pixels for SVG and points (1/72nd of an inch) for PDF). |
Example |
-SIZE 792 |
JSON |
{“Size”: “792”} {“Size”: 792} |
Alias |
-SZ |
Use |
With all graphic formats |
Space Mode
PARAMETER |
SP[ACE] |
Purpose |
This parameter controls whether the Paperspace or Modelspace portion of the AutoCAD drawing is converted. |
Values |
0 – Last Saved View |
|
1 – Modelspace |
|
2 – Paperspace |
|
L[AST] – Last Saved View |
|
M[ODEL] – Modelspace |
|
P[APER] – Paperspace |
Note |
If Layout Name (-L) is used, then Space Mode is ignored. If Space Mode is set to Paperspace without using the Layout Name command, then “Layout1” is used as the Layout Name. |
Example |
-SP=1 |
|
-SP=M |
JSON |
{“SpaceMode”:“Model”} |
Alias |
-LAST – Last Saved View |
|
-MODEL – Modelspace |
|
-PAPER – Paperspace |
Use |
With all graphic formats |
Views
PARAMETER |
VIEW |
Purpose |
This parameter controls which Modelspace View is converted. |
Notes |
The View must exist in the drawing or nothing will be converted and an error message will be output |
Example |
-VIEW=Model1 |
JSON |
{“View”: “Model1”} |
Alias |
-VN |
Use |
With all graphic formats |
The following define the modes for the multiple view conversions:
VIEW NAME COMMAND |
PARAMETER ALIAS |
|
-VN=*ALL* |
-all |
Convert all views including ModelSpace, PaperSpace Layouts and ModelSpaceViews plus Paperspace default and Last Saved View |
-VN=*BASIC* |
-basic |
Convert ModelSpace and all Layouts Views |
-VN=*NOLAST* |
-nolast |
Convert all views including ModelSpace, PaperSpace Layouts and ModelSpace Views plus Paperspace default but not Last Saved View |
-VN=*ALLPAPER* |
-allpaper |
Converts all PaperSpace Layouts plus PaperSpace default |
-VN=*ALLMODEL* |
-allmodel |
Converts all ModelSpace Views plus ModelSpace |
-VN=*VIEWSONLY* |
-viewsonly |
Converts all ModelSpace Views but not ModelSpace |
-VN=*LAYOUTSONLY* |
-layoutsonly |
Converts all PaperSpace Layouts but not PaperSpace default |
-VN=*FIRSTLAYOUT* |
-firstlayout |
Converts the first PaperSpace Layout only |
Multiple View Conversion
The following define the modes for the multiple view conversions:
VIEW NAME COMMAND |
PARAMETER ALIAS |
|
-VN=*ALL* |
-all |
Convert all views including ModelSpace, PaperSpace Layouts and ModelSpaceViews plus Paperspace default and Last Saved View |
-VN=*BASIC* |
-basic |
Convert all views except ModelSpace, so PaperSpace Layouts and ModelSpace Views |
-VN=*NOLAST* |
-nolast |
Convert all views including ModelSpace, PaperSpace Layouts and ModelSpace Views plus Paperspace default but not Last Saved View |
-VN=*ALLPAPER* |
-allpaper |
Converts all PaperSpace Layouts plus PaperSpace default |
-VN=*ALLMODEL* |
-allmodel |
Converts all ModelSpace Views plus ModelSpace |
-VN=*VIEWSONLY* |
-viewsonly |
Converts all ModelSpace Views but not ModelSpace |
-VN=*LAYOUTSONLY* |
-layoutsonly |
Converts all PaperSpace Layouts but not PaperSpace default |
-VN=*FIRSTLAYOUT" |
-firstlayout |
Converts the first PaperSpace Layout only |
All
PARAMETER |
ALL |
Purpose |
This parameter forces all views including ModelSpace, PaperSpace Layouts and ModelSpaceViews plus Paperspace default and Last Saved View to be converted. |
Example |
-all |
Alias |
-VN=*ALL* |
JSON |
{“SpaceMode”:“All”} |
Use |
With all graphic formats |
Basic
PARAMETER |
BASIC |
Purpose |
This parameter forces conversion of all views except ModelSpace, so PaperSpace Layouts and ModelSpace Views are converted. |
Example |
-basic |
Alias |
-VN=*BASIC* |
JSON |
{“SpaceMode”:“Basic”} |
Use |
With all graphic formats |
NoLast
PARAMETER |
NOLAST |
Purpose |
This parameter forces conversion of all views including ModelSpace, PaperSpace Layouts and ModelSpace Views plus Paperspace default but not Last Saved View. |
Example |
-nolast |
Alias |
-VN=*NOLAST* |
JSON |
{“SpaceMode”:“NoLast”} |
Use |
With all graphic formats |
AllPaper
PARAMETER |
ALLPAPER |
Purpose |
This parameter forces all PaperSpace Layouts plus PaperSpace default to be converted. |
Example |
-allpaper |
Alias |
-VN=*ALLPAPER* |
JSON |
{“SpaceMode”:“AllPaper”} |
Use |
With all graphic formats |
AllModel
PARAMETER |
ALLMODEL |
Purpose |
This parameter forces all ModelSpace Views plus ModelSpace default to be converted. |
Example |
-allmodel |
Alias |
-VN=*ALLMODEL* |
JSON |
{“SpaceMode”: “AllModel”} |
Use |
With all graphic formats |
LayoutsOnly
PARAMETER |
LAYOUTSONLY |
Purpose |
This parameter forces all PaperSpace Layouts but not PaperSpace default to be converted. |
Example |
-layoutsonly |
Alias |
-VN=*LAYOUTSONLY* |
JSON |
{“SpaceMode”:“LayoutsOnly”} |
Use |
With all graphic formats |
ViewsOnly
PARAMETER |
VIEWSONLY |
Purpose |
This parameter forces all ModelSpace Views but not ModelSpace default to be converted. |
Example |
-viewsonly |
Alias |
-VN=*VIEWSONLY* |
JSON |
{“SpaceMode”:“ViewsOnly”} |
Use |
With all graphic formats |
FirstLayout
PARAMETER |
FIRSTLAYOUT |
Purpose |
This parameter converts the first PaperSpace Layout only. |
Example |
-first |
Alias |
-VN=*FIRSTLAYOUT* |
JSON |
{“SpaceMode”,“FirstLayer”} |
Use |
With all graphic formats |
Width
PARAMETER |
WIDTH |
Purpose |
This parameter sets the width of the output drawing. The size is given in the default units of the output format (pixels for SVG and points (1/72nd of an inch) for PDF). |
Example |
-WIDTH 792 |
JSON |
{“Width”:“792”} {“Width”:792} |
Alias |
-WID |
Use |
With all graphic formats |
Note |
The drawing height is not affected. |
Ignore Blocks
PARAMETER |
Ignore Blocks |
Purpose |
Because AutoCAD Blocks tend to be placed on the special layer, 0, decluttering by simply turning layers off is not always sufficient. The Ignore Blocks (IB, BO, IGNORE_BLOCK[S]) parameter allows you to turn off processing of individual types of blocks. Block Names are seperated by a semi-colon. |
Example |
-IB=“WOODEN” , -IB=“WOODEN;CEMENT;HEAD” |
JSON |
{“IgnoreBlocks”: “WOODEN;CEMENT;HEAD”} |
Alias |
-IGNORE_BLOCK[S], -BO |
Use |
With DWG/DXF Input Only |
Last updated on 26 Sep 2022
Published on 22 Mar 2020