Gets the active ModelRef. More...
Namespaces | |
Bentley | |
The Bentley namespace contains types defined by the Bentley Library. | |
Typedefs | |
typedef int(* | PFDgnLibIterateCallback )(DgnModelP model, CallbackArgP callbackArg) |
UserFunction called to process files in MS_DGNLIBLIST. More... | |
Functions | |
StatusInt | mdlDgnLib_iterate (PFDgnLibIterateCallback pCallbackFunc, CallbackArgP pCallbackArg, MstnPlatform::DgnLibSelector dgnLibSelector) |
Process the DgnLibs specifed in the specified DgnLibSelector (or combination of DgnLibSelectors). More... | |
void | mdlDgnLib_dumpAll (WCharCP prefixMessage) |
Dump to console all the files currently open because they are listed in the MS_DGNLIBLIST configuration variable. More... | |
bool | mdlModelRef_inMasterFile (DgnModelRefP modelRef) |
Determines whether the specified modelRef is contained in the master file. More... | |
bool | mdlModelRef_isActiveModel (DgnModelRefCP modelRef) |
Determines whether the specified modelRef is the active model. More... | |
bool | mdlModelRef_isReference (DgnModelRefCP modelRef) |
Determines whether the specified modelRef is a reference model. More... | |
DgnModelRefP | mdlModelRef_getParent (DgnModelRefCP modelRef) |
Gets the DgnModelRefP for the model that is the parent of the specified modelRef. More... | |
bool | mdlModelRef_isNestedReference (DgnModelRefP modelRef) |
Determines whether the specified reference model is attached to another reference model. More... | |
bool | mdlModelRef_isReadOnly (DgnModelRefP modelRef) |
Determines whether a modelRef is read-only. More... | |
bool | mdlModelRef_areSame (DgnModelRefP modelRef1, DgnModelRefP modelRef2) |
Determines whether two specified modelRefs are actually the same. More... | |
StatusInt | mdlModelRef_getFileName (DgnModelRefP modelRef, WCharP fileName, int fileNameBufSize) |
Gets the name of the file that contains the data for the specified model. More... | |
bool | mdlModelRef_isDisplayedInView (DgnModelRefP modelRef, int viewIndex) |
Determines whether the specified DgnPlatform::DgnModelRef is displayed in the specified view. More... | |
int | mdlModelRef_getViewMask (DgnModelRefP modelRef) |
Gets a bitmask representing the views that display the specified modelRef. More... | |
StatusInt | mdlModelRef_deleteModel (DgnModelRefP modelRef, bool deleteElements) |
Deletes the specified model from the file that contains it. More... | |
StatusInt | mdlModelRef_activateAndDisplay (DgnModelRefP newModelRef) |
Activates and displays the specified modelRef. More... | |
StatusInt | mdlModelRef_createWorking (DgnModelRefP *dgnModelRefP, DgnFileP dgnFileP, DgnPlatform::ModelId modelID, bool fillCache, bool loadRefs) |
Creates a "working" DgnModelRefP that can be passed to functions that take DgnModelRefP arguments. More... | |
StatusInt | mdlModelRef_createCacheSpecificWorking (DgnModelRefP *dgnModelRefP, DgnFileP dgnFileP, DgnPlatform::ModelId modelID, bool fillCache, bool loadRefs, bool includeUndisplayedRefs, DgnPlatform::DgnModelSections sectionsToFill) |
Creates a "working" DgnModelRefP containing the specified cache sections that can be passed to functions that take DgnModelRefP arguments. More... | |
StatusInt | mdlModelRef_createWorkingByName (DgnModelRefP *dgnModelRefP, DgnFileP dgnFileP, const WChar *modelNameP, bool fillCache, bool loadRefs) |
Creates a "working" DgnModelRefP that can be passed to functions that take DgnModelRefP arguments. More... | |
StatusInt | mdlModelRef_freeWorking (DgnModelRefP modelRef) |
Frees modelRef's created using mdlModelRef_createWorking or mdlModelRef_createWorkingByName. More... | |
void | mdlModelRef_setDefaultBackgroundColor (DgnModelRefP modelRefP) |
Sets the model background color to the default value for that model type. More... | |
StatusInt | mdlModelRef_checkAllRightsIfDisplayed (DgnModelRefP modelRef, UInt32 rights, int view, MessageDestination displayError) |
Check if the specified rights are granted to the current user for the given model and all references that are displayed in the selected view(s). More... | |
StatusInt | mdlModelRef_checkAllRights (DgnModelRefP modelRef, UInt32 rights, MessageDestination displayError) |
Check if the specified rights are granted to the current user for the given model and all references. More... | |
StatusInt | mdlModelRef_checkAllRightsIncludingProtectedRefs (DgnModelRefP modelRef, UInt32 rights, MessageDestination displayError) |
Check if the specified rights are granted to the current user for the given model and all references, including the references that could not be opened because the user lacked viewing access. More... | |
StatusInt | mdlModelRef_copyModel (DgnModelRefP *returnDestModelRef, DgnModelRefP sourceModelRef, DgnFileP destFile, const WChar *pDestModelName, const WChar *pDestModelDescr) |
Copy a model from one location to another. More... | |
DgnModelP | mdlModelRef_getDgnModel (DgnModelRefP modelRef) |
Gets a pointer to the DgnModel that holds elements in the model. More... | |
DgnFileP | mdlModelRef_getDgnFile (DgnModelRefCP modelRef) |
Gets the DgnFileObj that contains the specified modelRef. More... | |
StatusInt | mdlModelRef_getUorScaleBetweenModels (double *pUorFactor, DgnModelRefCP srcModelRef, DgnModelRefCP dstModelRef) |
Gets the scale factor between the UORs of two models. More... | |
StatusInt | mdlModelRef_loadReferenceModels (DgnModelRefP modelRef, bool loadCache, bool loadRasterRefs, bool loadUndisplayedRefs) |
Loads the reference models attached to the specified modelRef. More... | |
UInt32 | mdlModelRef_getEof (DgnModelRefP modelRef) |
Gets the EOF (end-of-file) file position for the specified model. More... | |
DgnPlatform::ElementId | mdlModelRef_getAttachmentID (DgnModelRefCP modelRef) |
Gets the element ID of the Reference Attachment element for the specified modelRef. More... | |
bool | mdlModelRef_isEmpty (DgnModelRefP modelRef) |
Determines whether the specified model is empty. More... | |
int | mdlModelRef_getChildCount (DgnModelRefCP modelRef, int childTypeMask) |
Gets the count of models of the specified type that are attached to the specified model. More... | |
ElementRefP | mdlModelRef_getElementRef (DgnModelRefP modelRef, UInt32 filePos) |
Gets an ElementRefP given a DgnModelRefP and a filePos. More... | |
bool | mdlModelRef_is3D (DgnModelRefCP modelRef) |
Determine whether the specified model is three dimensional. More... | |
bool | mdlModelRef_isTransient (DgnModelRefP modelRef) |
Determines whether the specified modelRef is the transient model. More... | |
bool | mdlModelRef_isSheet (DgnModelRefCP modelRef) |
Determines whether the specified model is a sheet model. More... | |
bool | mdlModelRef_isDefault (DgnModelRefCP modelRef) |
Determines whether the specified model is set as the "default" model. More... | |
bool | mdlActiveModel_is3d () |
bool | mdlActiveModel_isReadonly () |
StatusInt | mdlModelRefIterator_create (ModelRefIteratorP *mrIteratorP, DgnModelRefCP rootModelRef, int iteratorType, int depth) |
Creates a ModelRefIterator. More... | |
StatusInt | mdlModelRefIterator_free (ModelRefIteratorP *mrIteratorP) |
Frees a ModelRefIterator. More... | |
DgnModelRefP | mdlModelRefIterator_getFirst (ModelRefIteratorP mrIterator) |
Resets the iterator to the beginning and gets the first modelRef item. More... | |
DgnModelRefP | mdlModelRefIterator_getCurrent (ModelRefIteratorP mrIterator) |
Gets the current modelRef included in the specified iterator. More... | |
DgnModelRefP | mdlModelRefIterator_getNext (ModelRefIteratorP mrIterator) |
Advances the position of the iterator to the next modelRef and returns the modelRef from that position. More... | |
DgnModelRefP | mdlModelRef_getTransient () |
Gets the transient modelRef. More... | |
DgnModelRefP | mdlModelRef_getActive (void) |
Gets the active ModelRef.
INVALID_MODELREF
. ACTIVEMODEL
and MASTERFILE
macros are both defined to mdlModelRef_getActive. typedef int(* PFDgnLibIterateCallback)(DgnModelP model, CallbackArgP callbackArg) |
UserFunction called to process files in MS_DGNLIBLIST.
[in] | model | The default model for the file. |
[in] | callbackArg | user argument, as passed to mdlDgnLib_iterate. |
bool mdlActiveModel_is3d | ( | ) |
bool mdlActiveModel_isReadonly | ( | ) |
void mdlDgnLib_dumpAll | ( | WCharCP | prefixMessage | ) |
Dump to console all the files currently open because they are listed in the MS_DGNLIBLIST configuration variable.
Missing dgnlibs will not be listed. This is a debugging function only.
[in] | prefixMessage | A message to print out with each model. |
StatusInt mdlDgnLib_iterate | ( | PFDgnLibIterateCallback | pCallbackFunc, |
CallbackArgP | pCallbackArg, | ||
MstnPlatform::DgnLibSelector | dgnLibSelector | ||
) |
Process the DgnLibs specifed in the specified DgnLibSelector (or combination of DgnLibSelectors).
[in] | pCallbackFunc | The function to call for each file in the MS_DGNLIBLIST. |
[in] | pCallbackArg | The user arguments to pass into the callback function. |
[in] | dgnLibSelector | A value from the DgnLibSelector enum, or an 'Or'ed combination of values. |
StatusInt mdlModelRef_activateAndDisplay | ( | DgnModelRefP | newModelRef | ) |
Activates and displays the specified modelRef.
The function checks if the model is displayed in the current views and, if not, new views are opened with the modelRef as their root.
[in] | newModelRef | the model to activate. The modelRef must be from the current master file. |
bool mdlModelRef_areSame | ( | DgnModelRefP | modelRef1, |
DgnModelRefP | modelRef2 | ||
) |
Determines whether two specified modelRefs are actually the same.
[in] | modelRef1 | the first modelRef. |
[in] | modelRef2 | the second modelRef. |
StatusInt mdlModelRef_checkAllRights | ( | DgnModelRefP | modelRef, |
UInt32 | rights, | ||
MessageDestination | displayError | ||
) |
Check if the specified rights are granted to the current user for the given model and all references.
[in] | modelRef | The modelRef to check. |
[in] | rights | the rights to query. See mdlDgnFileObj_checkRights for a description of the rights values. |
[in] | displayError | Determines whether an error should be displayed in the message center, a pop-up dialog, or the function should return silently. |
StatusInt mdlModelRef_checkAllRightsIfDisplayed | ( | DgnModelRefP | modelRef, |
UInt32 | rights, | ||
int | view, | ||
MessageDestination | displayError | ||
) |
Check if the specified rights are granted to the current user for the given model and all references that are displayed in the selected view(s).
[in] | modelRef | The modelRef to check. |
[in] | rights | the rights to query. See mdlDgnFileObj_checkRights for a description of the rights values. |
[in] | view | the view to query or ANY_VIEW. |
[in] | displayError | Determines whether an error should be displayed in the message center, a pop-up dialog, or the function should return silently. |
StatusInt mdlModelRef_checkAllRightsIncludingProtectedRefs | ( | DgnModelRefP | modelRef, |
UInt32 | rights, | ||
MessageDestination | displayError | ||
) |
Check if the specified rights are granted to the current user for the given model and all references, including the references that could not be opened because the user lacked viewing access.
[in] | modelRef | The modelRef to check. |
[in] | rights | the rights to query. See mdlDgnFileObj_checkRights for a description of the rights values. |
[in] | displayError | Determines whether an error should be displayed in the message center, a pop-up dialog, or the function should return silently. |
StatusInt mdlModelRef_copyModel | ( | DgnModelRefP * | returnDestModelRef, |
DgnModelRefP | sourceModelRef, | ||
DgnFileP | destFile, | ||
const WChar * | pDestModelName, | ||
const WChar * | pDestModelDescr | ||
) |
Copy a model from one location to another.
This function handles copying levels, styles, etc. necessary for elements in the model.
[out] | returnDestModelRef | Working model ref for resulting model. If NULL is not passed for this parameter, the resulting modelRef must be freed using mdlModelRef_freeWorking. |
[in] | sourceModelRef | Model to copy. |
[in] | destFile | File in which the model should be written. |
[in] | pDestModelName | Name for the copied model. |
[in] | pDestModelDescr | Description for the copied model; may be NULL. |
StatusInt mdlModelRef_createCacheSpecificWorking | ( | DgnModelRefP * | dgnModelRefP, |
DgnFileP | dgnFileP, | ||
DgnPlatform::ModelId | modelID, | ||
bool | fillCache, | ||
bool | loadRefs, | ||
bool | includeUndisplayedRefs, | ||
DgnPlatform::DgnModelSections | sectionsToFill | ||
) |
Creates a "working" DgnModelRefP containing the specified cache sections that can be passed to functions that take DgnModelRefP arguments.
The ModelRef created must be freed using ~mmdlModelRef_freeWorking. If the file specified as dgnFileP is read-only, then the modelRef will be read-only also.
dgnModelRefP | OUT modelRef referring to the model created |
dgnFileP | IN the file object to search for the model |
modelID | IN the ID of the model to load |
fillCache | IN true if the cache for the model should be filled. Operations like changing name, description, etc., can be performed even if the cache is not filled. |
loadRefs | IN true if the caches for the model's attached references should also be loaded. The fillCache argument must be true for this to work. |
includeUndisplayedRefs | IN If true, load the caches for references that are not displayed. The fillCache and loadRefs arguments must be true for this to work. |
sectionsToFill | IN Specific cache sections to fill. |
StatusInt mdlModelRef_createWorking | ( | DgnModelRefP * | dgnModelRefP, |
DgnFileP | dgnFileP, | ||
DgnPlatform::ModelId | modelID, | ||
bool | fillCache, | ||
bool | loadRefs | ||
) |
Creates a "working" DgnModelRefP that can be passed to functions that take DgnModelRefP arguments.
The ModelRef created must be freed using mdlModelRef_freeWorking. If the file specified as dgnFileP is read-only, then the modelRef will be read-only also.
[out] | dgnModelRefP | modelRef referring to the model created |
[in] | dgnFileP | the file object to search for the model |
[in] | modelID | the ID of the model to load |
[in] | fillCache | true if the cache for the model should be filled. Operations like changing name, description, etc., can be performed even if the cache is not filled. |
[in] | loadRefs | true if the caches for the model's attached references should also be loaded. The fillCache argument must be true for this to work. |
StatusInt mdlModelRef_createWorkingByName | ( | DgnModelRefP * | dgnModelRefP, |
DgnFileP | dgnFileP, | ||
const WChar * | modelNameP, | ||
bool | fillCache, | ||
bool | loadRefs | ||
) |
Creates a "working" DgnModelRefP that can be passed to functions that take DgnModelRefP arguments.
The ModelRef created must be freed using mdlModelRef_freeWorking. If the file specified as dgnFileP is read-only, then the modelRef will be read-only also.
[out] | dgnModelRefP | modelRef referring to the model created |
[in] | dgnFileP | the file object to search for the model |
[in] | modelNameP | the name of the model to find in the design file. |
[in] | fillCache | true if the cache for the model should be filled. Operations like changing name, description, etc., can be performed even if the cache is not filled. |
[in] | loadRefs | true if the caches for the model's attached references should also be loaded. The fillCache argument must be true for this to work. |
StatusInt mdlModelRef_deleteModel | ( | DgnModelRefP | modelRef, |
bool | deleteElements | ||
) |
Deletes the specified model from the file that contains it.
[in] | modelRef | the model to delete. |
[in] | deleteElements | If true, the model will not be deleted unless it is empty. If false, all elements assigned to the model are also deleted. |
StatusInt mdlModelRef_freeWorking | ( | DgnModelRefP | modelRef | ) |
Frees modelRef's created using mdlModelRef_createWorking or mdlModelRef_createWorkingByName.
[in] | modelRef | the modelRef to free. |
DgnModelRefP mdlModelRef_getActive | ( | void | ) |
DgnPlatform::ElementId mdlModelRef_getAttachmentID | ( | DgnModelRefCP | modelRef | ) |
Gets the element ID of the Reference Attachment element for the specified modelRef.
[in] | modelRef | The model to get the attachment element ID for. |
int mdlModelRef_getChildCount | ( | DgnModelRefCP | modelRef, |
int | childTypeMask | ||
) |
Gets the count of models of the specified type that are attached to the specified model.
[in] | modelRef | The model to query. |
[in] | childTypeMask | The type of child that is being counted. Valid values for this argument include:
|
DgnFileP mdlModelRef_getDgnFile | ( | DgnModelRefCP | modelRef | ) |
Gets the DgnFileObj that contains the specified modelRef.
[in] | modelRef | The model to get the design file for. |
DgnModelP mdlModelRef_getDgnModel | ( | DgnModelRefP | modelRef | ) |
Gets a pointer to the DgnModel that holds elements in the model.
[in] | modelRef | The model to get the element cache for. |
ElementRefP mdlModelRef_getElementRef | ( | DgnModelRefP | modelRef, |
UInt32 | filePos | ||
) |
Gets an ElementRefP given a DgnModelRefP and a filePos.
This can also be accomplished by calling mdlModelRef_getDgnModel and then calling the dgnCache_findElemByFilePos.
[in] | modelRef | The model that the filePos pertains to. |
[in] | filePos | File position of the element to return the ElementRefP for. |
UInt32 mdlModelRef_getEof | ( | DgnModelRefP | modelRef | ) |
Gets the EOF (end-of-file) file position for the specified model.
[in] | modelRef | The model to query. |
StatusInt mdlModelRef_getFileName | ( | DgnModelRefP | modelRef, |
WCharP | fileName, | ||
int | fileNameBufSize | ||
) |
Gets the name of the file that contains the data for the specified model.
[in] | modelRef | the model to query. |
[out] | fileName | buffer to hold the file name. |
[in] | fileNameBufSize | size of the buffer (in characters) pointed to by fileName. |
DgnModelRefP mdlModelRef_getParent | ( | DgnModelRefCP | modelRef | ) |
Gets the DgnModelRefP for the model that is the parent of the specified modelRef.
[in] | modelRef | The model to get the parent of. |
DgnModelRefP mdlModelRef_getTransient | ( | ) |
Gets the transient modelRef.
StatusInt mdlModelRef_getUorScaleBetweenModels | ( | double * | pUorFactor, |
DgnModelRefCP | srcModelRef, | ||
DgnModelRefCP | dstModelRef | ||
) |
Gets the scale factor between the UORs of two models.
The scale factor accounts for the resolution (storage unit) differences between the two models, but ignores any reference scale relationship between them. This value can be used to scale elements from the source model before adding them to the destination model so that the real-world size of the elements does not change.
[out] | pUorFactor | The scale factor. |
[in] | srcModelRef | Model ref that elements are to be scaled from. |
[in] | dstModelRef | Model ref that elements are to be scaled to. |
int mdlModelRef_getViewMask | ( | DgnModelRefP | modelRef | ) |
Gets a bitmask representing the views that display the specified modelRef.
[in] | modelRef | the model to get the view bitmask for. |
bool mdlModelRef_inMasterFile | ( | DgnModelRefP | modelRef | ) |
Determines whether the specified modelRef is contained in the master file.
[in] | modelRef | the model to test. |
bool mdlModelRef_is3D | ( | DgnModelRefCP | modelRef | ) |
Determine whether the specified model is three dimensional.
[in] | modelRef | The model to test. |
bool mdlModelRef_isActiveModel | ( | DgnModelRefCP | modelRef | ) |
Determines whether the specified modelRef is the active model.
[in] | modelRef | the model to test. |
bool mdlModelRef_isDefault | ( | DgnModelRefCP | modelRef | ) |
Determines whether the specified model is set as the "default" model.
The default model is the model that becomes active when the file containing that model is first opened.
[in] | modelRef | The model to test. |
bool mdlModelRef_isDisplayedInView | ( | DgnModelRefP | modelRef, |
int | viewIndex | ||
) |
Determines whether the specified DgnPlatform::DgnModelRef is displayed in the specified view.
[in] | modelRef | the the model to query. |
[in] | viewIndex | the view index to test. This value should be in the range of 0 - (DgnPlatform::MAX_VIEWS-1), or the value ANY_VIEW if the test is to see whether it is displayed in any view. |
bool mdlModelRef_isEmpty | ( | DgnModelRefP | modelRef | ) |
Determines whether the specified model is empty.
A model is empty if it contains no graphics elements and no control elements.
[in] | modelRef | The model to test. |
bool mdlModelRef_isNestedReference | ( | DgnModelRefP | modelRef | ) |
Determines whether the specified reference model is attached to another reference model.
[in] | modelRef | the model to test. |
bool mdlModelRef_isReadOnly | ( | DgnModelRefP | modelRef | ) |
Determines whether a modelRef is read-only.
[in] | modelRef | the modelRef to test. |
bool mdlModelRef_isReference | ( | DgnModelRefCP | modelRef | ) |
Determines whether the specified modelRef is a reference model.
[in] | modelRef | The model to test. |
bool mdlModelRef_isSheet | ( | DgnModelRefCP | modelRef | ) |
Determines whether the specified model is a sheet model.
A sheet model is always viewed from the top and typically is used to reference other models for plotting purposes.
[in] | modelRef | The model to test. |
bool mdlModelRef_isTransient | ( | DgnModelRefP | modelRef | ) |
Determines whether the specified modelRef is the transient model.
MicroStation always maintains a "transient" model to hold elements that are displayed on the screen but are not stored permanently in any model.
[in] | modelRef | The model to test. |
StatusInt mdlModelRef_loadReferenceModels | ( | DgnModelRefP | modelRef, |
bool | loadCache, | ||
bool | loadRasterRefs, | ||
bool | loadUndisplayedRefs | ||
) |
Loads the reference models attached to the specified modelRef.
By default, reference models are loaded only for the active modelRef (and its descendants), and child DgnModelRefP's for other modelRefs are not created. When this function is called, the child DgnModelRefPs will be created so they can be iterated using mdlModelRefIterator_create.
[in] | modelRef | The modelRef for which the reference DgnModelRefPs are to be created. |
[in] | loadCache | true if caches should be loaded for reference models, false if only modelRefs should be created. |
[in] | loadRasterRefs | true if raster reference files should be loaded, false if not. |
[in] | loadUndisplayedRefs | true if even undisplayed reference files should be loaded. |
void mdlModelRef_setDefaultBackgroundColor | ( | DgnModelRefP | modelRefP | ) |
Sets the model background color to the default value for that model type.
This has an effect only on sheet models, because there is no default background color for normal models..
[in] | modelRefP | the modelRef for which the default background color is set. |
StatusInt mdlModelRefIterator_create | ( | ModelRefIteratorP * | mrIteratorP, |
DgnModelRefCP | rootModelRef, | ||
int | iteratorType, | ||
int | depth | ||
) |
Creates a ModelRefIterator.
ModelRefIterators are used to iterate through the modelRefs That are attached as references.
[out] | mrIteratorP | Pointer to the ModelRefIteratorP |
[in] | rootModelRef | The root model for the iteration. |
[in] | iteratorType | Determines which type of models are included. The argument should be an OR of one or more of the following values:
|
[in] | depth | The nesting depth. If this value is set to zero, then only the root modelRef (if specified) and the directly attached reference files are included. If this value is -1, then files attached heirarchically (nested reference files) are included as well, and the depth is unlimited. |
StatusInt mdlModelRefIterator_free | ( | ModelRefIteratorP * | mrIteratorP | ) |
Frees a ModelRefIterator.
[in] | mrIteratorP | A pointer to the ModelRefIteratorP to free. The contents of the pointer will be set to NULL by the function. |
DgnModelRefP mdlModelRefIterator_getCurrent | ( | ModelRefIteratorP | mrIterator | ) |
Gets the current modelRef included in the specified iterator.
Does not advance the iterator to the next modelRef.
[in] | mrIterator | The iterator to get the current modelRef from. |
DgnModelRefP mdlModelRefIterator_getFirst | ( | ModelRefIteratorP | mrIterator | ) |
Resets the iterator to the beginning and gets the first modelRef item.
[in] | mrIterator | The iterator to reset and get the first modelRef from. |
mdlModelRefIterator_create (&iterator, masterModelRef, MRITERATE_PrimaryChildRefs, 0);
while (NULL != (modelRef = mdlModelRefIterator_getNext (iterator))) { // do something to each modelRef }
mdlModelRefIterator_free (&iterator); /pre> ""
DgnModelRefP mdlModelRefIterator_getNext | ( | ModelRefIteratorP | mrIterator | ) |
Advances the position of the iterator to the next modelRef and returns the modelRef from that position.
[in] | mrIterator | The iterator to get the next modelRef from. |
mdlModelRefIterator_create (&iterator, masterModelRef, MRITERATE_PrimaryChildRefs, 0);
while (NULL != (modelRef = mdlModelRefIterator_getNext (iterator))) { // do something to each modelRef }
mdlModelRefIterator_free (&iterator); /pre> ""