Macros | Typedefs | Enumerations | Functions
leveltable.fdf File Reference
#include <Mstn\MstnTypes.h>
#include "leveltable.h"
#include <DgnPlatform\LevelCache.h>

Macros

#define LEVELLIST_AddCurrent   (0x0001)
 
#define LEVELLIST_AddByLevel   (0x0002)
 
#define LEVELLIST_AddByCell   (0x0004)
 
#define LEVELLIST_AddHistory   (0x0008)
 
#define LEVELLIST_NoByLevel   (0x0010) /* Need these because by default it uses capabilities */
 
#define LEVELLIST_NoByCell   (0x0020)
 
#define LEVELLIST_NoSeparator   (0x0040)
 
#define LEVELLIST_AddNone   (0x0080)
 
#define LEVELLIST_AddLineCodes   (0x1000)
 
#define LEVELLIST_LineCodesOnly   (0x4000)
 
#define LEVELLIST_AddExtColors   (0x1000)
 

Typedefs

typedef StatusInt(* LevelIteratorTraverseCallback )(DgnPlatform::LevelHandle levelIdHandle, CallbackArgP userArgIn)
 UserFunction called when traversing levels. More...
 

Enumerations

enum  { LEVEL_LIST_MAX_LEVELS =65535 }
 

Functions

StatusInt mdlLevelTable_getLevelCount (int *levelCountOut, DgnModelRefP modelRefIn, short levelCountTypeIn)
 Get the number of levels in level-table. More...
 
StatusInt mdlLevelTable_getHighestLevelId (DgnPlatform::LevelId *highestLevelIdOut, DgnModelRefP modelRefIn)
 Get the value of highest used level id in level-table. More...
 
int mdlLevelTable_getHighestLevelCode (DgnPlatform::LevelCode *highestLevelCodeOut, DgnModelRefP modelRefIn)
 Get the value of highest used level code in level-table. More...
 
StatusInt mdlLevelTable_getReadOnly (bool *isReadOnlyOut, DgnModelRefP modelRefIn)
 Get read-only flag of level-table. More...
 
bool mdlLevelTable_isReadOnly (DgnModelRefP modelRefIn)
 Check if level-table is read-only. More...
 
StatusInt mdlLevelTable_setReadOnly (DgnModelRefP modelRefIn, bool isReadOnlyIn)
 Set read-only flag of level-table. More...
 
StatusInt mdlLevelTable_rewrite (DgnModelRefP modelRefIn)
 Rewrite the level-table data into current-file. More...
 
BitMaskCP mdlLevelTable_getDisplayMask (DgnModelRefP modelRefIn)
 Get the display mask for level-table. More...
 
BitMaskCP mdlLevelTable_getPlotMask (DgnModelRefP modelRefIn)
 Get the plot mask for level-table. More...
 
BitMaskCP mdlLevelTable_getExternalMask (DgnModelRefP modelRefIn)
 Get the external mask for level-table. More...
 
BitMaskCP mdlLevelTable_getHiddenMask (DgnModelRefP modelRefIn)
 Get the hidden mask for level-table. More...
 
BitMaskCP mdlLevelTable_getReadOnlyMask (DgnModelRefP modelRefIn)
 Get the read-only mask for level-table. More...
 
BitMaskCP mdlLevelTable_getFrozenMask (DgnModelRefP modelRefIn, LevelFrozenType frozenTypeIn)
 Get the frozen mask for level-table. More...
 
BitMaskCP mdlLevelTable_getDisplayFrozenMask (DgnModelRefP modelRefIn)
 Get the effective combined display + frozen mask for level-table. More...
 
BitMaskCP mdlLevelTable_getUsageMask (DgnModelRefP modelRefIn)
 Get the level usage mask for level-table. More...
 
StatusInt mdlLevelTable_setDisplayMask (DgnModelRefP modelRefIn, BitMaskCP displayMaskIn, bool updateViewIn)
 Set the display flag for all levels of level-table. More...
 
StatusInt mdlLevelTable_setFrozenMask (DgnModelRefP modelRefIn, BitMaskCP frozenMaskIn, LevelFrozenType frozenTypeIn, bool updateViewIn)
 Set the frozen flag for all levels of level-table. More...
 
StatusInt mdlLevelTable_drawLevels (bool *viewDraw, bool incrementalIn, DgnPlatform::DgnDrawMode drawModeIn, DgnModelRefP modelRefIn, BitMaskCP levelBitMaskIn, bool startEndMsgIn, bool drawSharedIn)
 Draw all elements on a list of specified levels. More...
 
bool mdlLevel_isActive (DgnPlatform::LevelId levelIdIn)
 Check if a level of the current-file is the active level. More...
 
StatusInt mdlLevel_getActive (DgnPlatform::LevelId *levelIdOut)
 Get the current active level. More...
 
StatusInt mdlLevel_setActive (DgnPlatform::LevelId levelIdIn)
 Set level as active. More...
 
StatusInt mdlLevel_setActiveByName (DgnPlatform::LevelId, WCharCP levelNameIn)
 Set level with specified name as active. More...
 
StatusInt mdlLevel_setActiveByCode (DgnPlatform::LevelCode levelCodeIn)
 Set level with specified code as active. More...
 
bool mdlLevel_isValid (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Check if the specified level id is a valid existing level. More...
 
bool mdlLevel_isValidByName (DgnModelRefP modelRefIn, DgnPlatform::LevelId, WCharCP levelNameIn)
 Check if level with specified name is a valid existing level. More...
 
bool mdlLevel_isValidByCode (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Check if level with specified code is a valid existing level. More...
 
StatusInt mdlLevel_getName (WChar *levelNameOut, int stringSizeIn, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get level name. More...
 
StatusInt mdlLevel_getCode (DgnPlatform::LevelCode *levelCodeOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get level code. More...
 
StatusInt mdlLevel_isCodeAutoGenerated (bool *isAutoGeneratedOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get if the level code is auto generated (that means generated by MicroStation) or is manually set by the user. More...
 
StatusInt mdlLevel_getCreateTimeStamp (UInt *createTimeStampOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get level create time stamp. More...
 
StatusInt mdlLevel_getDescription (WChar *descriptionOut, int stringSizeIn, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get level description. More...
 
StatusInt mdlLevel_getColor (UInt *colorOut, bool *colorOverrideOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get level color and color-override flag. More...
 
StatusInt mdlLevel_getMaterialId (DgnPlatform::ElementId *materialIdOut, bool *materialOverrideOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get material id associated with the level. More...
 
StatusInt mdlLevel_getStyle (int *styleOut, LineStyleParamsP styleParamsOut, bool *styleOverrideOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get the level style, custom-line style override info and style-override flag. More...
 
StatusInt mdlLevel_getWeight (UInt *weightOut, bool *weightOverrideOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get the level weight and weight-override flag. More...
 
StatusInt mdlLevel_getSymbology (UInt *colorOut, bool *colorOverrideOut, int *styleOut, LineStyleParamsP styleParamsOut, bool *styleOverrideOut, UInt *weightOut, bool *weightOverrideOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get the level symbology and symbology-override flags. More...
 
StatusInt mdlLevel_getElementColor (UInt *colorOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get the level element color. More...
 
StatusInt mdlLevel_getElementMaterialId (DgnPlatform::ElementId *materialIdOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get level element material id associated with the level. More...
 
StatusInt mdlLevel_getElementStyle (int *styleOut, LineStyleParamsP styleParamsOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get the level element style and custom-line style override info. More...
 
StatusInt mdlLevel_getElementWeight (UInt *weightOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get the level element weight. More...
 
StatusInt mdlLevel_getElementSymbology (UInt *elementColorOut, int *elementStyleOut, LineStyleParamsP elementStyleParamsOut, UInt *elementWeightOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get the element symbology. More...
 
StatusInt mdlLevel_getElementAccess (DgnPlatform::LevelElementAccess *elementAccessOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get the element access mode. More...
 
bool mdlLevel_isElementLocked (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Check if elements on the specified level are locked. More...
 
bool mdlLevel_isElementReadOnly (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Check if elements on the specified level are read-only. More...
 
bool mdlLevel_isElementViewOnly (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Check if elements on the specified level are view-only. More...
 
StatusInt mdlLevel_getDisplay (bool *levelDisplayOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get the display flag. More...
 
StatusInt mdlLevel_getPlot (bool *levelPlotOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get the plot flag. More...
 
StatusInt mdlLevel_getAttributesDifferFromSource (bool *levelDifferOut, BitMaskP differencesMaskOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get the 'level's attributes differ from source' flag. More...
 
bool mdlLevel_isExternal (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Check if a level is an external (library) level or not. More...
 
StatusInt mdlLevel_getExternal (bool *levelExternalOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get the external flag. More...
 
StatusInt mdlLevel_getLibraryRef (LevelLibraryRefP *levelLibraryRefOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 For an external level, get its level-library. More...
 
StatusInt mdlLevel_getHidden (bool *levelHiddenOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get the hidden flag. More...
 
bool mdlLevel_isHidden (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Check if a level is hidden. More...
 
StatusInt mdlLevel_getReadOnly (bool *levelReadOnlyOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get the read-only flag. More...
 
bool mdlLevel_isReadOnly (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Check if a level is read-only. More...
 
StatusInt mdlLevel_getFrozen (bool *levelFrozenOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, LevelFrozenType frozenTypeIn)
 Get the frozen flag. More...
 
bool mdlLevel_isFrozen (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, LevelFrozenType frozenTypeIn)
 Check if a level is frozen. More...
 
StatusInt mdlLevel_getUniqueID (DgnPlatform::ElementId *uniqueIDOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get the level element's unique ID. More...
 
StatusInt mdlLevel_getIdFromName (DgnPlatform::LevelId *levelIdOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId, WCharCP levelNameIn)
 Given a level-name, get its level-id. More...
 
StatusInt mdlLevel_getIdFromNameIncludingLibraries (DgnPlatform::LevelId *levelIdOut, DgnModelRefP modelRefIn, WCharCP levelNameIn)
 Given a level-name, get its level-id, including levels that are in level libraries. More...
 
StatusInt mdlLevel_getIdFromCode (DgnPlatform::LevelId *levelIdOut, DgnModelRefP modelRefIn, DgnPlatform::LevelCode levelCodeIn)
 Given a level-code, get its level-id. More...
 
StatusInt mdlLevel_getIdFromCodeIncludingLibraries (DgnPlatform::LevelId *levelIdOut, DgnModelRefP modelRefIn, DgnPlatform::LevelCode levelCodeIn)
 Given a level-code, get its level-id, including levels that are in level libraries. More...
 
bool mdlLevel_isUsed (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, bool inFile)
 Check if a level is used. More...
 
StatusInt mdlLevel_getUsage (bool *usageOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, bool inFile)
 Get the level usage flag. More...
 
StatusInt mdlLevel_reportUsage (WStringR reportStringOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Generate a report that describes where a level is used in the context of the file of specified model-ref. More...
 
StatusInt mdlLevel_getElementCount (int *usageCountOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get the the number of elements of specified model-ref that use specified level. More...
 
StatusInt mdlLevel_getDisplayPriority (Int32 *priorityOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get level display priority. More...
 
StatusInt mdlLevel_getTransparency (double *transparencyOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Get level display transparency. More...
 
StatusInt mdlLevel_create (DgnPlatform::LevelId *levelIdOut, DgnModelRefP modelRefIn, WCharCP levelNameIn, DgnPlatform::LevelCode levelCodeIn)
 Create a new level. More...
 
StatusInt mdlLevel_createFromSeed (DgnPlatform::LevelId *levelIdOut, DgnModelRefP modelRefIn, const WChar *levelNameIn, DgnPlatform::LevelCode levelCodeIn, DgnPlatform::LevelId seedLevelIdIn, BitMaskCP copyAttributeMaskIn)
 Create a new level. More...
 
StatusInt mdlLevel_delete (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Delete a level. More...
 
StatusInt mdlLevel_setName (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, WCharCP nameIn)
 Set level name. More...
 
StatusInt mdlLevel_setCode (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, DgnPlatform::LevelCode levelCodeIn)
 Set level code. More...
 
StatusInt mdlLevel_setDescription (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, WCharCP descriptionIn)
 Set level description. More...
 
StatusInt mdlLevel_setColor (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, UInt *colorIn, bool *colorOverrideIn)
 Set level color. More...
 
StatusInt mdlLevel_setMaterialId (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, DgnPlatform::ElementId *materialIdIn, bool *materialOverrideIn)
 Set level material id. More...
 
StatusInt mdlLevel_setStyle (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, int *styleIn, LineStyleParamsP styleParamsIn, bool *styleOverrideIn)
 Set level style. More...
 
StatusInt mdlLevel_setWeight (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, UInt *weightIn, bool *weightOverrideIn)
 Set level weight. More...
 
StatusInt mdlLevel_setSymbology (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, UInt *colorIn, bool *colorOverrideIn, int *styleIn, LineStyleParamsP styleParamsIn, bool *styleOverrideIn, UInt *weightIn, bool *weightOverrideIn)
 Set level symbology. More...
 
StatusInt mdlLevel_setElementColor (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, UInt colorIn)
 Set element color. More...
 
StatusInt mdlLevel_setElementMaterialId (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, DgnPlatform::ElementId materialIdIn)
 Set level element material id. More...
 
StatusInt mdlLevel_setElementStyle (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, int *styleIn, LineStyleParamsP styleParamsIn)
 Set element style. More...
 
StatusInt mdlLevel_setElementWeight (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, UInt weightIn)
 Set element weight. More...
 
StatusInt mdlLevel_setElementSymbology (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, UInt *colorIn, int *styleIn, LineStyleParamsP styleParamsIn, UInt *weightIn)
 Set element symbology. More...
 
StatusInt mdlLevel_setElementAccess (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, DgnPlatform::LevelElementAccess elementAccessIn)
 Set the level's element access mode. More...
 
StatusInt mdlLevel_setDisplay (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, bool displayIn)
 Set level display on/off. More...
 
StatusInt mdlLevel_setFrozen (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, LevelFrozenType frozenTypeIn, bool frozenIn)
 Set level frozen on/off. More...
 
StatusInt mdlLevel_setPlot (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, bool plotIn)
 Set level plot on/off. More...
 
StatusInt mdlLevel_setHidden (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, bool hiddenIn)
 Set level hidden on/off. More...
 
StatusInt mdlLevel_setDisplayPriority (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, Int32 priorityIn)
 Set level display priority. More...
 
StatusInt mdlLevel_setTransparency (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, double transparencyIn)
 Set level display transparency. More...
 
StatusInt mdlLevel_setReadOnly (DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, bool isReadOnlyIn)
 Set level read-only on/off. More...
 
bool mdlLevel_compareLevelData (BitMaskP compareAttributesOut, DgnModelRefP modelRef1In, DgnPlatform::LevelId levelId1In, DgnModelRefP modelRef2In, DgnPlatform::LevelId levelId2In, BitMaskCP compareAttributesIn)
 Compare level related data between level1 and level2. More...
 
StatusInt mdlLevel_copyLevelData (DgnModelRefP destModelRefIn, DgnPlatform::LevelId destLevelIdIn, DgnModelRefP sourceModelRefIn, DgnPlatform::LevelId sourceLevelIdIn)
 Copy all level related data from source level into destination level. More...
 
StatusInt mdlLevel_copyLevelDataByAttributeMask (DgnModelRefP destModelRefIn, DgnPlatform::LevelId destLevelIdIn, DgnModelRefP sourceModelRefIn, DgnPlatform::LevelId sourceLevelIdIn, BitMaskCP copyAttributesMaskIn)
 Copy level related data as specified by the level-attributes mask from source level into destination level. More...
 
StatusInt mdlLevel_copyLevel (DgnPlatform::LevelId *levelIdOut, DgnModelRefP destModelRefIn, DgnModelRefP sourceModelRefIn, DgnPlatform::LevelId sourceLevelIdIn, bool setExternalIn)
 Copy a level from source model into destination model. More...
 
StatusInt mdlLevel_draw (bool *viewDrawIn, bool incrementalIn, DgnPlatform::DgnDrawMode drawModeIn, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, bool startEndMsgIn, bool drawSharedIn)
 Draw all elements on specified level. More...
 
StatusInt mdlLevel_selectElement (int *numElementSelectedOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn)
 Select elements on specified level. More...
 
StatusInt mdlLevel_deleteElement (int *numElementDeletedOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, bool inEntireFileIn, bool updateViewIn)
 Delete elements on specified level. More...
 
StatusInt mdlLevel_copyElement (int *numElementCopiedOut, DgnModelRefP destModelRefIn, DgnPlatform::LevelId destLevelIdIn, DgnModelRefP sourceModelRefIn, DgnPlatform::LevelId sourceLevelIdIn, bool inEntireFileIn)
 Copy elements in source level to destination level. More...
 
StatusInt mdlLevel_moveElementLevel (int *numElementMovedOut, DgnPlatform::LevelId destLevelIdIn, DgnModelRefP modelRefIn, DgnPlatform::LevelId sourceLevelIdIn, bool inEntireFileIn)
 Move elements of source level to destination level. More...
 
StatusInt mdlLevel_setElementByLevel (int *numElementChangedOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, BitMaskP elementAttributeStringIn, bool inEntireFileIn, bool isSetByLevel)
 set or unset elements symbology to that of BYLEVEL. More...
 
DgnPlatform::LevelId mdlLevel_getSeedLevel (DgnModelRefP modelRefIn)
 Get level-id of seed level. More...
 
BitMaskCP mdlLevelAttribute_getMask (LevelAttributeMaskType attributeTypeIn)
 Return the level-attribute bit-mask for a given attribute list type. More...
 
bool mdlLevelName_hasValidCharacters (WCharCP nameStringIn)
 Check if specified Name String is valid. More...
 
void mdlLevelName_replaceInvalidCharacters (WChar *nameStringIn, WChar replacementCharIn)
 
Replace all invalid characters in specified Name String with another

character More...

 
StatusInt mdlLevelFilter_apply (bool *passFlagOut, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelIdIn, FilterID filterIdIn)
 Apply level filter to specified level, to check if the level passes the filter. More...
 
StatusInt mdlLevelFilter_applyToLevelHandle (bool *passFlagOut, DgnModelRefP modelRefIn, DgnPlatform::LevelHandle levelHandleIn, FilterID filterIdIn)
 Apply level filter to specified level, to check if the level passes the filter. More...
 
StatusInt mdlLevelFilter_applyToAll (BitMaskP passBitMaskOut, DgnModelRefP modelRefIn, FilterID filterIdIn)
 Apply level filter to all levels of specified model ref. More...
 
StatusInt mdlLevelLibrary_attach (LevelLibraryRefP *libraryRefOut, WCharCP fileNameIn, LevelLibraryFormat libraryFormatIn, DgnModelRefP modelRefIn)
 Attach specified level-library to the file's level-table of specified model-ref. More...
 
StatusInt mdlLevelLibrary_detach (LevelLibraryRefP libraryRefIn, DgnModelRefP modelRefIn)
 Detach specified level-library from the file's level-table of specified model-ref. More...
 
StatusInt mdlLevelLibrary_resync (DgnModelRefP modelRefIn)
 Resync attributes of an external level of the file of specified model-ref to match with its corresponding attributes in the level library. More...
 
LevelLibraryRefP mdlLevelLibrary_find (WCharCP fileNameIn, bool fuzzyMatchIn, DgnModelRefP modelRefIn)
 Find a library reference with specified file-name in file of specified model-ref. More...
 
StatusInt mdlLevelLibrary_import (WCharCP fileNameIn, LevelLibraryFormat libraryFormatIn, LevelLibraryImportMethod importByMethodIn, DgnModelRefP modelRefIn)
 Import levels from specified file into the file of specified model-ref. More...
 
StatusInt mdlLevelLibrary_importWithFilters (WCharCP fileNameIn, LevelLibraryFormat libraryFormatIn, LevelLibraryImportMethod importByMethodIn, DgnModelRefP modelRefIn)
 Import specified level-library and associated level filters into the file of specified model-ref. More...
 
StatusInt mdlLevelLibrary_export (WCharCP fileNameIn, LevelLibraryFormat libraryFormatIn, DgnModelRefP modelRefIn)
 Export levels of file of specified model-ref. More...
 
StatusInt mdlLevelLibrary_exportWithFilters (WCharCP fileNameIn, LevelLibraryFormat libraryFormatIn, DgnModelRefP modelRefIn)
 Export levels & filters of file of specified model-ref. More...
 
StatusInt mdlLevelLibrary_getName (WStringR libraryNameOut, LevelLibraryRefP libraryRefIn)
 Get name of a level-library. More...
 
StatusInt mdlLevelLibrary_getFormat (LevelLibraryFormat *libraryFormatOut, LevelLibraryRefP libraryRefIn)
 Get format of a level-library. More...
 
bool mdlLevelLibrary_isManuallyAttached (LevelLibraryRefP libraryRefIn)
 Check if a level-library is auto-attached or manually attached. More...
 
StatusInt mdlLevelLibrary_getCount (int *countOut, LevelLibraryCountType countTypeIn, DgnModelRefP modelRefIn)
 Get the number of attached level libraries to file of specified model-ref. More...
 
LevelIteratorR mdlLevelIterator_create (DgnModelRefP modelRefIn)
 Create a new level iterator. More...
 
void mdlLevelIterator_free (LevelIteratorR levelIteratorIn)
 Free a level iterator which is not required. More...
 
StatusInt mdlLevelIterator_setLevelFilter (LevelIteratorR levelIteratorIn, DgnModelRefP modelRefIn, FilterID filterIdIn)
 Set a level filter through which iterated levels should pass through. More...
 
StatusInt mdlLevelIterator_setIterateType (LevelIteratorR levelIteratorIn, LevelIterateType iterateTypeIn)
 Set iteration type. More...
 
StatusInt mdlLevelIterator_setIterateLibraryLevels (LevelIteratorR levelIteratorIn, bool iterateLibraryLevelsIn)
 Set if library-levels of the iterator's model-ref should be iterated or not. More...
 
DgnPlatform::LevelId mdlLevelIterator_getNext (LevelIteratorR levelIteratorIn)
 Get next level. More...
 
DgnPlatform::LevelId mdlLevelIterator_getFirst (LevelIteratorR levelIteratorIn)
 Get first level. More...
 
StatusInt mdlLevelIterator_traverse (LevelIteratorR levelIteratorIn, LevelIteratorTraverseCallback userFunctionIn, CallbackArgP userArgIn)
 Traverse through all level entries as specified in the iterator. More...
 
bool mdlLevelEnv_allowEditingOfNestedAttachmentLevels ()
 Check if editing of nested attachment levels is allowed. More...
 
StatusInt mdlLevelError_getMessage (WStringR errorMessageOut, int errorStatusIn)
 Get a message string describing a returned level-error status. More...
 
int mdlLevelError_outputToMessageCenter (DgnPlatform::OutputMessagePriority errorMessagePriorityIn, int errorStatusIn)
 Output to the message center a message string describing a returned level-error status. More...
 
StatusInt mdlLevelList_getLevelNamesListModel (ListModelP listModel, DgnModelRefP modelRefIn, DgnPlatform::LevelId levelId, UInt attributes)
 Populates the given ListModel with level names. More...
 
StatusInt mdlLevelList_getLevelNamesListModelWithLock (ListModelP listModel, DgnModelRefP modelRefIn)
 Populates the given ListModel with the level names and the lock status. More...
 
StatusInt mdlLevelList_getLevelNamesWithAttributes (MSDialogP pDb, ListModelP listModelOut, DgnModelRefP modelRefIn)
 Pouplates the given ListModel with the level names, the lock status, and the ByLevel Color. More...
 
int mdlLevelList_getColorListModel (ListModelP listModel, MSDialogP pDb, DgnModelRefP modelRefIn, DgnPlatform::LevelId *levelIn, UInt currentColor, UInt options)
 Populates the given ListModel with the level colors. More...
 
int mdlLevelList_getStyleListModel (ListModelP listModel, DgnModelRefP modelRefIn, DgnPlatform::LevelId *levelIn, int currentStyleNum, UInt options)
 Populates the given ListModel with the level styles. More...
 
int mdlLevelList_getWeightListModel (ListModelP listModel, DgnModelRefP modelRefIn, DgnPlatform::LevelId *levelIn, UInt currentWeight, UInt options)
 Pouplates the given ListModel with the level weights. More...
 
int mdlLevelList_getFillListModel (ListModelP listModel, MSDialogP pDb, DgnModelRefP modelRefIn, DgnPlatform::LevelId *levelIn, UInt currentColor, UInt option)
 Populates the given ListModel with the level fill colors. More...
 
void mdlLevelList_handleLevelNameSetState (DialogItemMessageP dimP, DgnPlatform::LevelId currentLevel)
 Returns a list model pointer of level names. More...
 
StatusInt mdlLevelList_synchronizeColorListModel (ListModelP listModel, MSDialogP pDb, DgnModelRefP modelRefIn, DgnPlatform::LevelId *levelIn)
 Synchronize the "ByLevel" icon in a list model. More...
 
StatusInt mdlLevelList_synchronizeFillListModel (ListModelP listModel, MSDialogP pDb, DgnModelRefP modelRefIn, DgnPlatform::LevelId *levelIn)
 Synchronize the "ByLevel" icon in a list model. More...
 
StatusInt mdlLevelList_synchronizeWeightListModel (ListModelP listModel, DgnModelRefP modelRefIn, DgnPlatform::LevelId *levelIn)
 Synchronize the "ByLevel" icon in a list model. More...
 
StatusInt mdlLevelList_synchronizeStyleListModel (ListModelP listModel, DgnModelRefP modelRefIn, DgnPlatform::LevelId *levelIn)
 Synchronize the "ByLevel" icon in a list model. More...
 
StatusInt mdlLevelList_synchronizeStyleHistory (ListModelP listModel, DgnModelRefP modelRefIn)
 Update the history of last used line styles. More...
 

Macro Definition Documentation

#define LEVELLIST_AddByCell   (0x0004)
#define LEVELLIST_AddByLevel   (0x0002)
#define LEVELLIST_AddCurrent   (0x0001)
#define LEVELLIST_AddExtColors   (0x1000)
#define LEVELLIST_AddHistory   (0x0008)
#define LEVELLIST_AddLineCodes   (0x1000)
#define LEVELLIST_AddNone   (0x0080)
#define LEVELLIST_LineCodesOnly   (0x4000)
#define LEVELLIST_NoByCell   (0x0020)
#define LEVELLIST_NoByLevel   (0x0010) /* Need these because by default it uses capabilities */
#define LEVELLIST_NoSeparator   (0x0040)

Enumeration Type Documentation

anonymous enum
Enumerator
LEVEL_LIST_MAX_LEVELS 

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