aseconst.h 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2015 Autodesk, Inc. All rights reserved.
  4. //
  5. // Use of this software is subject to the terms of the Autodesk license
  6. // agreement provided at the time of installation or download, or which
  7. // otherwise accompanies this software in either electronic or hard copy form.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. // Name: aseconst.h
  11. //
  12. // Description:
  13. // This file contains the ASE constant definition
  14. #ifndef _ASECONST_H
  15. #define _ASECONST_H
  16. /***************************************************************************/
  17. /* DEFINES */
  18. /***************************************************************************/
  19. #pragma pack(push, 8)
  20. /* The Database Object attribute masks */
  21. #define ASE_DO_CURRENT 0x01 /* The DOis the current */
  22. #define ASE_DO_REG 0x02 /* The DO is registered */
  23. #define ASE_DO_EXIST 0x04 /* The DO exists in the SQL database*/
  24. #define ASE_DO_CON 0x08 /* The DO belong to the connected env*/
  25. #define ASE_DO_UNKNOWN 0x10 /* Can't check the DO existence */
  26. #define ASE_DO_WRONGKEY 0x20 /* Some registered key columns */
  27. /* doesn't exist in the real table */
  28. #define ASE_DO_WRONGKEYTYPE 0x40 /* Some registered key columns */
  29. /* types, precisions and scales */
  30. /* differ from the ones, taken */
  31. /* from the real table.*/
  32. /* NULL definition */
  33. #ifndef NULL
  34. #define NULL 0L
  35. #endif /*NULL*/
  36. /* The link and link selection predefined values */
  37. #define LINKID_NULL -1L
  38. #define LINKSELID_NULL -1L
  39. /* TYPEDEFS */
  40. typedef long LinkSelID ; /* The link selection identifier */
  41. typedef LONG_PTR LinkID ; /* The link identifier */
  42. /* The Link type codes */
  43. typedef enum {
  44. kAseUnknownLinkType = 0,
  45. kAseEntityLink=1, /* Ordinary Entity link */
  46. kAseDALink=2, /* DA (MText Label) link */
  47. kAseLeaderLink=3 /* DA (Leader Label) link */
  48. } EAseLinkType ;
  49. /* The link attribute identification codes */
  50. typedef enum {
  51. /* Normal attributes */
  52. kAseAttrAll=0, /* All link attributes */
  53. kAseAttrId=1, /* link identifier (valid in the one drawing session) */
  54. kAseAttrType=2, /* link type code */
  55. kAseAttrStatus=3, /* link status */
  56. kAseAttrEnt=4, /* entity name */
  57. kAseAttrName=5, /* Link Table Name */
  58. kAseAttrKeyValue=6, /* key value */
  59. kAseAttrDAColumns=7, /* the DA column names list (for DA link) */
  60. kAseAttrDAParms=8, /* the DA entity parameters (for DA link) */
  61. kAseAttrDAValues=9, /* the known DA entity values (for DA link) */
  62. kAseAttrXName=10, /* the Xref/Block name (for enclosed link) */
  63. kAseAttrReserved1=11, /* internal reserved attribute */
  64. kAseAttrParKeyValue=12,/* partial key value */
  65. /* Extended attributes */
  66. kAseExtAttrTextCond=-1,/* text condition */
  67. kAseExtAttrEntities=-2,/* selection set name */
  68. kAseExtAttrDoPath=-3 /* The Database Object Path */
  69. } EAseLinkAttr;
  70. /* Database Object Reference definition codes */
  71. typedef enum {
  72. kAseUnknownNameCode=0, /* Unknown DO name code */
  73. kAseEnvCode=1, /* DataSource / Environment */
  74. kAseCatCode=2, /* Catalog */
  75. kAseSchemaCode=3, /* Schema */
  76. kAseTableCode=4, /* Table */
  77. kAseLpnCode=5, /* Link Path Name */
  78. kAsePathCode=6, /* Full path code */
  79. kAseDOCode=7, /* DO path only */
  80. kAseSQLCode=8 /* SQL object path */
  81. } EAseDoNameCode ;
  82. /* ASE error code in the ASI error codes sequence */
  83. #define eAseErrEntry (MinUserDefErrorCode+1)
  84. /* Detects whether or not the error entry contains ASE error data */
  85. #define isAseErr(x) (x == eAseErrEntry ? kAsiTrue : kAsiFalse)
  86. /* Status of Ase Path. Set and get by CAsePath::GetStatus, CAsePath::SetStatus */
  87. #define ASEPATH_STAT_EMPTY 0 /* void */
  88. /* Query and table are mutual exclusive */
  89. #define ASEPATH_STAT_TABLE 0x01 /* Table */
  90. #define ASEPATH_STAT_QUERY 0x02 /* Query */
  91. /* The ASE error description codes */
  92. typedef enum {
  93. eAseEDscUnknown = 0, /* Unknown error */
  94. eAseEDscInternal = 1, /* Internal ASE error. This code hasn't be assigned*/
  95. /* in the normal situation. It indicates about an */
  96. /* internally detected ASE bug. See EAseErrCodes. */
  97. eAseEDscAse = 2, /* Logical common error, see EAseErrCodes. */
  98. eAseEDscFile = 3, /* File I/O error, see ASI error diagnostic */
  99. eAseEDscAsi = 4, /* ASI error, see ASI error diagnostic */
  100. eAseEDscDb = 5, /* ASI group error qualificator, see EAseDbErrCodes */
  101. eAseEDscDwg = 6, /* Drawing error, see EAseDwgErrCodes for error codes */
  102. eAseEDscDlg = 7, /* Dialogue errors, see EAseDlgErrCodes for error codes */
  103. eAseEDscApi = 8, /* API errors, see EAseApiErrCodes for error codes */
  104. eAseEDscLink = 9 /* Internal error with the Link Information,*/
  105. /* see EAseLinkErrCodes */
  106. } EAseErrDsc ;
  107. /* The common ASE error codes */
  108. typedef enum {
  109. eAseErrUnknown=0, /* Unknown ASE error */
  110. eAseErrInternal=1, /* Internal ASE error, inconsistent call of the*/
  111. /* internal ASE functions.*/
  112. eAseErrMemory=2, /* No memory*/
  113. eAseErrInfo=3, /* Information message entry*/
  114. eAseErrMaxQty=4, /* The maximum quantity of the errors is exceded*/
  115. eAseErrNoReg=10, /* No one DO is registered*/
  116. eAseErrDoReg=11, /* The DO isn't registered*/
  117. eAseErrEnvNotConnected=12, /* Environment isn't connected*/
  118. eAseErrNoLpn=13, /* LPN isn't set*/
  119. eAseErrNoEnvName=14, /* Environment name isn't specified*/
  120. eAseErrNoCatName=15, /* Catalog name isn't specified*/
  121. eAseErrNoSchemaName=16, /* Schema name isn't specified*/
  122. eAseErrNoTableName=17, /* Table name isn't specified*/
  123. eAseErrLpnExist=18, /* Link Path Name already exists*/
  124. eAseErrWrongKey=19, /* Some of the key columns doesn't exist in table*/
  125. eAseErrWrongKeyType=20, /* Wrong key column type is detected:*/
  126. /* table structure was changed or BIT, BITVAR*/
  127. /* column types are specified*/
  128. eAseErrNoSelEnts=21, /* No one entity is selected*/
  129. eAseErrNoSelLinks=22, /* No one links exist in the specified entities*/
  130. eAseErrNoSelDALinks=23, /* No one links exist in the specified entities*/
  131. eAseErrNoDoLinks=24, /* No one links to the DO is specified*/
  132. eAseErrDAUpd=25, /* Some of the DAs aren't updatable */
  133. eAseErrWrongDoName=26, /* Invalid DO Name */
  134. eAseErrWrongResbuf=27, /* Invalid resbuf*/
  135. eAseErrBadR12DOR=28, /* Can't find the R13 terms for R12 DOR */
  136. eAseErrWrongLPN=29, /* Invalid LPN */
  137. eAseErrWrongPath=30, /* Invalid DO path */
  138. eAseErrLinkUpd=31, /* Some of the links aren't updatable */
  139. eAseErrLinkSynch=32, /* The links(s) can't be synchronized */
  140. eAseErrLPSynch=33, /* The Link Path(s) can't be synchronized */
  141. eAseErrCharSet=34 /* Can't find character set */
  142. } EAseErrCodes ;
  143. /* The File I/O related error codes */
  144. typedef enum {
  145. eAseFileErrUnknown=400, /* Unknown error*/
  146. eAseFileNotFound, /* File not found*/
  147. eAseFileErrOpen, /* Can't open file*/
  148. eAseFileErrRead, /* Read error*/
  149. eAseFileErrWrite /* Write error*/
  150. } EAseFileErrCodes;
  151. /* ASI group error codes*/
  152. typedef enum {
  153. eAseDbErrUnknown=500, /* Unknown ASE error*/
  154. eAseDbErrSyntax=501, /* SQL syntax error*/
  155. eAseDbErrPrepare=502, /* Can't prepare SQL statement*/
  156. eAseDbErrExecute=503, /* Can't execute the statement*/
  157. eAseDbErrOpenCsr=504, /* Can't open the cursor*/
  158. eAseDbErrEntry=505, /* Wrong entry format in ASE_R12 section of*/
  159. /* ASI.INI file*/
  160. eAseDbErrIni=506, /* Can't get ASI.INI file*/
  161. eAseDbErrFetch=507 /* Can't fetch */
  162. } EAseDbErrCodes ;
  163. /* The AutoCAD drawing related codes*/
  164. typedef enum {
  165. eAseDwgErrUnknown = 700,
  166. eAseDwgErrOpenReadEntity = 701,
  167. /*
  168. Error openning entity for read. Object is to be opened for read as soon as
  169. any entity information, such as name of the layer, name of the parent block,
  170. XData ant etc. is requested.
  171. */
  172. eAseDwgErrTranslateHandle = 702,
  173. /* Error translation entity handle, stored in the R12 Link, to the R13
  174. AcDbObjectId
  175. */
  176. eAseDwgErrAdsNameId = 703,
  177. /*
  178. Can not convert AcDbObjectId to ads_name
  179. */
  180. eAseDwgErrXEDAppidNotFound = 704,
  181. /*
  182. XData is corrupt - APPID group not found
  183. */
  184. eAseDwgErrXEDCorrupt = 705,
  185. /*
  186. R13 XData is corrupt
  187. */
  188. eAseDwgErrUpdateXED = 706,
  189. /*
  190. Can not write/update XData.
  191. */
  192. eAseDwgErrParcingLink = 707,
  193. /*
  194. Can not parce ASE Link XData
  195. */
  196. eAseDwgErrParcingLPN = 708,
  197. /*
  198. Can not parce ASE LPN XData
  199. */
  200. eAseDwgErrOpenWriteEntity = 709,
  201. /*
  202. Can not open entity for write
  203. */
  204. eAseDwgErrConvertingLink = 710,
  205. /*
  206. Error converting link to the result buffer
  207. */
  208. eAseDwgErrOpenBlockTable = 711,
  209. /*
  210. Can not open block table
  211. */
  212. eAseDwgErrAppendBlockTable = 712,
  213. /*
  214. Can not add DA block definition to the block table
  215. */
  216. eAseDwgErrAppendObjBlockTable = 713,
  217. /*
  218. Can not append DA to the MODEL_SPACE or PAPER_SPACE sections
  219. */
  220. eAseDwgErrOpenBlock = 714,
  221. /*
  222. Can not open Block Table Record
  223. */
  224. eAseDwgErrDelSelSet = 715,
  225. /*
  226. Error releasing selection set
  227. */
  228. eAseDwgErrFilterSelSet = 716,
  229. /*
  230. Error scanning block hierarchy
  231. */
  232. eAseDwgErrCreateLPNTable = 717,
  233. /*
  234. Can not create LPN dictionary in the Drawing Database
  235. */
  236. eAseDwgErrFindLPNTable = 718,
  237. /*
  238. Can not find LPN dictionary in the Drawing Database
  239. */
  240. eAseDwgErrFindAppid = 719,
  241. /*
  242. Can not find ASE APPID
  243. */
  244. eAseDwgErrOpenLPNDict = 720,
  245. /*
  246. Can not open LPN Dictionary
  247. */
  248. eAseDwgErrAddEntry = 721,
  249. /*
  250. Can not add entry to the LPN dictionary
  251. */
  252. eAseDwgErrRemoveEntry = 722,
  253. /*
  254. Can not remove entry from the LPN dictionary
  255. */
  256. eAseDwgErrUnexpSymb = 723,
  257. /*
  258. Unexpected symbol in ASE XData found. XData is corrupted.
  259. */
  260. eAseDwgErrDwgInit = 724,
  261. /*
  262. Can not initialize Drawing Subsystem
  263. */
  264. eAseDwgErrBlockIterator = 725,
  265. /*
  266. Can not open Block Table Record iterator
  267. */
  268. eAseDwgErrTransOpen = 726,
  269. /*
  270. Previous drawing transaction is not closed
  271. */
  272. eAseDwgErrTransClose = 727,
  273. /*
  274. Current Drawing transaction has not been opened
  275. */
  276. eAseDwgErrGrips = 728,
  277. /*
  278. Can not store selection set in the AutoCAD via ads_sssetfirst() function.
  279. The error can accure in ASEROWS and ASESELECT commands
  280. */
  281. eAseDwgErrFindBlock = 729,
  282. /*
  283. Block not found in the Block Table
  284. */
  285. eAseDwgErrOpenRegapTable = 730,
  286. /*
  287. Can not open AutoCAD REGAPP table. This operation is to be fulfilled as
  288. soon as ASE information should be stored in the drawing for the first
  289. time in the ASE session.
  290. */
  291. eAseDwgErrRegisterAppid = 731,
  292. /*
  293. Can not register ASE APPID. APPID should be registered before ASE
  294. information should be stored in the drawing for the first time in the
  295. ASE session.
  296. */
  297. eAseDwgErrInitObject = 732,
  298. /*
  299. Can not initialize CAseDEntity object
  300. */
  301. eAseDwgErrAddLink = 733,
  302. /*
  303. Can not write link in the drawing
  304. */
  305. eAseDwgErrAddLPN = 734,
  306. /*
  307. Can not write LPN in the drawing
  308. */
  309. eAseDwgErrDelLink = 735,
  310. /*
  311. Can not delete link from the drawing
  312. */
  313. eAseDwgErrDelLPN = 736,
  314. /*
  315. Can not delet LPN from the drawing
  316. */
  317. eAseDwgErrUpdLink = 737,
  318. /*
  319. Can not update link in the drawing
  320. */
  321. eAseDwgErrUpdLPN = 738,
  322. /*
  323. Can not update LPN in the drawing
  324. */
  325. eAseDwgErrDeleteObj = 739,
  326. /*
  327. Can not delete DA object from the drawing
  328. */
  329. eAseDwgErrCorruptDA = 740,
  330. /*
  331. Can not read DA column values from DA block attributes
  332. */
  333. eAseDwgErrErasedObj = 741,
  334. /*
  335. Can not open object - it has been erased
  336. */
  337. eAseDwgErrOpenNotify = 742,
  338. /*
  339. Object can not be updated - it is opened for notify
  340. */
  341. eAseDwgErrOpenUndo = 743,
  342. /*
  343. Object can not be updated - it is opened for undo
  344. */
  345. eAseDwgErrOpenWrite = 744,
  346. /*
  347. Object can not be updated - it is opened for write
  348. */
  349. eAseDwgErrOpenRead = 744,
  350. /*
  351. Object can not be updated - it is opened for read
  352. */
  353. eAseDwgErrOpenXref = 745,
  354. /*
  355. Object can not be updated - it is object from XRef
  356. */
  357. eAseDwgErrOpenLocked = 746,
  358. /*
  359. Object can not be updated - it is on the locked layer
  360. */
  361. eAseDwgErrDelR12DOMesh = 747,
  362. /*
  363. Can not delete R12 DO Mesh
  364. */
  365. eAseDwgErrDelR12LinkMesh = 748,
  366. /*
  367. Can not delete R12 Link Mesh
  368. */
  369. eAseDwgErrReadLTypeTable = 749,
  370. /*
  371. Can not read line style table
  372. */
  373. eAseDwgErrReadLayerTable = 750,
  374. /*
  375. Can not read layer table
  376. */
  377. eAseDwgErrReadStyleTable = 751,
  378. /*
  379. Can not read style table
  380. */
  381. eAseDwgErrOpenLPNEntry = 752,
  382. /*
  383. Can not open LPN dictionary entry
  384. */
  385. eAseDwgErrAppendBlkBlockHierarchy= 753,
  386. /*
  387. Can not add block to ASE block hierarchy
  388. */
  389. eAseDwgErrAppendRefBlockHierarchy= 754,
  390. /*
  391. Can not add block reference to ASE block hierarchy
  392. */
  393. eAseDwgErrFindBlkBlockHierarchy= 755,
  394. /*
  395. Can not find block in ASE block hierarchy
  396. */
  397. eAseDwgErrDelBlkBlockHierarchy = 756,
  398. /*
  399. Can not delete block from ASE block hierarchy
  400. */
  401. eAseDwgErrInvR12Mesh = 757,
  402. /*
  403. Invalid R12 Polimesh found.
  404. */
  405. eAseDwgErrEOR = 758,
  406. /*
  407. Unexpected End of ASE XData found
  408. */
  409. eAseDwgErrBraceExpected = 758,
  410. /*
  411. Brace is mismatched in ASE XData
  412. */
  413. eAseDwgErrBlockName = 759,
  414. /*
  415. Can not get name of the block from AcDbBlockTableRecord
  416. */
  417. eAseDwgErrOpenLayer = 760
  418. /*
  419. Can not open layer table record for update
  420. */
  421. } EAseDwgErrCodes ;
  422. /* The AutoCAD Dialog related codes */
  423. typedef enum {
  424. eAseDlgErrUnknown=800, /* Unknown ASE error */
  425. eAseDlgWrongObj,
  426. eAseDlgNoDsc,
  427. eAseDlgMakeKey,
  428. eAseDlgReadStyleTable
  429. } EAseDlgErrCodes ;
  430. /* ASE API related error codes */
  431. typedef enum {
  432. eAseApiErrUnknown=900, /* Unknown ASE error */
  433. eAseApiErrWrongData=901, /* Input data in the wrong format */
  434. eAseApiErrInitObj=902, /* The API class isn't initialized */
  435. eAseApiErrInitApp=903, /* Communication with ASE isn't extablished */
  436. eAseApiErrWrongAttr=904, /* Wrong link attribute code */
  437. eAseApiErrXmx=905, /* Can't load XMX file */
  438. eAseApiErrWrongFunc=906, /* Wrong call of API func. */
  439. eAseApiErrEmptyList=907, /* Can't find DO list */
  440. eAseApiErrMissingTable=908, /* Missing table path in filter */
  441. eAseApiErrLinkNotFound=909, /* Can't find link by link ID */
  442. eAseApiErrLinkMake=910, /* Error in link creation */
  443. eAseApiErrLinkUpdate=911, /* Error in link updating */
  444. eAseApiErrLinkDelete=912, /* Error in link deleting */
  445. eAseApiErrMissingLinkType=913, /* Missing link type */
  446. eAseApiErrWrongLinkType=914, /* Wrong link type value */
  447. eAseApiErrMissingLinkID=915, /* Missing link ID */
  448. eAseApiErrWrongLinkID=916, /* Wrong link ID value */
  449. eAseApiErrMissingEntName=917, /* Missing entity name */
  450. eAseApiErrWrongEntName=918, /* Wrong entity name value */
  451. eAseApiErrMissingLpn=919, /* Missing LPN */
  452. eAseApiErrWrongLpn=920, /* Invalid LPN */
  453. eAseApiErrMissingKeyVal=921, /* Missing Key value list */
  454. eAseApiErrWrongKeyVal=922, /* Invalid Key valie list */
  455. eAseApiErrSelNotFound=923, /* Can't find link selection by ID */
  456. eAseApiErrSelAddLink=924, /* Can't add link to the link sel. */
  457. eAseApiErrSelDelLink=925, /* Can't delete link from the link sel. */
  458. eAseApiErrSelFree=926, /* Can't free the link sel. */
  459. eAseApiErrSelEmpty=927, /* Empty link sel. */
  460. eAseApiErrMissingKeyNames=928, /* Missing Key names list */
  461. eAseApiErrWrongKeyNames=929, /* Invalid Key names list */
  462. eAseApiErrKeyNameNotFound=930, /* Key column name is not found in the table */
  463. eAseApiErrDupKeyNames=931, /* Duplicated Key names */
  464. eAseApiErrLpnNew=932, /* Error in creation of new LPN */
  465. eAseApiErrLpnDel=933, /* Error in deleting of LPN */
  466. eAseApiErrLpnNotFound=934, /* LPN is not exist */
  467. eAseApiErrLpnRen=935, /* Error in renaming of LPN */
  468. eAseApiErrWrongEntSel=936, /* Invalid entity sel. set name */
  469. eAseApiErrWrongBlock=937, /* Invalid Xref/Block name */
  470. eAseApiErrWrongWhere=938, /* Invalid WHERE condition */
  471. eAseApiErrSelUnite=939, /* Error in union */
  472. eAseApiErrSelSubtract=940, /* Error in subtract */
  473. eAseApiErrSelIntersect=941, /* Error in intersect */
  474. eAseApiErrSelErase=942, /* Can't erase link sel. with links */
  475. eAseApiErrSelEraseLinks=943, /* Can't erase some links */
  476. eAseApiErrCurrent=944, /* Can't set current path */
  477. eAseApiErrWrongRowVal=945, /* Invalid row values */
  478. eAseApiErrDuplicatedLink=946, /* Attempt of duplicated link creation */
  479. eAseApiErrMissingDANames=947, /* Missing DA names list */
  480. eAseApiErrWrongDANames=948, /* Invalid DA names list */
  481. eAseApiErrWrongDAVal=949, /* Invalid DA values list */
  482. eAseApiErrMissingDAPar=950, /* Missing DA parameters */
  483. eAseApiErrWrongDAPar=951, /* Invalid DA parameters */
  484. eAseApiErrMakeDA=952 /* Error in make DA */
  485. } EAseApiErrCodes ;
  486. /* Internal Link Information related codes*/
  487. typedef enum {
  488. eAseLinkErrUnknown = 1000, /* Unknown ASE error*/
  489. eAseLinkErrWrongRegPath = 1001,
  490. /*
  491. a) Invalid path to register table.
  492. b) LPN syntax error. LPN with prefix can't
  493. be registered.
  494. c) LPN syntax error. Wrong Xref name syntax.
  495. */
  496. eAseLinkErrWrongRegDsc = 1002,
  497. /*
  498. a) Wrong column desriptor. registration
  499. b) Invalid list of the key columns to register.
  500. */
  501. eAseLinkErrWrongPath12 = 1003,
  502. /*
  503. Invalid path to Database Object Release 12 to registration
  504. register.
  505. */
  506. eAseLinkErrWrongTypeDsc = 1005,
  507. /*
  508. a) Unknown column descriptor data type. registration
  509. b) Length of the key value can't be defined. access to key value
  510. */
  511. eAseLinkErrWrongLsAddOp = 1007,
  512. /*
  513. Wrong Link Selection Identifier Link Selection addition
  514. */
  515. eAseLinkErrWrongLsSubOp = 1008,
  516. /*
  517. Wrong Link Selection Identifier Link Selection subraction
  518. */
  519. eAseLinkErrWrongLsId = 1009,
  520. /*
  521. Wrong Link Selection Identifier Access to Link Selection
  522. */
  523. eAseLinkErrWrongEntityId = 1010,
  524. /*
  525. Undefined drawing object to link DA Link creation
  526. */
  527. eAseLinkErrUndefDa = 1011,
  528. /*
  529. Undefined DA list DA link creation
  530. */
  531. eAseLinkErrNoMemForLs = 1012,
  532. /*
  533. Out of memory Link Selection manipulation
  534. */
  535. eAseLinkErrWrongPtrToLnk = 1013,
  536. /*
  537. Wrong Link Identifier Access to Link
  538. */
  539. eAseLinkErrNoLinkInLMem = 1014,
  540. /*
  541. Link was lost Access to Link
  542. */
  543. eAseLinkErrNoEntityForLink = 1016,
  544. /*
  545. Invalid Link in the memory Access to Link
  546. */
  547. eAseLinkErrWrongPtrToLs = 1017,
  548. /*
  549. Wrong Link Selection Identifier Access to Link Selection
  550. */
  551. eAseLinkErrNoLsInLMem = 1018,
  552. /*
  553. Link Selection was lost Access to Link Selection
  554. */
  555. eAseLinkErrMLsNotValid = 1019,
  556. /*
  557. Invalid Link Selection Access to Link Selection
  558. */
  559. eAseLinkErrMLinkNotValid = 1020,
  560. /*
  561. Invalid Link in the memory ASE Transaction
  562. */
  563. eAseLinkErrTabNoChanges = 1021,
  564. /*
  565. Link Information assosiated with Erase LPN
  566. LPN can't be changed
  567. */
  568. eAseLinkErrRnmWrongOldLPN = 1022,
  569. /*
  570. Old LPN is invalid LPN Renaming
  571. */
  572. eAseLinkErrRnmWrongNewLPN = 1023,
  573. /*
  574. New LPN is invalid LPN Renaming
  575. */
  576. eAseLinkErrRnmNoUpd = 1024,
  577. /*
  578. Link Information associated with LPN LPN Renaming
  579. isn't updatable
  580. */
  581. eAseLinkErrLLinkNotValid = 1025,
  582. /*
  583. CAseLLink object is not valid. Object Link Manipulations
  584. had not been initialized
  585. */
  586. eAseLinkErrLLinkNotUpdate = 1026,
  587. /*
  588. Link can't be modified. Drawing object Link modification
  589. isn't updatable
  590. */
  591. eAseLinkErrLLinkNoMakeDup = 1027,
  592. /*
  593. Can't create duplicated link Link creation
  594. */
  595. eAseLinkErrLLinkNoMakeKey = 1029,
  596. /*
  597. Can't create link. Wrong keys Link creation
  598. */
  599. eAseLinkErrLLinkNoMakeStore = 1030,
  600. /*
  601. Can't store Link into drawing Link creation
  602. */
  603. eAseLinkErrLLinkWrongId = 1031,
  604. /*
  605. Can't intialize CAseLLink object. Access to Link
  606. Wrong Link Identifier
  607. */
  608. eAseLinkErrLLinkWrongType = 1032,
  609. /*
  610. a) Can't intialize CAseLLink object. Access to Link
  611. Wrong Link type
  612. b) Can't update DA. Link isn't DA link DA Link updating
  613. */
  614. eAseLinkErrLLinkManyLinks = 1033,
  615. /*
  616. Can't intialize CAseLLink object by CAseLLink object initialization
  617. drawing object. Drawing object contains
  618. several links.
  619. */
  620. eAseLinkErrLLinkNoMake = 1034,
  621. /*
  622. a) Can't make link. Duplicate link. Link creation
  623. b) Can't store Link in the memory.
  624. c) Can't make link. Wrong keys.
  625. */
  626. eAseLinkErrLLinkNoDel = 1035,
  627. /*
  628. a) Can't delete link. Link is not valid Link deleting
  629. b) Can't delete link. Link is not updatable
  630. c) Can't delete Xdata assocoated with link
  631. */
  632. eAseLinkErrLLinkNoUpd = 1036,
  633. /*
  634. a) Can't update link. Link Information Link modification
  635. was not changed.
  636. b) Can't update link. Link isn't valid
  637. c) Can't update link. Drawing object is
  638. not updatable.
  639. */
  640. eAseLinkErrLLinkNoDATab = 1037,
  641. /*
  642. Wrong DA Link modification. DA link modification.
  643. Table name can't be changed for DA link
  644. */
  645. eAseLinkErrLLinkNoDAEnt = 1038,
  646. /*
  647. Wrong DA Link modification DA link modification
  648. Drawing object can't be changed for DA link
  649. */
  650. eAseLinkErrLLinkWrongEnt = 1039,
  651. /*
  652. CAseLLink obejct was not initialized correctly Access to link
  653. */
  654. eAseLinkErrLLinkWrongDA = 1040,
  655. /*
  656. Wrong DA columns DA Link creation
  657. */
  658. eAseLinkErrLLinkAbsent = 1041,
  659. /*
  660. Can't find out Link by Link Identifier Access to Link
  661. */
  662. eAseLinkErrLSWrongFilter = 1042,
  663. /*
  664. Wrong filter Link Selection filtering
  665. */
  666. eAseLinkErrInLMem = 1045,
  667. /*
  668. Can't clear Link Selection. Access to Link Selection
  669. */
  670. eAseLinkErrKeyNotValid = 1046,
  671. /*
  672. Key isn't valid Access to key values
  673. */
  674. eAseLinkErrWrongKeyVal = 1047,
  675. /*
  676. Wrong key value Row registration
  677. */
  678. eAseLinkErrCantStoreKeyVal = 1048,
  679. /*
  680. Key value can't be stored. It is possible
  681. if ASE have not enough memory or key column
  682. descriptor is not correct.
  683. */
  684. eAseLinkErrWrongDsc = 1049,
  685. /*
  686. Can't store key value. Descriptor is not Row registration
  687. correct
  688. */
  689. eAseLinkErrWrongKeyInit = 1050,
  690. /*
  691. Can't initialize CAseLKey object. Row registration
  692. LPN is not valid.
  693. */
  694. eAseLinkErrValid = 1051,
  695. /*
  696. Link Subsystem is not valid. Internal error.
  697. */
  698. eAseLinkErrStart = 1052,
  699. /*
  700. Link subsystem can't begin ASE transaction.
  701. Internal error.
  702. */
  703. eAseLinkErrLMemWrongId = 1053,
  704. /*
  705. Wrong Link Identifier Access to link
  706. */
  707. eAseLinkErrLMemInternal = 1054,
  708. /*
  709. Link Subsystem internal error Access to link
  710. */
  711. eAseLinkErrLMemRBack = 1055,
  712. /*
  713. Can't restore link Rollback of the ASE Transaction
  714. */
  715. eAseLinkErrWrongTransForUpd = 1056,
  716. /*
  717. Can't update link. Transaction wasn't opend. Updating of the link
  718. */
  719. eAseLinkErrEnameEIdConvert = 1059,
  720. /*
  721. Can't convert ads_name to AcDbEntityId. Link making
  722. */
  723. eAseLinkErrEntNoUpd = 1060,
  724. /*
  725. Entity is not updatable. Link can't be created. Link making
  726. */
  727. eAseLinkErrContainerItem = 1061,
  728. /*
  729. Can't intialize Link Selection for container. ASELINKS command
  730. */
  731. eAseLinkErrNtfEraseUnlinkedEntity = 1062,
  732. /*
  733. Link Subsystem has got notification to delete Processing of the notifications
  734. links, but specified object has no links. from linked drawing object
  735. */
  736. eAseLinkErrNtfCopyUnlinkedEntity = 1063,
  737. /*
  738. Link Subsystem has got notification to copy Processing of the notifications
  739. links, but specified object has no links. from linked drawing object
  740. */
  741. eAseLinkErrNtfCanTProcess = 1064,
  742. /*
  743. Link Subsysten can't process the notification. Processing of the notifications
  744. */
  745. eAseLinkErrNtfUnXED = 1065,
  746. /*
  747. Can't restore link. Wrong Xdata. Processing of the notifications
  748. from linked drawing objects.
  749. Undo command
  750. */
  751. eAseLinkErrNtfUnKey = 1066,
  752. /*
  753. Can't restore link. Row can't be registered. Processing of the notifications
  754. from linked drawing objects.
  755. Undo command
  756. */
  757. eAseLinkErrNtfUnDA = 1067,
  758. /*
  759. Can't restore link. Can't store DA columns Processing of the notifications
  760. from linked drawing objects.
  761. Undo command
  762. */
  763. eAseLinkErrNtfUnErase = 1069,
  764. /*
  765. Can't restore link. Link isn't found out in the Processing of the notifications
  766. Link memory from linked drawing objects.
  767. Undo command
  768. */
  769. eAseLinkErrInternal = 1070,
  770. /*
  771. Internal error of the Link Subsystem.
  772. */
  773. eAseLinkErrWrongRecordLpnPos = 1071,
  774. /*
  775. Link subsystem can't set the position of the Lpn Reading link information
  776. in the Xdata from drawing
  777. */
  778. eAseLinkErrWrongLpnSyntax = 1073,
  779. /*
  780. LPN syntax error. Reading link information from
  781. drawing
  782. */
  783. eAseLinkErrCantRegLink = 1076,
  784. /*
  785. Can't store link. Link Path Name isn't Reading link information from
  786. registered yet. drawing. Undo command
  787. */
  788. eAseLinkErrCantInitKey = 1077,
  789. /*
  790. Can't initilize key row to register. Reading link information from
  791. drawing. Undo command
  792. */
  793. eAseLinkErrWrongLinkNumber = 1078,
  794. /*
  795. Wrong link structure in the drawing object. Reading link information from
  796. drawing. Undo command
  797. */
  798. eAseLinkErrDuplicateReg = 1079,
  799. /*
  800. Duplicate registration. LPN registration
  801. */
  802. eAseLinkErrTrRbackUndel = 1081,
  803. /*
  804. Can't restore the deleted link. Rollback ASE Transaction
  805. */
  806. eAseLinkErrTrRbackTable = 1082,
  807. /*
  808. Link subsystem can't execute rollback ASE Rollback ASE Transaction
  809. Transaction for link table.
  810. */
  811. eAseLinkErrTrRback = 1083,
  812. /*
  813. Link subsystem can't execute rollback ASE Rollback ASE Transaction
  814. Transaction, because transaction wasn't opened.
  815. */
  816. eAseLinkErrTrCommit = 1084,
  817. /*
  818. Link subsystem can't execute commit ASE
  819. Transaction, because transaction wasn't
  820. opened.
  821. */
  822. eAseLinkErrTrCommitTable = 1085,
  823. /*
  824. Link subsystem can't execute commit for
  825. Link Table.
  826. */
  827. eAseLinkErrTrCommitDelLink = 1086,
  828. /*
  829. Link subsystem can't delete link data from Commit ASE Transaction
  830. Xdata of the drawing object.
  831. */
  832. eAseLinkErrTrCommitAddLink = 1087,
  833. /*
  834. Link subsystem can't add new link Xdata of Commit ASE Transaction
  835. drawing object.
  836. */
  837. eAseLinkErrLnkDestroed = 1088,
  838. /*
  839. Linked row is deleted from link memory before Commands: Open, New Rx/Unload
  840. accosiated link have been erased Quit
  841. */
  842. eAseLinkErrDupUpdLnk = 1090,
  843. /*
  844. Can't update link. Duplicated links. Link updating.
  845. */
  846. eAseLinkErrRubbNoMem = 1091,
  847. /*
  848. Can't execute rubbish collector algorithm. Commit ASE Transaction
  849. Out of memory
  850. */
  851. eAseLinkErrCommitNoMem = 1092,
  852. /*
  853. Can't execute commit ASE Transaction. Commit ASE Transaction
  854. */
  855. eAseLinkErrCommit = 1093,
  856. /*
  857. Link Sybsystem can't commit ASE Transaction Commit ASE Transaction
  858. */
  859. eAseLinkErrTrExportLpn = 1094,
  860. /*
  861. Can't store the export LPN to external database Wblock command
  862. */
  863. eAseLinkErrLostLink = 1095,
  864. /*
  865. Can't store the link from Xdata
  866. */
  867. eAseLinkErrLinkToLeaderLink = 1096
  868. /*
  869. Can't create link because the entity is leader link component
  870. */
  871. } EAseLinkErrCodes ;
  872. /* ASE Diagnostic Parameters*/
  873. typedef enum {
  874. kAseDiagErrDsc = MinUserDefDiagParam+1, /* ASE error description - Int*/
  875. kAseDiagErrCode = MinUserDefDiagParam+2, /* Error Code - Int*/
  876. kAseDiagErrMsg = MinUserDefDiagParam+3, /* ASE Error Message - Char*/
  877. kAseDiagStatement = MinUserDefDiagParam+4, /* SQL statement - Char*/
  878. kAseDiagSynErrPos = MinUserDefDiagParam+5, /* Syntax error position - Int*/
  879. kAseDiagLPName = MinUserDefDiagParam+6, /* Link Path Name - Char*/
  880. kAseDiagEnvName = MinUserDefDiagParam+7, /* Environment name - Char*/
  881. kAseDiagEntHandle = MinUserDefDiagParam+8, /* Entity handle - Char*/
  882. kAseDiagBlockName = MinUserDefDiagParam+9, /* Block name - Char*/
  883. kAseDiagLayerName = MinUserDefDiagParam+10,/* Layer name - Char*/
  884. kAseDiagLabelName = MinUserDefDiagParam+11,/* Label name - Char*/
  885. kAseDiagAcApDoc = MinUserDefDiagParam+12,/* AcApDocument Address - Int*/
  886. kAseDiagGroupName = MinUserDefDiagParam+13,/* LinkTemplateGroup - Char*/
  887. kAseDiagQueryName = MinUserDefDiagParam+14,/* QueryName - Char*/
  888. kAseDiagTableName = MinUserDefDiagParam+15 /* TableName - Char*/
  889. } EAseDiagParms ;
  890. /* API class codes*/
  891. typedef enum {
  892. kAseApiUnknownId,/* Unknown API class*/
  893. kAseApiAppl, /* for class CAseAppl and descriptor ASE_APPLDSC*/
  894. kAseApiLinkPath, /* for class CAseLinkPath and descriptor ASE_LPDSC*/
  895. kAseApiLink, /* for class CAseLink and descriptor ASE_LINKDSC*/
  896. kAseApiLinkSel /* for class CAseLinkSel and descriptor ASE_LSELDSC*/
  897. } EAseApiClassId ;
  898. // Data source translation codes
  899. //
  900. enum DatasourceTranslationCode {
  901. kTranslateFromR14toR15 = 0,
  902. kTranslateFromR15toR14
  903. };
  904. #pragma pack (pop)
  905. #endif /*_ASECONST_H*/
  906. /*EOF*/