acedxref.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. //
  2. //////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Copyright 2015 Autodesk, Inc. All rights reserved.
  5. //
  6. // Use of this software is subject to the terms of the Autodesk license
  7. // agreement provided at the time of installation or download, or which
  8. // otherwise accompanies this software in either electronic or hard copy form.
  9. //
  10. //////////////////////////////////////////////////////////////////////////////
  11. //
  12. // acedxref.h - XREF API Definitions
  13. #ifndef _ACEDXREF_H
  14. #define _ACEDXREF_H
  15. #pragma pack (push, 8)
  16. class AcDbBlockTableRecord;
  17. Acad::ErrorStatus
  18. acedXrefAttach(const ACHAR* XrefPathname,
  19. const ACHAR* XrefBlockname,
  20. AcDbObjectId* pXrefBTRid = NULL,
  21. AcDbObjectId* pXrefRefid = NULL,
  22. const AcGePoint3d* pXrefInsertPt = NULL,
  23. const AcGeScale3d* pXrefScale = NULL,
  24. const double* pXrefRotateAngle = NULL,
  25. const bool bQuiet = true,
  26. AcDbDatabase* pHostDb = NULL,
  27. const wchar_t* wszPassword = NULL);
  28. Acad::ErrorStatus
  29. acedXrefOverlay(const ACHAR* XrefPathname,
  30. const ACHAR* XrefBlockname,
  31. AcDbObjectId* pXrefBTRid = NULL,
  32. AcDbObjectId* pXrefRefid = NULL,
  33. const AcGePoint3d* pXrefInsertPt = NULL,
  34. const AcGeScale3d* pXrefScale = NULL,
  35. const double* pXrefRotateAngle = NULL,
  36. const bool bQuiet = true,
  37. AcDbDatabase* pHostDb = NULL,
  38. const wchar_t* wszPassword = NULL);
  39. Acad::ErrorStatus
  40. acedXrefUnload(const ACHAR* XrefBlockname,
  41. const bool bQuiet = true,
  42. AcDbDatabase* pHostDb = NULL);
  43. Acad::ErrorStatus
  44. acedXrefDetach(const ACHAR* XrefBlockname,
  45. const bool bQuiet = true,
  46. AcDbDatabase* pHostDb = NULL);
  47. Acad::ErrorStatus
  48. acedXrefReload(const ACHAR* XrefBlockname,
  49. const bool bQuiet = true,
  50. AcDbDatabase* pHostDb = NULL);
  51. Acad::ErrorStatus
  52. acedXrefBind(const ACHAR* XrefBlockname,
  53. const bool bInsertBind = false,
  54. const bool bQuiet = true,
  55. AcDbDatabase* pHostDb = NULL);
  56. Acad::ErrorStatus
  57. acedXrefCreateBlockname(const ACHAR* XrefPathname,
  58. ACHAR*& XrefBlockname);
  59. Acad::ErrorStatus
  60. acedXrefReload(const AcDbObjectIdArray& XrefBTRids,
  61. bool bQuiet = true,
  62. AcDbDatabase* pHostDb = NULL);
  63. Acad::ErrorStatus
  64. acedXrefXBind(const AcDbObjectIdArray symbolIds,
  65. const bool bQuiet = true,
  66. AcDbDatabase* pHostDb = NULL);
  67. Acad::ErrorStatus
  68. acedXrefResolve(AcDbDatabase* pHostDb, const bool bQuiet = true);
  69. Acad::ErrorStatus
  70. acedXrefNotifyCheckFileChanged(AcDbObjectId btrId, bool& hasChanged);
  71. Acad::ErrorStatus
  72. acedSkipXrefNotification(AcDbDatabase* pHostDb, const ACHAR* xrefName);
  73. Acad::ErrorStatus ACDB_PORT
  74. acedSetXrefResolvedWithUpdateStatus(AcDbBlockTableRecord* pBTR);
  75. #pragma pack (pop)
  76. #endif /* _ACEDXREF_H */