CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
ads2drx.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 _ADS2DRX_H
18
19#define _ADS2DRX_H
20
21#include "FxFdtAPI.h"
22#include "FxFdtType.h"
23
24#ifdef __cplusplus
25#error
26#endif
27
28/****************************************************************************/
29/**** ****/
30/****************************************************************************/
31
32#define X 0
33#define Y 1
34#define Z 2
35
36#define ads_real fdt_real /* Type of floating variables */
37#define ads_point fdt_point /* Type of point coordinates */
38#define ads_name fdt_name /* Type of entity and selection set names */
39
40#define ads_matrix fdt_matrix /* Type of FDT transformation matrix */
41
42#define ads_binary fdt_binary /* Structure of binary data, used in extended entity data */
43
44#define resbuf fdt_resbuf
45
46#define ads_point_set fdt_point_set
47#define ads_name_set fdt_name_set
48
49#ifdef __STDC__
50#define fdt_name_set(from, to) (memcpy(to, from, sizeof(ads_name)))
51#define fdt_point_set(from,to) (memcpy(to, from, sizeof(ads_point)))
52#else
53#define fdt_name_set(from, to) (*(to)= *(from), (to)[1]=(from)[1])
54#define fdt_point_set(from, to) (*(to)= *(from), (to)[1]=(from)[1], (to)[2]=(from)[2])
55#endif /* !__STDC__ */
56
57
58#define ads_retint FXAPI()->fdt_retint
59#define ads_retreal FXAPI()->fdt_retreal
60#define ads_retpoint FXAPI()->fdt_retpoint
61#define ads_retnil FXAPI()->fdt_retnil
62#define ads_rett FXAPI()->fdt_rett
63#define ads_retvoid FXAPI()->fdt_retvoid
64#define ads_retname FXAPI()->fdt_retname
65#define ads_exit FXAPI()->fdt_app_exit
66#define ads_graphscr FXAPI()->fdt_graphscr
67#define ads_textscr FXAPI()->fdt_textscr
68
69#define ads_isalpha FXAPI()->fdt_isalpha
70#define ads_isupper FXAPI()->fdt_isupper
71#define ads_islower FXAPI()->fdt_islower
72#define ads_isdigit FXAPI()->fdt_isdigit
73#define ads_isxdigit FXAPI()->fdt_isxdigit
74#define ads_isspace FXAPI()->fdt_isspace
75#define ads_ispunct FXAPI()->fdt_ispunct
76#define ads_isalnum FXAPI()->fdt_isalnum
77#define ads_isprint FXAPI()->fdt_isprint
78#define ads_isgraph FXAPI()->fdt_isgraph
79#define ads_iscntrl FXAPI()->fdt_iscntrl
80#define ads_toupper FXAPI()->fdt_toupper
81#define ads_tolower FXAPI()->fdt_tolower
82
83#define ads_ssget FXAPI()->fdt_ssget
84#define ads_ssfree FXAPI()->fdt_ssfree
85#define ads_sslength FXAPI()->fdt_sslength
86#define ads_ssadd FXAPI()->fdt_ssadd
87#define ads_ssname FXAPI()->fdt_ssname
88#define ads_ssmemb FXAPI()->fdt_ssmemb
89#define ads_ssdel FXAPI()->fdt_ssdel
90#define ads_xformss FXAPI()->fdt_xformss
91
92#define ads_entnext FXAPI()->fdt_entnext
93#define ads_entlast FXAPI()->fdt_entlast
94#define ads_entdel FXAPI()->fdt_entdel
95#define ads_entupd FXAPI()->fdt_entupd
96
97#define acdbNamedObjDict FXAPI()->fdt_namedobjdict
98
99#define ads_inters FXAPI()->fdt_inters
100#define ads_angle FXAPI()->fdt_angle
101#define ads_distance FXAPI()->fdt_distance
102#define ads_polar FXAPI()->fdt_polar
103
104#define ads_usrbrk FXAPI()->fdt_usrbrk
105#define ads_trans FXAPI()->fdt_trans
106#define ads_redraw FXAPI()->fdt_redraw
107
108#if defined(_UNICODE) || defined(UNICODE)
109#define ads_command FXAPI()->fdt_commandW
110#define ads_setvar FXAPI()->fdt_setvarW
111#define ads_textbox FXAPI()->fdt_textboxW
112#define ads_grread FXAPI()->fdt_grreadW
113#define ads_draggen FXAPI()->fdt_draggenW
114#define ads_osnap FXAPI()->fdt_osnapW
115#define ads_agetenv FXAPI()->fdt_fgetenvW
116#define ads_handent FXAPI()->fdt_handentW
117#define ads_findfile FXAPI()->fdt_findfileW
118#define ads_getfiled FXAPI()->fdt_getfiledW
119#define ads_initget FXAPI()->fdt_initgetW
120#define ads_getangle FXAPI()->fdt_getangleW
121#define ads_getcorner FXAPI()->fdt_getcornerW
122#define ads_getdist FXAPI()->fdt_getdistW
123#define ads_getorient FXAPI()->fdt_getorientW
124#define ads_getpoint FXAPI()->fdt_getpointW
125#define ads_getint FXAPI()->fdt_getintW
126#define ads_getkword FXAPI()->fdt_getkwordW
127#define ads_getreal FXAPI()->fdt_getrealW
128#define ads_getinput FXAPI()->fdt_getinputW
129#define ads_getstring FXAPI()->fdt_getstringW
130#define ads_xload FXAPI()->fdt_xloadW
131#define ads_xunload FXAPI()->fdt_xunloadW
132#define ads_getargs FXAPI()->fdt_getargsW
133#define ads_retstr FXAPI()->fdt_retstrW
134#define ads_retlist FXAPI()->fdt_retlistW
135#define ads_retval FXAPI()->fdt_retvalW
136#define ads_invoke FXAPI()->fdt_invokeW
137#define ads_loaded FXAPI()->fdt_loadedW
138#define ads_getsym FXAPI()->fdt_getsymW
139#define ads_putsym FXAPI()->fdt_putsymW
140#define ads_alert FXAPI()->fdt_alertW
141#define ads_fail FXAPI()->fdt_failW
142#define ads_buildlist FXAPI()->fdt_buildlistW
143#define ads_newrb FXAPI()->fdt_newrbW
144#define ads_relrb FXAPI()->fdt_relrbW
145#define ads_cmd FXAPI()->fdt_cmdW
146#define ads_getvar FXAPI()->fdt_getvarW
147#define ads_cvunit FXAPI()->fdt_cvunitW
148#define ads_angtos FXAPI()->fdt_angtosW
149#define ads_rtos FXAPI()->fdt_rtosW
150#define ads_angtof FXAPI()->fdt_angtofW
151#define ads_distof FXAPI()->fdt_distofW
152#define ads_wcmatch FXAPI()->fdt_wcmatchW
153#define ads_prompt FXAPI()->fdt_promptW
154#define ads_printf FXAPI()->fdt_printfW
155#define ads_regapp FXAPI()->fdt_regappW
156#define ads_entget FXAPI()->fdt_entgetW
157#define ads_entgetx FXAPI()->fdt_entgetxW
158#define ads_entmod FXAPI()->fdt_entmodW
159#define ads_entmake FXAPI()->fdt_entmakeW
160#define ads_entsel FXAPI()->fdt_entselW
161#define ads_nentselp FXAPI()->fdt_nentselpW
162#define ads_tblnext FXAPI()->fdt_tblnextW
163#define ads_tblsearch(a,b,c) FXAPI()->fdt_tblsearchW(a,b)
164#define ads_tblobjname FXAPI()->fdt_tblobjnameW
165#define acdbDictRename FXAPI()->fdt_dictionary_renameW
166#define acdbDictRemove(a,b) FXAPI()->fdt_dictionary_deleteW(a,b,NULL)
167#define acdbDictAdd FXAPI()->fdt_dictionary_addW
168#define ads_menucmd FXAPI()->fdt_menucmdW
169#else
170#define ads_command FXAPI()->fdt_commandA
171#define ads_setvar FXAPI()->fdt_setvarA
172#define ads_textbox FXAPI()->fdt_textboxA
173#define ads_grread FXAPI()->fdt_grreadA
174#define ads_draggen FXAPI()->fdt_draggenA
175#define ads_osnap FXAPI()->fdt_osnapA
176#define ads_agetenv FXAPI()->fdt_fgetenvA
177#define ads_handent FXAPI()->fdt_handentA
178#define ads_findfile FXAPI()->fdt_findfileA
179#define ads_getfiled FXAPI()->fdt_getfiledA
180#define ads_initget FXAPI()->fdt_initgetA
181#define ads_getangle FXAPI()->fdt_getangleA
182#define ads_getcorner FXAPI()->fdt_getcornerA
183#define ads_getdist FXAPI()->fdt_getdistA
184#define ads_getorient FXAPI()->fdt_getorientA
185#define ads_getpoint FXAPI()->fdt_getpointA
186#define ads_getint FXAPI()->fdt_getintA
187#define ads_getkword FXAPI()->fdt_getkwordA
188#define ads_getreal FXAPI()->fdt_getrealA
189#define ads_getinput FXAPI()->fdt_getinputA
190#define ads_getstring FXAPI()->fdt_getstringA
191#define ads_xload FXAPI()->fdt_xloadA
192#define ads_xunload FXAPI()->fdt_xunloadA
193#define ads_getargs FXAPI()->fdt_getargsA
194#define ads_retstr FXAPI()->fdt_retstrA
195#define ads_retlist FXAPI()->fdt_retlistA
196#define ads_retval FXAPI()->fdt_retvalA
197#define ads_invoke FXAPI()->fdt_invokeA
198#define ads_loaded FXAPI()->fdt_loadedA
199#define ads_getsym FXAPI()->fdt_getsymA
200#define ads_putsym FXAPI()->fdt_putsymA
201#define ads_alert FXAPI()->fdt_alertA
202#define ads_fail FXAPI()->fdt_failA
203#define ads_buildlist FXAPI()->fdt_buildlistA
204#define ads_newrb FXAPI()->fdt_newrbA
205#define ads_relrb FXAPI()->fdt_relrbA
206#define ads_cmd FXAPI()->fdt_cmdA
207#define ads_getvar FXAPI()->fdt_getvarA
208#define ads_cvunit FXAPI()->fdt_cvunitA
209#define ads_angtos FXAPI()->fdt_angtosA
210#define ads_rtos FXAPI()->fdt_rtosA
211#define ads_angtof FXAPI()->fdt_angtofA
212#define ads_distof FXAPI()->fdt_distofA
213#define ads_wcmatch FXAPI()->fdt_wcmatchA
214#define ads_prompt FXAPI()->fdt_promptA
215#define ads_printf FXAPI()->fdt_printfA
216#define ads_regapp FXAPI()->fdt_regappA
217#define ads_entget FXAPI()->fdt_entgetA
218#define ads_entgetx FXAPI()->fdt_entgetxA
219#define ads_entmod FXAPI()->fdt_entmodA
220#define ads_entmake FXAPI()->fdt_entmakeA
221#define ads_entsel FXAPI()->fdt_entselA
222#define ads_nentselp FXAPI()->fdt_nentselpA
223#define ads_tblnext FXAPI()->fdt_tblnextA
224#define ads_tblsearch(a,b,c) FXAPI()->fdt_tblsearchA(a,b)
225#define ads_tblobjname FXAPI()->fdt_tblobjnameA
226#define acdbDictRename FXAPI()->fdt_dictionary_renameA
227#define acdbDictRemove(a,b) FXAPI()->fdt_dictionary_deleteA(a,b,NULL)
228#define acdbDictAdd FXAPI()->fdt_dictionary_addA
229#define ads_menucmd FXAPI()->fdt_menucmdA
230#endif
231
232/* Dialog functions */
233#define NULLCB NO_CLIENTFUNC
234
235/* List argument type for DLG_ListStart(); */
236#define LIST_CHANGE DLG_L_CHANGE
237#define LIST_APPEND DLG_L_APPEND
238#define LIST_NEW DLG_L_NEW
239
240#define CALLB EXPORT
241
242#ifdef __cplusplus
243}
244#endif
245
246#ifdef __cplusplus
247
248namespace AcRx
249{
250 enum
251 {
252 kRetOK = RTNORM
253 } _RETVAL;
254}
255#endif
256
257#endif
258
259/* end of file */
260
#define RTNORM
Definition: FxFdtCodes.h:55