CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
arx2drx.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2023 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#ifndef _ARX2DRX_H
18#define _ARX2DRX_H
19
20#define AcDbObjectId OdDbObjectId
21#define AcDbObjectIdArray OdDbObjectIdArray
22#define CAcUiStringEdit CEdit
23
24#define acdbAngToF(a,b,c) (FXAPI()?FXAPI()->fdt_angtof(a,b,c):RTERROR)
25#define acdbAngToS(a,b,c,d) (FXAPI()?FXAPI()->fdt_angtos(a,b,c,d):RTERROR)
26#define acdbDisToF(a,b,c) (FXAPI()?FXAPI()->fdt_distof(a,b,c):RTERROR)
27#define acdbEntDel(a) (FXAPI()?FXAPI()->fdt_entdel(a):RTERROR)
28#define acdbEntGet(a) (FXAPI()?FXAPI()->fdt_entget(a):RTERROR)
29#define acdbEntGetX(a,b) (FXAPI()?FXAPI()->fdt_entgetx(a,b):RTERROR)
30#define acdbEntLast(a) (FXAPI()?FXAPI()->fdt_entlast(a):RTERROR)
31#define acdbEntNext(a,b) (FXAPI()?FXAPI()->fdt_entnext(a,b):RTERROR)
32#define acdbGetObjectId(id, name) (CFxAPI::GetObjectId(name, id) == RTNORM ? Acad::eOk : -1)
33#define acdbHandEnt(a,b) (FXAPI()?FXAPI()->fdt_handent(a,b):RTERROR)
34#define acdbInters(a,b,c,d,e,f) (FXAPI()?FXAPI()->fdt_inters(a,b,c,d,e,f):RTERROR)
35#define acdbRegApp(a) (FXAPI()?FXAPI()->fdt_regapp(a):RTERROR)
36#define acdbRToS(a,b,c,d) (FXAPI()?FXAPI()->fdt_rtos(a,b,c,d):RTERROR)
37#define acdbTblNext (FXAPI()?FXAPI()->fdt_tblnext(a,b):RTERROR)
38#define acdbTblObjName (FXAPI()?FXAPI()->fdt_tblobjname(a,b,c):RTERROR)
39#define acdbTblSearch (FXAPI()?FXAPI()->fdt_tblsearch(a,b,c):RTERROR)
40
41#define acDocManager GetFxSystemServices()->GetFxDocumentManager()
42
43#define acedAlert(a) (FXAPI()?FXAPI()->fdt_alert(a):RTERROR)
44#define acedArxLoad(a) (FXAPI()?FXAPI()->fdt_drxload(a):RTERROR)
45#define acedArxUnload(a) (FXAPI()?FXAPI()->fdt_drxunload(a):RTERROR)
46#define acedCmd(a) (FXAPI()?FXAPI()->fdt_cmd(a):RTERROR)
47#define acedCommand (FXAPI()?FXAPI()->fdt_command:RTERROR)
48#define acedDragGen(a,b,c,d,e) (FXAPI()?FXAPI()->fdt_draggen(a,b,c,d,e):RTERROR)
49#define acedFindFile(x,y) (FXAPI()?FXAPI()->fdt_findfileW(x,y):RTERROR)
50#define acedGetAngle(a,b,c) (FXAPI()?FXAPI()->fdt_getangle(a,b,c):RTERROR)
51#define acedGetArgs FXAPI()->fdt_getargsW
52#define acedGetCorner(a,b,c) (FXAPI()?FXAPI()->fdt_getcorner(a,b,c):RTERROR)
53#define acedGetDist(a,b,c) fdt_(FXAPI()?FXAPI()->getdist(a,b,c):RTERROR)
54#define acedGetEnv(a,b) (FXAPI()?FXAPI()->fdt_fgetenv(a,b):RTERROR)
55#define acedGetFileD(a,b,c,d,e) (FXAPI()?FXAPI()->fdt_getfiled(a,b,c,d,e):RTERROR)
56#define acedGetFileNavDialog(a,b,c,d,e,f) (FXAPI()?FXAPI()->fdt_getfiledW(a,b,c,e,f):RTERROR)
57#define acedGetInput(a) (FXAPI()?FXAPI()->fdt_getinput (a):RTERROR)
58#define acedGetInt(a,b) (FXAPI()?FXAPI()->fdt_getint(a,b):RTERROR)
59#define acedGetKword(a,b) (FXAPI()?FXAPI()->fdt_getkword(a,b):RTERROR)
60#define acedGetOrient(a,b,c) (FXAPI()?FXAPI()->fdt_getorient(a,b,c):RTERROR)
61#define acedGetPoint(a,b,c) (FXAPI()?FXAPI()->fdt_getpoint(a,b,c):RTERROR)
62#define acedGetReal(a,b) (FXAPI()?FXAPI()->fdt_getreal(a,b):RTERROR)
63#define acedGetRGB(a) (FXAPI()?FXAPI()->fdt_getrgb(a):RTERROR)
64#define acedGetString(a,b,c) (FXAPI()?FXAPI()->fdt_getstring(a,b,c):RTERROR)
65#define acedGetVar(x,y) (FXAPI()?FXAPI()->fdt_getvarW(x,y):RTERROR)
66#define acedGraphScr (FXAPI()?FXAPI()->fdt_graphscr:RTERROR)
67#define acedGrRead(a,b,c) (FXAPI()?FXAPI()->fdt_grread(a,b,c):RTERROR)
68#define acedInitGet(a,b) (FXAPI()?FXAPI()->fdt_initget(a,b):RTERROR)
69#define acedMenuCmd(a) (FXAPI()?FXAPI()->fdt_menucmd(a):RTERROR)
70#define acedNEntSel(a,b,c,d,e) (FXAPI()?FXAPI()->fdt_nentsel(a,b,c,d,e):RTERROR)
71#define acedNEntSelP(a,b,c,d,e,f) (FXAPI()?FXAPI()->fdt_nentselp(a,b,c,d,e,f):RTERROR)
72#define acedNEntSelPEx(a,b,c,d,e,f,g,h) (FXAPI()?FXAPI()->fdt_nentselpex(a,b,c,d,e,f,g,h):RTERROR)
73#define acedRedraw(a,b) (FXAPI()?FXAPI()->fdt_redraw(a,b):RTERROR)
74#define acedRetInt(x) (FXAPI()?FXAPI()->fdt_retint(x):RTERROR)
75#define acedRetList(x) (FXAPI()?FXAPI()->fdt_retlistW(x):RTERROR)
76#define acedRetNil() (FXAPI()?FXAPI()->fdt_retnil():RTERROR)
77#define acedRetPoint(x) (FXAPI()?FXAPI()->fdt_retpoint(x):RTERROR)
78#define acedRetReal(x) (FXAPI()?FXAPI()->fdt_retreal(x):RTERROR)
79#define acedRetStr(x) (FXAPI()?FXAPI()->fdt_retstrW(x):RTERROR)
80#define acedRetT() (FXAPI()?FXAPI()->fdt_rett():RTERROR)
81#define acedRetVal(a) (FXAPI()?FXAPI()->fdt_retval(a):RTERROR)
82#define acedRetVoid (FXAPI()?FXAPI()->fdt_retvoid:RTERROR)
83#define acedSetEnv(a,b) (FXAPI()?FXAPI()->fdt_setenv(a,b):RTERROR)
84#define acedSetVar(x,y) (FXAPI()?FXAPI()->fdt_setvarW(x,y):RTERROR)
85#define acedSetView(a,b) (FXAPI()?FXAPI()->fdt_setview(a,b):RTERROR)
86#define acedSSAdd(a,b,c) (FXAPI()?FXAPI()->fdt_ssadd(a,b,c):RTERROR)
87#define acedSSFree(a) (FXAPI()?FXAPI()->fdt_ssfree(a):RTERROR)
88#define acedSSGet(a,b,c,d,e) (FXAPI()?FXAPI()->fdt_ssget(a,b,c,d,e):RTERROR)
89#define acedSSLength(x,y) (FXAPI()?FXAPI()->fdt_sslength(x,y):RTERROR)
90#define acedSSMemb(a,b) (FXAPI()?FXAPI()->fdt_ssmemb(a,b):RTERROR)
91#define acedSSName(x,y,z) (FXAPI()?FXAPI()->fdt_ssname(x,y,z):RTERROR)
92#define acedTextBox(a,b,c) (FXAPI()?FXAPI()->fdt_textbox(a,b,c):RTERROR)
93#define acedTextPage (FXAPI()?FXAPI()->fdt_textpage:RTERROR)
94#define acedTextScr (FXAPI()?FXAPI()->fdt_textscr:RTERROR)
95#define acedTrans(a,b,c,d,e) (FXAPI()?FXAPI()->fdt_trans(a,b,c,d,e):RTERROR)
96#define acedUsrBrk() (FXAPI()?FXAPI()->fdt_usrbrk():RTERROR)
97#define acedVports(a) (FXAPI()?FXAPI()->fdt_vports(a):RTERROR)
98
99#define acutAngle(a,b) (FXAPI()?FXAPI()->fdt_angle(a,b):RTERROR)
100#define acutBuildList FXAPI()->fdt_buildlistW
101#define acutCvUnit(a,b,c,d) (FXAPI()?FXAPI()->fdt_cvunit(a,b,c,d):RTERROR)
102#define acutDistance(a,b) (FXAPI()?FXAPI()->fdt_distance(a,b):RTERROR)
103#define acutIsAlNum(a) (FXAPI()?FXAPI()->fdt_isalnum(a):RTERROR)
104#define acutIsAlpha(a) (FXAPI()?FXAPI()->fdt_isalpha(a):RTERROR)
105#define acutIsCntrl(a) (FXAPI()?FXAPI()->fdt_iscntrl(a):RTERROR)
106#define acutIsDigit(a) (FXAPI()?FXAPI()->fdt_isdigit(a):RTERROR)
107#define acutIsGraph(a) (FXAPI()?FXAPI()->fdt_isgraph(a):RTERROR)
108#define acutIsLower(a) (FXAPI()?FXAPI()->fdt_islower(a):RTERROR)
109#define acutIsPrint(a) (FXAPI()?FXAPI()->fdt_isprint(a):RTERROR)
110#define acutIsPunct(a) (FXAPI()?FXAPI()->fdt_ispunct(a):RTERROR)
111#define acutIsSpace(a) (FXAPI()?FXAPI()->fdt_isspace(a):RTERROR)
112#define acutIsUpper(a) (FXAPI()?FXAPI()->fdt_isupper(a):RTERROR)
113#define acutIsXDigit(a) (FXAPI()?FXAPI()->fdt_isxdigit(a):RTERROR)
114#define acutNewRb(x) (FXAPI()?FXAPI()->fdt_newrbW(x):NULL)
115#define acutPolar(a,b,c,d) (FXAPI()?FXAPI()->fdt_polar(a,b,c,d):RTERROR)
116#define acutPrintf FXAPI()->fdt_printfW
117#define acutRelRb(x) (FXAPI()?FXAPI()->fdt_relrbW(x):RTERROR)
118#define acutToLower(a) (FXAPI()?FXAPI()->fdt_tolower(a):RTERROR)
119#define acutToUpper(a) (FXAPI()?FXAPI()->fdt_toupper(a):RTERROR)
120#define acutWcMatch(a,b) (FXAPI()?FXAPI()->fdt_wcmatch(a,b):RTERROR)
121
122#define ads_name fdt_name
123#define ads_point fdt_point
124#define ads_printf FXAPI()->fdt_printfW
125
126#define curDoc() GetFxSystemServices()->GetFxDocumentManager()->GetActiveDocument()
127
128// Issue 23322
129// Might not compile like this, but it gives a
130// hint about what to include and how to use.
131#define acedSetCurrentView(/* OdDbViewTableRecordPtr*/ pVwRec,/*OdDbViewportPtr*/ pVP) OdAbstractViewPEPtr(pVP)->setView( pVP, pVwRec )
132
133#define resbuf fdt_resbufW
134
135#endif // _ARX2DRX_H