AutoXchange 2020 Technical Documentation

View and Size Processing

View and Size Processing Parameters
BN BlockName
A or US Drawing Size
EXTENTS Extents
HEIGHT Height
LAY Layout Name
SIZE Size
SP Drawing Space Mode
VW View
WIDTH Width

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
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
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
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
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
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
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
Alias -LAST      – Last Saved View
-MODEL  – Modelspace
-PAPER   – Paperspace
Use With all graphic formats

 

View

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
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 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

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*
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*
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*
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*
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*
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*
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*
Use With all graphic formats

FirstLayout

PARAMETER FIRSTLAYOUT
Purpose This parameter converts the first PaperSpace Layout only.
Example -first
Alias -VN=*FIRSTLAYOUT*
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
Alias -WID
Use With all graphic formats
Note The drawing height is not affected.
Last updated on 24 Mar 2020
Published on 24 Mar 2020