📄 ad2.h
字号:
double uvec[3],vvec[3];
unsigned short clipping,brightness,contrast,fade,clipboundtype;
unsigned short displayprops;
long numclipverts;
double rectclipvert0[2],rectclipvert1[2];
AD_VMADDR polyclipvertblob;
AD_VMADDR grblob;
AD_OBJHANDLE imagedefobjhandle,imagedefreactorobjhandle;
AD_VMADDR bmpblob; /* for AD3 -- to hold bmp data */
} AD_IMAGE, *PAD_IMAGE;
typedef struct adinsertstru {
short attribsfollow;
double pt0[3];
double xscale;
double yscale;
double zscale;
double rotang;
double rowdist;
double coldist;
short numrows;
short numcols;
AD_OBJHANDLE blockheaderobjhandle;
} AD_INSERT,*PAD_INSERT;
typedef struct adleaderstru {
unsigned short numpoints;
unsigned char pathtype,arrowheadon,hooklineonxdir,hashookline;
unsigned short annotype,colorforbyblock;
double annoht,annowid;
double txtoffset[3];
double xdir[3];
double offsettoblkinspt[3];
AD_OBJHANDLE annohandle,dimstyleobjhandle;
AD_VMADDR ldblob;
} AD_LEADER,*PAD_LEADER;
typedef struct adline3dstru {
double pt0[3];
double pt1[3];
} AD_LINE3D,*PAD_LINE3D;
typedef struct adlinestru {
double pt0[3];
double pt1[3];
} AD_LINE,*PAD_LINE;
typedef struct adlwplinestru {
long numpoints;
unsigned short flag;
double elevation;
double constantwidth;
AD_VMADDR ldblob;
} AD_LWPLINE,*PAD_LWPLINE;
typedef struct admlinestru {
double scale;
short justification;
short openclosed,linesinstyle;
unsigned short numverts;
double basept[3];
AD_OBJHANDLE mlinestyleobjhandle;
AD_VMADDR ldblob;
} AD_MLINE,*PAD_MLINE;
typedef struct admtextstru {
double pt0[3];
double xdir[3];
double ht,refrectwid;
char attachpt;
char drawdir;
double boxht,boxwid;
short linespacingstyle;
double linespacingfactor;
AD_OBJHANDLE shapefileobjhandle;
AD_VMADDR ldblob;
char textstr[257];
} AD_MTEXT,*PAD_MTEXT;
typedef struct adole2framestru {
short flag;
short mode;
char rawchar;
long databytes;
double pt0[3],pt1[3];
AD_VMADDR datablob;
} AD_OLE2FRAME,*PAD_OLE2FRAME;
typedef struct adpolylinestru {
double z1;
double startwidth;
double endwidth;
short fittype;
short meshmdensity;
short meshndensity;
short meshm;
short meshn;
unsigned short polyflag;
} AD_PLINE,*PAD_PLINE;
typedef struct adpointstru {
double pt0[3];
double ucsxangle;
} AD_POINT,*PAD_POINT;
typedef struct adproxyentstru {
short entclassid;
short appclassid;
long entdatabits;
long numobjids;
long objectdrawingformat;
short origdataformat;
AD_VMADDR entdatablob;
AD_VMADDR objidblob;
AD_VMADDR grblob;
} AD_PROXYENT,*PAD_PROXYENT;
typedef struct adraystru {
double pt0[3],unitvec[3];
} AD_RAY,*PAD_RAY;
typedef struct adrtextstru {
double pt0[3];
double rotang;
double height;
AD_OBJHANDLE textstyleobjhandle;
short typeflag;
AD_VMADDR grblob;
char contents[1024];
} AD_RTEXT, *PAD_RTEXT;
typedef struct adshapestru {
double pt0[3];
double scale;
unsigned char whichshape;
double rotang;
double widthfactor;
double oblique;
AD_OBJHANDLE shapefileobjhandle;
} AD_SHAPE,*PAD_SHAPE;
typedef struct adsolidstru {
double pt0[3];
double pt1[3];
double pt2[3];
double pt3[3];
} AD_SOLID,*PAD_SOLID;
typedef struct adsplinestru {
short degree;
short flag;
unsigned short numknots,numctlpts,numfitpts;
double knottol,ctltol,fittol;
double starttangent[3],endtangent[3];
AD_VMADDR ldblob;
} AD_SPLINE,*PAD_SPLINE;
typedef struct adtextstru {
double pt0[3];
AD_TDATA tdata;
char textstr[2048];
} AD_TEXT,*PAD_TEXT;
typedef struct adtolerancestru {
double pt0[3];
double xdir[3];
AD_OBJHANDLE dimstyleobjhandle;
double textht;
char textstr[1024];
} AD_TOLERANCE,*PAD_TOLERANCE;
typedef struct adtracestru {
double pt0[3];
double pt1[3];
double pt2[3];
double pt3[3];
} AD_TRACE,*PAD_TRACE;
typedef struct advertexstru {
double pt0[3];
unsigned short vertexflag;
double startwidth;
double endwidth;
short startwidthvalid;
short endwidthvalid;
double bulge;
double tangentdir;
short polyfacevertcount;
short polyfacevert[4];
} AD_VERTEX,*PAD_VERTEX;
typedef struct advpentstru {
AD_VMADDR frozenlayerblob;
long numfrozenlayers;
short flag;
short stackval;
double cen[3];
double width;
double height;
short id;
char purgedflag; /* flag indicating entry has been purged */
short xrefindex; /* index of xref from which this item came */
AD_OBJHANDLE objhandle;
AD_OBJHANDLE clipboundobjhandle;
unsigned long statusflags;
short rendermode;
char stylesheet[AD_MAX_STRLEN];
short ucsvp;
short ucsiconatucsorigin;
double ucsorg[3];
double ucsxdir[3];
double ucsydir[3];
short ucsorthoviewtype;
double ucselevation;
AD_OBJHANDLE ucsobjhandle;
AD_OBJHANDLE baseucsobjhandle;
/* new with A2K -- these variables, which control the display of the modelspace view
which is seen through the viewport entity, moved out of xdata and into the entity */
double viewtarget[3];
double viewdir[3];
double viewtwist;
double viewheight;
double viewcenter[2];
double viewlenslength;
double viewfrontclip;
double viewbackclip;
short viewcirclezoom;
double viewsnapdist[2];
double viewgriddist[2];
double viewsnapangle;
double viewsnapbase[2];
AD_OBJHANDLE hdrObjHandle;
char name[AD_MAX_STRLEN]; /* important -- name should be last field */
} AD_VPENT,*PAD_VPENT;
typedef struct adwipeoutstru {
long classversion;
double pt0[3];
double size[2];
double uvec[3],vvec[3];
unsigned short clipping,brightness,contrast,fade,clipboundtype;
unsigned short displayprops;
long numclipverts;
double rectclipvert0[2],rectclipvert1[2];
AD_VMADDR polyclipvertblob;
AD_VMADDR grblob;
AD_OBJHANDLE imagedefobjhandle,imagedefreactorobjhandle;
} AD_WIPEOUT, *PAD_WIPEOUT;
typedef struct adxlinestru {
double pt0[3],unitvec[3];
} AD_XLINE,*PAD_XLINE;
typedef union adenunion {
AD_ACIS acisobj;
AD_ARC arc;
AD_ARCALIGNEDTEXT arcalignedtext;
AD_ATTDEF attdef;
AD_ATTRIB attrib;
AD_BLOCK block;
AD_CIRCLE circle;
AD_DIM dim;
AD_ELLIPSE ellipse;
AD_FACE3D face3d;
AD_HATCH hatch;
AD_IMAGE image;
AD_INSERT insert;
AD_LEADER leader;
AD_LINE line;
AD_LINE3D line3d;
AD_LWPLINE lwpline;
AD_MLINE mline;
AD_MTEXT mtext;
AD_OLE2FRAME ole2frame;
AD_PLINE pline;
AD_POINT point;
AD_PROXYENT proxyent;
AD_RAY ray;
AD_RTEXT rtext;
AD_SHAPE shape;
AD_SOLID solid;
AD_SPLINE spline;
AD_TEXT text;
AD_TOLERANCE tolerance;
AD_TRACE trace;
AD_VERTEX vertex;
AD_VPENT vpent;
AD_WIPEOUT wipeout;
AD_XLINE xline;
} AD_ENT,*PAD_ENT;
#endif
#ifndef ADXDSTRUDEFINED
#define ADXDSTRUDEFINED
typedef union xdunion {
double xd3dpt[3]; /* extended data 3d point x, */
AD_OBJHANDLE xdappobjhandle; /* objhandle of app for R13+ */
char xdbindata[128]; /* extended data binary data */
char xdcontrol; /* { or } */
AD_OBJHANDLE xdhandle; /* extended data database handle */
double xddist; /* extended data distance */
short xdint; /* extended data integer */
AD_OBJHANDLE xdentlayerobjhandle; /* extended data layer object handle */
long xdlong; /* extended data long integer */
double xdreal; /* extended data real number */
double xdscale; /* extended data scale factor */
char xdstring[2048]; /* extended data string */
double xdworlddir[3]; /* extended data world direction xyz */
double xdworlddisp[3]; /* extended data world displacement xyz */
double xdworldpos[3]; /* extended data world position xyz */
} AD_XD_DATA,*PAD_XD_DATA;
typedef struct adxdstru {
short xddxfnumber;
short xdbindatalength; /* size of the data for binary data */
AD_XD_DATA xddata;
} AD_XD,*PAD_XD;
#endif
/* end of entity values */
#ifndef ADTBLSTRUSDEFINED
#define ADTBLSTRUSDEFINED
typedef struct adappstru {
AD_OBJHANDLE ownerobjhandle;
short xrefindex; /* index of xref from which this item came */
char purgedflag; /* flag indicating entry has been purged */
char flag;
char name[AD_MAX_STRLEN];
AD_OBJHANDLE objhandle;
AD_OBJHANDLE xdicobjhandle; /* objh of xdictionary */
AD_VMADDR xdblob;
long numreactors;
AD_VMADDR reactorblob;
} AD_APP,*PAD_APP;
typedef struct adblkhstru {
AD_OBJHANDLE ownerobjhandle;
AD_OBJHANDLE layoutobjhandle;
AD_VMADDR previewblob;
char flag; /* flag for block */
char name[AD_MAX_STRLEN]; /* name of block */
char purgedflag; /* flag indicating entry has been purged */
short xrefindex; /* index of xref from which this item came */
AD_OBJHANDLE objhandle;
char xrefblkisoverlaid; /* if an xref and this is 1 it's overlaid, */
/* otherwise it's attached (R13+ only) */
AD_VMADDR xdblob;
AD_VMADDR entitylist;
char ad3vectorize; /* controls vectorization (AD3 only) */
AD_OBJHANDLE xdicobjhandle; /* objh of xdictionary */
long numreactors;
AD_VMADDR reactorblob;
char description[512];
} AD_BLKH,*PAD_BLKH;
typedef struct adclassstru {
unsigned short classnum;
char classdxfname[AD_MAX_STRLEN];
char cplusplusclassname[AD_MAX_STRLEN];
char appname[AD_MAX_STRLEN];
short version;
short wasaproxy,itemclassid;
} AD_CLASS, *PAD_CLASS;
typedef struct addicstru {
long numdicitems;
AD_VMADDR itemblob;
short hardownerflag;
short cloningflag;
} AD_DIC,*PAD_DIC;
typedef struct addicitemstru {
char str[AD_MAX_STRLEN];
AD_OBJHANDLE itemhandle;
} AD_DICITEM,*PAD_DICITEM;
typedef struct addimstylestru {
AD_OBJHANDLE ownerobjhandle;
short xrefindex; /* index of xref from which this item came */
char flag; /* flag for dimstyle */
char purgedflag; /* 1 if purged */
char name[AD_MAX_STRLEN]; /* name of dimension style */
short dimadec;
char dimalt; /* these ds variables are the dim vars */
char dimaltd; /* associated with the dimension style */
double dimaltf; /* currently being read from the */
double dimaltrnd;
char dimapost[AD_MAX_STRLEN]; /* dimstyle table (R11) */
double dimasz;
short dimazin;
/* char dimblk[33]; */
AD_OBJHANDLE dimblkobjhandle;
/* char dimblk1[33]; */
AD_OBJHANDLE dimblk1objhandle;
/* char dimblk2[33]; */
AD_OBJHANDLE dimblk2objhandle;
double dimcen;
short dimclrd;
short dimclre;
short dimclrt;
double dimdle;
double dimdli;
double dimexe;
double dimexo;
double dimgap;
double dimlfac;
char dimlim;
char dimpost[AD_MAX_STRLEN];
double dimrnd;
char dimsah;
double dimscale;
char dimse1;
char dimse2;
double dimtfac;
char dimtih;
double dimtm;
char dimtoh;
char dimtofl;
char dimtol;
double dimtp;
double dimtsz;
double dimtxt;
double dimtvp;
char dimsoxd;
char dimtad;
char dimtix;
char dimzin;
/* new with R13 */
short dimalttd;
char dimalttz;
short dimaltu;
char dimaltz;
short dimaunit;
short dimdec;
char dimfit;
char dimjust;
char dimsd1;
char dimsd2;
short dimtdec;
char dimtolj;
char dimtzin;
short dimunit;
char dimupt;
short dimfrac;
short dimdsep;
short dimtmove;
AD_OBJHANDLE dimldrblk;
short dimlwd;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -