Macros
historyErrors.r.h File Reference
#include <DgnPlatform/DgnPlatformErrors.r.h>

Go to the source code of this file.

Macros

#define HISTORY_ERROR_COMPLEX_COMPONENT   DGNMODEL_STATUS_ComplexComponent /* "You cannot undo/redo historic changes to an individual complex component" */
 
#define HISTORY_ERROR_DGNCACHE_IS_IN_USE   DGNMODEL_STATUS_IsInUse /* "Cannot delete model because it is currently in use" */
 
#define HISTORY_ERROR_BAD_ELEMENT   DGNMODEL_STATUS_BadElement /* "An element cannot be updated. It is probably a complex component." */
 
#define HISTORY_ERROR_COULD_NOT_OPEN_FILE_READWRITE   (DGNOPEN_STATUS_BASE + 0x03) /* "Another user has temporarily locked the design file." Occurs when trying to open a file read-write. */
 
#define HISTORY_ERROR_COULD_NOT_REOPEN_FILE_READWRITE   (DGNFILE_ERROR_BASE + 0x12) /* (effectively same as above, except that error occurs when trying to RE-open a read-only file as read-write) */
 
#define HISTORY_ERROR_ACCESS_VIOLATION   (DGNOPEN_STATUS_BASE + 0x04) /* "The history file is not accessible by the current user" */
 
#define _DGNOPEN_STATUS_FILE_ALREADY_EXISTS   (DGNOPEN_STATUS_BASE + 0x06)
 
#define _DGNOPEN_STATUS_FILE_NOT_FOUND   (DGNOPEN_STATUS_BASE + 0x11)
 
#define HISTORY_ERROR_BAD_FILENAME   (DGNOPEN_STATUS_BASE + 0x07) /* "Invalid filename" */
 
#define HISTORY_ERROR_DGNFILE_IS_ENCRYPTED   (DGNOPEN_STATUS_BASE + 0x21) /* DGNOPEN_STATUS_IsEncrypted */
 
#define HISTORY_ERROR_HISTORY_NOT_FOUND   _DGNOPEN_STATUS_FILE_NOT_FOUND /* "History file not found" */
 
#define HISTORY_ERROR_HISTORY_ALREADY_EXISTS   _DGNOPEN_STATUS_FILE_ALREADY_EXISTS /* "History already exists" (history_create) */
 
#define HISTORY_ERROR_FILE_NOT_OPEN_READ_WRITE   (DGNFILE_ERROR_BASE + 0x2) /* "The design file is read-only." (this usually only happens after we fail to get the write lock) */
 
#define HISTORY_ERROR_FIRST   (DGNHISTORY_ERROR_BASE + 0x01) /* "First history error code */
 
#define HISTORY_ERROR_NOCHANGES   (DGNHISTORY_ERROR_BASE + 0x01) /* "No changes were found" (history_commit, commitToShared, mergeFromShared) */
 
#define HISTORY_ERROR_NOT_A_DGN_FILE   (DGNHISTORY_ERROR_BASE + 0x02) /* "This is not a V8 design file." (history_create) */
 
#define HISTORY_ERROR_CACHE_NOT_FOUND   (DGNHISTORY_ERROR_BASE + 0x03) /* "Cannot restore element because its model is currently deleted." */
 
#define HISTORY_ERROR_PERMISSION_DENIED   (DGNHISTORY_ERROR_BASE + 0x04) /* "Permission denied" (MS_DESIGN_HISTORY config variable is not set to allow this operation) */
 
#define HISTORY_ERROR_MISSING_LEVEL   (DGNHISTORY_ERROR_BASE + 0x05) /* "Cannot restore element because its level is currently deleted." */
 
#define HISTORY_ERROR_DGN_FILE_NOT_FOUND   (DGNHISTORY_ERROR_BASE + 0x06) /* "The design file was not found" */
 
#define HISTORY_ERROR_INVALID_REVISION_NUMBER   (DGNHISTORY_ERROR_BASE + 0x07) /* "Invalid revision number. Must be of the form major.minor and must come after current tip revision number." */
 
#define HISTORY_ERROR_HAS_NEW_FEATURES   (DGNHISTORY_ERROR_BASE + 0x08) /* "Design history was created or last updated by a newer version of MicroStation." */
 
#define HISTORY_ERROR_DUPLICATE_TAG   (DGNHISTORY_ERROR_BASE + 0x09) /* "Tag is already defined */
 
#define HISTORY_ERROR_TAG_NOT_FOUND   (DGNHISTORY_ERROR_BASE + 0x0A) /* "Tag is not defined" */
 
#define HISTORY_ERROR_TAG_NOT_REVISION   (DGNHISTORY_ERROR_BASE + 0x0B) /* "Tag does not identify a revision" */
 
#define HISTORY_ERROR_BACKWARD_COMPATIBILITY   (DGNHISTORY_ERROR_BASE + 0x0C) /* "The current operation would upgrade history, making it read-only to older versions of MicroStation." */
 
#define HISTORY_ERROR_REVISION_NOT_FOUND   (DGNHISTORY_ERROR_BASE + 0x0D) /* "Revision not found." */
 
#define HISTORY_ERROR_FORWARD_COMPATIBILITY   (DGNHISTORY_ERROR_BASE + 0x0E) /* "Design history is read-only, because it was last modified by a newer version of MicroStation." */
 
#define HISTORY_ERROR_NEEDS_COMMIT   (DGNHISTORY_ERROR_BASE + 0x0F) /* "The design file has pending changes that must be committed first." */
 
#define HISTORY_ERROR_CORRUPT   (DGNHISTORY_ERROR_BASE + 0x10) /* "Design history is in an inconsistent state." */
 
#define HISTORY_ERROR_LAST   (DGNHISTORY_ERROR_BASE + 0x10) /* "Last history error code." */
 
#define IS_HISTORY_ERROR(s)   HISTORY_ERROR_LAST >= (s) && (s) >= HISTORY_ERROR_FIRST
 
#define IS_EXTENDED_HISTORY_ERROR(s)
 

Macro Definition Documentation

#define _DGNOPEN_STATUS_FILE_ALREADY_EXISTS   (DGNOPEN_STATUS_BASE + 0x06)
#define _DGNOPEN_STATUS_FILE_NOT_FOUND   (DGNOPEN_STATUS_BASE + 0x11)
#define HISTORY_ERROR_ACCESS_VIOLATION   (DGNOPEN_STATUS_BASE + 0x04) /* "The history file is not accessible by the current user" */
#define HISTORY_ERROR_BACKWARD_COMPATIBILITY   (DGNHISTORY_ERROR_BASE + 0x0C) /* "The current operation would upgrade history, making it read-only to older versions of MicroStation." */
#define HISTORY_ERROR_BAD_ELEMENT   DGNMODEL_STATUS_BadElement /* "An element cannot be updated. It is probably a complex component." */
#define HISTORY_ERROR_BAD_FILENAME   (DGNOPEN_STATUS_BASE + 0x07) /* "Invalid filename" */
#define HISTORY_ERROR_CACHE_NOT_FOUND   (DGNHISTORY_ERROR_BASE + 0x03) /* "Cannot restore element because its model is currently deleted." */
#define HISTORY_ERROR_COMPLEX_COMPONENT   DGNMODEL_STATUS_ComplexComponent /* "You cannot undo/redo historic changes to an individual complex component" */
#define HISTORY_ERROR_CORRUPT   (DGNHISTORY_ERROR_BASE + 0x10) /* "Design history is in an inconsistent state." */
#define HISTORY_ERROR_COULD_NOT_OPEN_FILE_READWRITE   (DGNOPEN_STATUS_BASE + 0x03) /* "Another user has temporarily locked the design file." Occurs when trying to open a file read-write. */
#define HISTORY_ERROR_COULD_NOT_REOPEN_FILE_READWRITE   (DGNFILE_ERROR_BASE + 0x12) /* (effectively same as above, except that error occurs when trying to RE-open a read-only file as read-write) */
#define HISTORY_ERROR_DGN_FILE_NOT_FOUND   (DGNHISTORY_ERROR_BASE + 0x06) /* "The design file was not found" */
#define HISTORY_ERROR_DGNCACHE_IS_IN_USE   DGNMODEL_STATUS_IsInUse /* "Cannot delete model because it is currently in use" */
#define HISTORY_ERROR_DGNFILE_IS_ENCRYPTED   (DGNOPEN_STATUS_BASE + 0x21) /* DGNOPEN_STATUS_IsEncrypted */
#define HISTORY_ERROR_DUPLICATE_TAG   (DGNHISTORY_ERROR_BASE + 0x09) /* "Tag is already defined */
#define HISTORY_ERROR_FILE_NOT_OPEN_READ_WRITE   (DGNFILE_ERROR_BASE + 0x2) /* "The design file is read-only." (this usually only happens after we fail to get the write lock) */
#define HISTORY_ERROR_FIRST   (DGNHISTORY_ERROR_BASE + 0x01) /* "First history error code */
#define HISTORY_ERROR_FORWARD_COMPATIBILITY   (DGNHISTORY_ERROR_BASE + 0x0E) /* "Design history is read-only, because it was last modified by a newer version of MicroStation." */
#define HISTORY_ERROR_HAS_NEW_FEATURES   (DGNHISTORY_ERROR_BASE + 0x08) /* "Design history was created or last updated by a newer version of MicroStation." */
#define HISTORY_ERROR_HISTORY_ALREADY_EXISTS   _DGNOPEN_STATUS_FILE_ALREADY_EXISTS /* "History already exists" (history_create) */
#define HISTORY_ERROR_HISTORY_NOT_FOUND   _DGNOPEN_STATUS_FILE_NOT_FOUND /* "History file not found" */
#define HISTORY_ERROR_INVALID_REVISION_NUMBER   (DGNHISTORY_ERROR_BASE + 0x07) /* "Invalid revision number. Must be of the form major.minor and must come after current tip revision number." */
#define HISTORY_ERROR_LAST   (DGNHISTORY_ERROR_BASE + 0x10) /* "Last history error code." */
#define HISTORY_ERROR_MISSING_LEVEL   (DGNHISTORY_ERROR_BASE + 0x05) /* "Cannot restore element because its level is currently deleted." */
#define HISTORY_ERROR_NEEDS_COMMIT   (DGNHISTORY_ERROR_BASE + 0x0F) /* "The design file has pending changes that must be committed first." */
#define HISTORY_ERROR_NOCHANGES   (DGNHISTORY_ERROR_BASE + 0x01) /* "No changes were found" (history_commit, commitToShared, mergeFromShared) */
#define HISTORY_ERROR_NOT_A_DGN_FILE   (DGNHISTORY_ERROR_BASE + 0x02) /* "This is not a V8 design file." (history_create) */
#define HISTORY_ERROR_PERMISSION_DENIED   (DGNHISTORY_ERROR_BASE + 0x04) /* "Permission denied" (MS_DESIGN_HISTORY config variable is not set to allow this operation) */
#define HISTORY_ERROR_REVISION_NOT_FOUND   (DGNHISTORY_ERROR_BASE + 0x0D) /* "Revision not found." */
#define HISTORY_ERROR_TAG_NOT_FOUND   (DGNHISTORY_ERROR_BASE + 0x0A) /* "Tag is not defined" */
#define HISTORY_ERROR_TAG_NOT_REVISION   (DGNHISTORY_ERROR_BASE + 0x0B) /* "Tag does not identify a revision" */
#define IS_EXTENDED_HISTORY_ERROR (   s)
Value:
#define HISTORY_ERROR_DGNFILE_IS_ENCRYPTED
Definition: historyErrors.r.h:28
#define HISTORY_ERROR_BAD_FILENAME
Definition: historyErrors.r.h:27
#define HISTORY_ERROR_HISTORY_NOT_FOUND
Definition: historyErrors.r.h:30
#define HISTORY_ERROR_COULD_NOT_REOPEN_FILE_READWRITE
Definition: historyErrors.r.h:23
#define HISTORY_ERROR_ACCESS_VIOLATION
Definition: historyErrors.r.h:24
#define HISTORY_ERROR_BAD_ELEMENT
Definition: historyErrors.r.h:19
#define HISTORY_ERROR_COMPLEX_COMPONENT
Definition: historyErrors.r.h:17
#define HISTORY_ERROR_DGNCACHE_IS_IN_USE
Definition: historyErrors.r.h:18
#define HISTORY_ERROR_FILE_NOT_OPEN_READ_WRITE
Definition: historyErrors.r.h:33
#define HISTORY_ERROR_COULD_NOT_OPEN_FILE_READWRITE
Definition: historyErrors.r.h:22
#define HISTORY_ERROR_HISTORY_ALREADY_EXISTS
Definition: historyErrors.r.h:31
#define IS_HISTORY_ERROR (   s)    HISTORY_ERROR_LAST >= (s) && (s) >= HISTORY_ERROR_FIRST

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.