home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Global Amiga Experience
/
globalamigaexperience.iso
/
graphic
/
cad
/
xcad3000
/
xcdoc
/
defview
< prev
next >
Wrap
Text File
|
1995-07-10
|
3KB
|
87 lines
3.2.2 DEFINE VIEWPORT
The DEFINE VIEWPORT is used to define a secondary viewport within the area
of the SHEET viewport. The maximum number of viewports that can be defined
is 32 including the SHEET viewport.
Viewports inside the SHEET viewport are like drawings within a drawing. A
secondary viewport can have an independent scale, origin and units type.
This allows certain areas to be set up on the sheet for drawing scaled ob-
jects, or for creating drawings that require a coordinate system with the
origin ( point X 0 Y 0 ) in some place other than the bottom left of the
drawing area.
COMMAND FORMAT
#DEFINE VIEWPORT modifiers :Loc x1 x2 :Origin x3 [CR]
Unless the viewport window is specified explicitly, locations 'x1'and 'x2'
define a window on the SHEET viewport that will become the new viewport
maximum extents.
Once a viewport area has been defined, it cannot be made larger. So a
viewport area should be defined with this in mind. It is better to over-
estimate a viewport area as viewport windows can be clipped to a smaller
area.
Unless the viewport origin is specified explicitly, location 'x3' defines
the point that will become the new viewport origin. ( ie the coordinate
point X0Y0 ). The viewport origin can be anywhere on the sheet, it does not
have to be within the new viewport area. ( See fig. 3.4 ).
MODIFIERS
NAME The name of the new viewport. This must be a unique name made
up of a maximum of 20 alphabetic characters.
UNITS The new viewport units type. This may be one of:
MM Millimetres.
CM Centimetres.
M Metres.
KM Kilometres.
IN Inches.
FT Feet.
ML Miles.
If the modifier is omitted, the new viewport will use the sheet
units.
SCALE Requires a viewport scale value where the value defines the
scale as "1 to value". A value of 100 will define a viewport
scale of 1 to 100. This allows large or small objects to be
drawn in their true dimensions but at a scale relative to the
overall drawing sheet.
The default viewport scale is 1.0 .
CUSTOM Indicates that the viewport window area is to be defined
explicitly. When using the CUSTOM modifier, the command format
differs slightly:
#DEFINE VIEWPORT CUSTOM modifiers :Origin x1 [CR]
The location 'x1' defines where the bottom left corner of the
new viewport will be on the drawing sheet.
.HEIGHT The height of the new viewport. This is specified in the units
and scale of the new viewport.
.WIDTH The width of the new viewport. This is specified in the units
and scale of the new viewport.
.ORIGIN Requires 2 values to specify where the origin of the new view-
port will be relative to the bottom left corner. The origin
point is given in terms of the new viewport units and scale. ie
ORIGIN -3,5.5
Will make the new viewport origin at the point -3.0,5.5 relative
to the bottom left corner of the new viewport ( point 'x1' ).