Synopsis

PDX_MSGT dxcr_Viewport(long option, MDA_PTR orig_ptr, double *xyzloc, double width, double height, int id, int status, double *xyztarget, double *xyzdir, double twist, double vheight, double *xycenter, double lens_len, double front_clip, double back_clip, int version, int view_mode, int cir_zoom, int fast_zoom, int ucsicon, int snap_status, int grid_status, int snap_style, int snap_isopair, int hidden_plot, int rendermode, int ucsvp, int ucsorthotype, long statusflags, double snap_ang, double elevation, double *xysnap, double *snapspace, double *gridspace, double *ucsorg, double *ucsxdir, double *ucsydir, int lay_num, char **lay_name, MDA_PTR clipboundobjhandle, MDA_PTR ucsobjhandle, MDA_PTR baseucsobjhandle, char *stylesheet, int dxf_model, MDA_PTR *dxf_ptr)

Purpose

Create a DXF Viewport.

Description

A DXF Viewport entity is created for the given data. The orig_ptr argument should contain the database pointer of the entity that the new entity was created from (usually this should be obtained by the calling routine via mda_GetOrigDbptr) or MDA_NULL_PTR. See the mda_intro man page for more information about predecessor entities.

Input

option

Options (not used)

orig_ptr

The original entities orig_ptr as obtained from the mda_GetOrigDbptr call, or MDA_NULL_PTR

xyzloc

Center point

width

Width

height

Height

id

Identifier

status

Status

xyztarget

Target point

xyzdir

View direction

twist

Twist angle

vheight

View height

xycenter

View center

lens_len

Lens length

front_clip

Front clipping plane offset

back_clip

Back clipping plane offset

version

Version number

view_mode

View mode

cir_zoom

Circle zoom

fast_zoom

Fast zoom

ucsicon

UCSICON setting

snap_status

Snap status

grid_status

Grid status

snap_style

Snap style

snap_isopair

Snap isopair

hidden_plot

Hidden plot flag

rendermode

Render mode

ucsvp

Viewport UCS flag

ucsorthotype

UCS ortho view type

statusflags

Viewport status flags

snap_ang

Snap rotation angle

elevation

UCS elevation

xysnap

Snap base point

snapspace

X and Y snap spacing

gridspace

X and Y grid spacing

ucsorg

UCS origin

ucsxdir

UCS X direction

ucsydir

UCS Y direction

lay_num

Number of layers

lay_name

Layer names

clipboundobjhandle

Clipping boundary entitiy

ucsobjhandle

UCS object handle

baseucsobjhandle

Base UCS object handle

stylesheet

Plot stylesheet

dxf_model

DXF model number

Output

dxf_ptr

Entity pointer of the DXF Viewport

Return

      DXCR_NOERR
      Low level error return
      .fi