Typedefs | Functions

Typedefs

typedef void(* PFAddTagPreWrite )(MSElementP pEl)
 Function callback used by mdlTag_addDescrToCell. More...
 

Functions

int mdlTag_getSetNames (StringListP *stringListPP, int *numSetsP, DgnModelRefP modelRef, int ownerID)
 Retrieves a sorted string list of names of available tag sets in a given design model. More...
 
int mdlTag_createSetDef (WCharCP setNameP, WCharCP rptNameP, int ownerID, DgnTagDefinitionP attrDefsP, int numAttrDefs, DgnModelRefP modelRef)
 Creates a definition for a tag set. More...
 
int mdlTag_setSetDef (WCharCP setNameP, int ownerID, WCharCP newSetNameP, WCharCP reportNameP, DgnModelRefP modelRef)
 Updates the definition of a tag set. More...
 
int mdlTag_getSetDef (DgnTagDefinitionP *attrDefsPP, int *numAttrDefsP, WChar *rptNameP, WCharCP setNameP, int ownerID, DgnModelRefP modelRef)
 Retrieves an array of tag definitions for a given set. More...
 
int mdlTag_getTagDef (DgnTagDefinitionP *attrDefPP, WCharCP setNameP, WCharCP attribNameP, int ownerID, DgnModelRefP modelRef)
 Retrieves the definition of a particular tag within a particular tag set. More...
 
int mdlTag_setTagDef (DgnTagDefinitionP tagDefP, WCharCP setNameP, WCharCP attribNameP, int ownerID, DgnModelRefP modelRef)
 
Changes the definition of an existing

tag in a given set. More...

 
int mdlTag_deleteSetDef (WCharCP setName, int ownerID, DgnModelRefP modelRef)
 Deletes the definition for a tag set. More...
 
void mdlTag_freeTagDef (DgnTagDefinitionP tagDefP)
 
Frees a tag definition and any dynamically

allocated contents. More...

 
void mdlTag_freeTagDefArray (DgnTagDefinitionP tagArrayP, int numTags)
 
Frees an array of tag definitions and any

dynamically allocated contents. More...

 
int mdlTag_addTagDefToSet (DgnTagDefinitionP tagDefP, WCharCP setNameP, int ownerID, DgnModelRefP modelRef)
 Adds a new tag definition to an existing set. More...
 
int mdlTag_deleteTagDef (DgnTagSpecP tagSpec)
 
Deletes a tag definition from an

existing tag set. More...

 
int mdlTag_deleteTagInstances (WCharCP setNameP, WCharCP attribNameP, int ownerID, DgnModelRefP modelRef)
 
Deletes all tag instances, (type 37 elements),

for a given tag definition from the master file. More...

 
int mdlTag_extract (Dpoint3d *origin, Dpoint3d *userOrigin, DgnTagSpecP tagSpec, bool *displayable, DgnTagValueP tagValue, DgnPlatform::ElementId *targetID, DPoint3dP offset, DgnPlatform::TextSizeParam *textSize, RotMatrixP rMatrix, DgnPlatform::TextParamWide *txtParams, MSElementCP element, DgnModelRefP modelRef)
 Extracts information about a tag element. More...
 
void mdlTag_freeValue (DgnTagValueP pTagValue)
 Frees memory to hold certain types of tag value allocated from mdlTag_extract. More...
 
int mdlTag_createVerify (MSElementP pElmOut, MSElementP pElmIn, DgnTagSpecP attrSpec, UShort *attrProps, DgnTagValueP value, DgnPlatform::ElementId *targetTag, DPoint3dP dPoint, DgnPlatform::TextSizeParam *txSizeWd, RotMatrixP rMatrix, DgnPlatform::TextParamWide *txtParams, WCharCP styleName, bool verifyPoint, int elType)
 
Creates a tag element and optionally verfies

the association point. More...

 
int mdlTag_create (MSElementP pElmOut, MSElementP pElmIn, DgnTagSpecP tagSpec, UShort *tagProps, DgnTagValueP value, DgnPlatform::ElementId *targetID, DPoint3dP dPoint, DgnPlatform::TextSizeParam *txSizeWd, RotMatrixP rMatrix, DgnPlatform::TextParamWide *txtParams, WCharCP styleName)
 Creates a tag element. More...
 
int mdlTag_getAssocElement (MSElementP assocElm, DgnModelRefP *modelRef, UInt32 *filePos, MSElementP tagElm)
 Gets the base element to which a tag is attached. More...
 
int mdlTag_getElementTags (MSElementDescrH elemDescrPP, int *numElementDescrs, MSElementCP element, DgnModelRefP modelRef, int ownerID)
 
Gets an element descriptor containing

all the tags attached to a particular element. More...

 
int mdlTag_generateReport (WCharCP fileName, WCharCP setNameP, StringListP tagList, UInt32 exportType, int ownerId)
 Generates an ASCII report file for the indicated tag set. More...
 
bool mdlTag_extractURL (WStringP pStrURL, WStringP pStrDesc, MSElementCP pElement, DgnModelRefP modelRef)
 Get the URL and description from the tagged element. More...
 
int mdlTag_attachURL (MSElementP pElement, UInt32 filePos, WCharCP pStrUrl, WCharCP pStrDesc)
 Attaches a URL web page and a description to an element. More...
 
bool mdlTag_hasInternetTagSet (DgnTagSetSpecP pTagSetSpec)
 This function is used to check whether an internet tag exists on an element. More...
 
int mdlTag_createInternetTagSet (DgnTagSetSpecP pTagSetSpec)
 Adds a tag specification for internet tags into the design file. More...
 
void mdlTag_addDescrToCell (MSElementDescrH tagDscrPP, DgnModelRefP modelRef, DgnPlatform::ElementId elemTag, PFAddTagPreWrite preWriteFunc, bool addToFile)
 Associate tag set with a cell. More...
 

Detailed Description

Typedef Documentation

typedef void(* PFAddTagPreWrite)(MSElementP pEl)

Function callback used by mdlTag_addDescrToCell.

Parameters
[in,out]pElPointer to tag element.
Remarks
Required Library: mdlbltin.lib
See also
mdlTag_addDescrToCell

Function Documentation

void mdlTag_addDescrToCell ( MSElementDescrH  tagDscrPP,
DgnModelRefP  modelRef,
DgnPlatform::ElementId  elemTag,
PFAddTagPreWrite  preWriteFunc,
bool  addToFile 
)

Associate tag set with a cell.

Parameters
[in]tagDscrPPAn element descriptor chain of tags to be associated to the cell. Often acquired by a call to mdlCell_getElmDscr.
[in]modelRefThe model ref containing the cell to which the tags will be written.
[in]elemTagThe unique id of the cell header.
[in]preWriteFuncA function called for each tag before it is written but after it is correctly located. Typically used to change the value. Can be NULL.
[in]addToFileIf true, the tags will be written to the modelRef provided. 2D/3D conversions are handled automatically.
See also
mdlCell_getElmDscr mdlCell_getElmDscrExtended PFAddTagPreWrite
int mdlTag_addTagDefToSet ( DgnTagDefinitionP  tagDefP,
WCharCP  setNameP,
int  ownerID,
DgnModelRefP  modelRef 
)

Adds a new tag definition to an existing set.

Parameters
[in]tagDefPspecifies a pointer to the definition of the new tag.
[in]setNamePspecifies the name of the tag set where the new tag should be added.
[in]ownerIDis an ID value that can distinguish the owner of the tag set. Pass 0 for the default if not using a custom ID value.
[in]modelRefspecifies the design model in which to search for the tag set.
Returns
returns SUCCESS if the set definition was found and the new tag definition was added successfully. Otherwise, an error is returned.
See also
mdlTag_getTagDef mdlTag_setTagDef mdlTag_deleteTagDef
Remarks
Required Library: mdlbltin.lib
int mdlTag_attachURL ( MSElementP  pElement,
UInt32  filePos,
WCharCP  pStrUrl,
WCharCP  pStrDesc 
)

Attaches a URL web page and a description to an element.

Parameters
[in]pElementthe element to attach the URL to.
[in]filePosfile position of the element.
[in]pStrUrlURL specification to attach as an internet tag.
[in]pStrDescdescription of the URL specification.
Returns
SUCCESS if the URL and description were attached.
See also
mdlTag_createInternetTagSet
Remarks
Required Library: mdlbltin.lib
int mdlTag_create ( MSElementP  pElmOut,
MSElementP  pElmIn,
DgnTagSpecP  tagSpec,
UShort tagProps,
DgnTagValueP  value,
DgnPlatform::ElementId *  targetID,
DPoint3dP  dPoint,
DgnPlatform::TextSizeParam *  txSizeWd,
RotMatrixP  rMatrix,
DgnPlatform::TextParamWide *  txtParams,
WCharCP  styleName 
)

Creates a tag element.

Parameters
[out]pElmOutspecifies a pointer to an MSElement structure where the output element will be stored.
[in]pElmInspecifies a pointer to an MSElement to be used as a template for the new tag. Pass NULL if no template element is being supplied.
[in]tagSpecspecifies a pointer to a specification for the definition of the tag.
[in]tagPropsspecifies a mask containing information about the characteristics of the tag. See tagdata.h for possible values for this mask.
[in]valuespecifies a pointer to a value for the tag. If this pointer is NULL, the default value for the tag is retrieved from the tags definition.
[in]targetIDspecifies the id value for the element to which the tag will be attached, if it is attached.
[in]dPointspecifies a pointer to a DPoint3d structure which contains the origin of the tag element if it is not being attached or the offset from the base element if it is being attached. NULL can be passed if there is to be no offset from the base element.
[in]txSizeWdspecifies a pointer to a DgnPlatform::TextSizeParam structure containing the size for the text used to display the tags value. NULL can be passed to indicate that these values should come from the style name or the active settings.
[in]rMatrixspecifies a pointer to a rotation matrix which gives the rotation of the display text. NULL can be passed to indicate that these values should come from the style name or the active settings.
[in]txtParamsspecifies a pointer to a structure containing additional parameters for the text display of the tag's value. NULL can be passed to indicate that these values should come from the style name or the active settings.
[in]styleNamespecifies a pointer to a text style name. NULL can be passed if the text characteristics are to come from the txSizeWd and txtParams arguments or from the active settings.
Returns
returns SUCCESS if the tag was created, and an error otherwise.
See also
mdlTag_createSetDef mdlTag_extract mdlTag_deleteTagInstances
Remarks
Required Library: mdlbltin.lib
int mdlTag_createInternetTagSet ( DgnTagSetSpecP  pTagSetSpec)

Adds a tag specification for internet tags into the design file.

Parameters
[in]pTagSetSpecthe DgnPlatform::DgnTagSetSpec of the internet tag to add to the design file.
Returns
SUCCESS if the tag set was created.
See also
mdlTag_attachURL
Remarks
Required Library: mdlbltin.lib
int mdlTag_createSetDef ( WCharCP  setNameP,
WCharCP  rptNameP,
int  ownerID,
DgnTagDefinitionP  attrDefsP,
int  numAttrDefs,
DgnModelRefP  modelRef 
)

Creates a definition for a tag set.

Parameters
[in]setNamePspecifies the name of the set to be created. Set names must be unique within a design file. The maximum size of a tag set name is defined by TAG_SET_NAME_MAX.
[in]rptNamePis the name of the report file for the set. If the name of the report file is not being set, pass NULL.
[in]ownerIDis an ID value that can distinguish the owner of the tag set. Pass 0 for the default if not using a custom ID value.
[in]attrDefsPspecifies an array of tag definitions.
[in]numAttrDefsnumber of attributes in set
[in]modelRefindicates the model reference that contains the tag set.
Returns
returns SUCCESS if the tag set was successfully created. Otherwise, an error status is returned.
See also
mdlTag_deleteSetDef mdlTag_getSetDef
Remarks
Required Library: mdlbltin.lib
int mdlTag_createVerify ( MSElementP  pElmOut,
MSElementP  pElmIn,
DgnTagSpecP  attrSpec,
UShort attrProps,
DgnTagValueP  value,
DgnPlatform::ElementId *  targetTag,
DPoint3dP  dPoint,
DgnPlatform::TextSizeParam *  txSizeWd,
RotMatrixP  rMatrix,
DgnPlatform::TextParamWide *  txtParams,
WCharCP  styleName,
bool  verifyPoint,
int  elType 
)

Creates a tag element and optionally verfies

the association point.

Parameters
[out]pElmOutspecifies a pointer to an MSElement structure where the output element will be stored.
[out]pElmOutthe attribute element created
[in]pElmInspecifies a pointer to an MSElement to be used as a template for the new tag. Pass NULL if no template element is being supplied.
[in]attrSpecspecifies an attribute to add
[in]attrPropsspecifies the properties of the attribute
[in]valuespecifies a pointer to a value for the attribute. If this pointer is NULL, the default value for the attribute is retrieved from the definition.
[in]targetTagspecifies the target element's tag or NULL.
[in]dPointspecifies a pointer to a DPoint3d structure which contains the origin of the tag element if it is not being attached or the offset from the base element if it is being attached. NULL can be passed if there is to be no offset from the base element.
[in]txSizeWdspecifies a pointer to a DgnPlatform::TextSizeParam structure containing the size for the text used to display the tags value. NULL can be passed to indicate that these values should come from the style name or the active settings.
[in]rMatrixspecifies a pointer to a rotation matrix which gives the rotation of the display text. NULL can be passed to indicate that these values should come from the style name or the active settings.
[in]txtParamsspecifies a pointer to a structure containing additional parameters for the text display of the tag's value. NULL can be passed to indicate that these values should come from the style name or the active settings.
[in]styleNamespecifies a pointer to a text style name. NULL can be passed if the text characteristics are to come from the txSizeWd and txtParams arguments or from the active settings.
[in]verifyPointif true, the association point is verified before the function returns to the caller.
[in]elTypethe element type to associate to
Returns
returns SUCCESS if the tag was created, and an error otherwise.
See also
mdlTag_createSetDef mdlTag_extract mdlTag_deleteTagInstances
Remarks
Required Library: mdlbltin.lib
int mdlTag_deleteSetDef ( WCharCP  setName,
int  ownerID,
DgnModelRefP  modelRef 
)

Deletes the definition for a tag set.

Parameters
[in]setNamespecifies the name of the set to be deleted. The maximum size of a tag set name is defined by TAG_SET_NAME_MAX.
[in]ownerIDis an ID value that can distinguish the owner of the tag set. Pass 0 for the default if not using a custom ID value.
[in]modelRefindicates the model reference that contains the tag set.
Returns
returns SUCCESS if the tag set was successfully deleted. Otherwise, an error is returned.
See also
mdlTag_createSetDef mdlTag_getSetDef
Remarks
Required Library: mdlbltin.lib
int mdlTag_deleteTagDef ( DgnTagSpecP  tagSpec)

Deletes a tag definition from an

existing tag set.

mdlTag_deleteTagInstances should always be called before this function, since tags should be deleted when their definition is deleted.

Parameters
[in]tagSpecspecifies a pointer to the specification for the tag.
Returns
returns SUCCESS if the tag definition was found and successfully deleted. Otherwise, an error is returned.
See also
mdlTag_getTagDef mdlTag_setTagDef mdlTag_addTagDefToSet mdlTag_deleteTagInstances
Remarks
Required Library: mdlbltin.lib
int mdlTag_deleteTagInstances ( WCharCP  setNameP,
WCharCP  attribNameP,
int  ownerID,
DgnModelRefP  modelRef 
)

Deletes all tag instances, (type 37 elements),

for a given tag definition from the master file.

mdlTag_deleteTagInstances should always be called before a call to mdlTag_deleteTagDef since tags should be deleted when their definition is deleted.

Parameters
[in]setNamePspecifies the name of the set for the tag.
[in]attribNamePspecifies the name of the tag.
[in]ownerIDis an ID value that can distinguish the owner of the tag set. Pass 0 for the default if not using a custom ID value.
[in]modelRefspecifies the design model in which to search for the tag set.
Returns
returns SUCCESS if the tag element(s) are found and successfully deleted. Otherwise, an error is returned.
See also
mdlTag_getTagDef mdlTag_deleteTagDef mdlTag_setTagDef mdlTag_addTagDefToSet
Remarks
Required Library: mdlbltin.lib
int mdlTag_extract ( Dpoint3d origin,
Dpoint3d userOrigin,
DgnTagSpecP  tagSpec,
bool *  displayable,
DgnTagValueP  tagValue,
DgnPlatform::ElementId *  targetID,
DPoint3dP  offset,
DgnPlatform::TextSizeParam *  textSize,
RotMatrixP  rMatrix,
DgnPlatform::TextParamWide *  txtParams,
MSElementCP  element,
DgnModelRefP  modelRef 
)

Extracts information about a tag element.

Any of the output parameters can be NULL, indicating the caller does not care about that piece of information.

Parameters
[out]originthe origin of the tag element if it is not associated (attached) to another element. If it is attached to another element, origin is the origin of that element.
[out]userOriginthe tag element's snap point.
[out]tagSpecspecification for the definition of the tag.
[out]displayabletrue if the tag is displayed else false
[out]tagValuethe tag value.
[out]targetIDif attached, then the DgnPlatform::ElementId of the element to which the tag is attached.
[out]offsetif attached, then the offset of the tag element from its base element. origin + offset is the user origin of the tag.
[out]textSizetext size parameters - used when tag is displayed.
[out]rMatrixrotation matrix - used when tag is displayed.
[out]txtParamstext wide params - used when tag is displayed.
[in]elementtag element from which the values are extracted.
[in]modelRefmodel that contains the element.
Returns
SUCCESS if the values are successfully extracted. Otherwise, an error is returned.
See also
mdlTag_create
Remarks
Required Library: mdlbltin.lib
bool mdlTag_extractURL ( WStringP  pStrURL,
WStringP  pStrDesc,
MSElementCP  pElement,
DgnModelRefP  modelRef 
)

Get the URL and description from the tagged element.

Parameters
[out]pStrURLactual URL, pass NULL if you don't care
[out]pStrDescactual Description, NULL if not needed
[in]pElementElement to extract URL from.
[in]modelRefmodel for set
Returns
false if the element has no tags.
Remarks
Required Library: mdlbltin.lib
void mdlTag_freeTagDef ( DgnTagDefinitionP  tagDefP)

Frees a tag definition and any dynamically

allocated contents.

Parameters
[in,out]tagDefPspecifies the tag definition to free.
See also
mdlTag_freeTagDefArray mdlTag_getTagDef
Remarks
Required Library: mdlbltin.lib
void mdlTag_freeTagDefArray ( DgnTagDefinitionP  tagArrayP,
int  numTags 
)

Frees an array of tag definitions and any

dynamically allocated contents.

Parameters
[in]tagArrayPspecifies the array of tag definitions to free.
[in]numTagsspecifies the number of tags in the array.
See also
mdlTag_freeTagDef mdlTag_getSetDef
Remarks
Required Library: mdlbltin.lib
void mdlTag_freeValue ( DgnTagValueP  pTagValue)

Frees memory to hold certain types of tag value allocated from mdlTag_extract.

Parameters
[in]pTagValuetag value to be freed
Remarks
Required Library: mdlbltin.lib
int mdlTag_generateReport ( WCharCP  fileName,
WCharCP  setNameP,
StringListP  tagList,
UInt32  exportType,
int  ownerId 
)

Generates an ASCII report file for the indicated tag set.

Parameters
[in]fileNamethe file name with path where the report will be generated. Even though the filename is specified in the tag set, fileName is the fully- qualified filename, specifying more information than the tag set contains. If the name specified in fileName disagrees with the name in the tag set, fileName takes priority.
[in]setNamePspecifies the name of the tag set which should be reported on.
[in]tagListspecifies a string list containing the names of the columns for the report. The columns of the report will appear in the same order as the strings in the string list.
[in]exportTypeis either TAG_EXPORT_TAGGED or TAG_EXPORT_ALL, indicating whether only tagged elements are reported on or all elements are reported on, respectively.
[in]ownerIdis an ID value that can distinguish the owner of the tag set. Pass 0 for the default if not using a custom ID value.
Returns
returns SUCCESS if the report is successfully generated. Otherwise, an error is returned.
See also
mdlTag_setSetDef
Remarks
Required Library: mdlbltin.lib
int mdlTag_getAssocElement ( MSElementP  assocElm,
DgnModelRefP *  modelRef,
UInt32 filePos,
MSElementP  tagElm 
)

Gets the base element to which a tag is attached.

Parameters
[out]assocElmspecifies the base element for the tag.
[in]modelRefspecifies the design model containing the tag element whose base element should be obtained. The model reference of the base element is returned back if it is different from the tag element.
[out]filePosspecifies the file position for the base element. NULL can be passed if the file position is not needed.
[in]tagElmspecifies the tag element whose base element should be obtained.
Remarks
This function was implemented in MicroStation 95.
Returns
returns SUCCESS if the base element is successfully retrieved. Otherwise, an error is returned.
See also
mdlTag_create
Remarks
Required Library: mdlbltin.lib
int mdlTag_getElementTags ( MSElementDescrH  elemDescrPP,
int *  numElementDescrs,
MSElementCP  element,
DgnModelRefP  modelRef,
int  ownerID 
)

Gets an element descriptor containing

all the tags attached to a particular element.

Parameters
[out]elemDescrPPspecifies an element descriptor containing all the tag elements attached to a base element.
[out]numElementDescrsspecifies the number of tags retrieved.
[in]elementspecifies a pointer to the element for which to get tags.
[in]modelRefindicates the model containing the input element for which to get tags.
[in]ownerIDis an ID value that can distinguish the owner of the tag set. Pass 0 for the default if not using a custom ID value.
Returns
returns SUCCESS if the tags are successfully collected or no tags existed. Otherwise, an error is returned.
See also
mdlTag_create
Remarks
Required Library: mdlbltin.lib
int mdlTag_getSetDef ( DgnTagDefinitionP *  attrDefsPP,
int *  numAttrDefsP,
WChar *  rptNameP,
WCharCP  setNameP,
int  ownerID,
DgnModelRefP  modelRef 
)

Retrieves an array of tag definitions for a given set.

Parameters
[out]attrDefsPPspecifies a tag definition pointer which points to the array of tag definitions found. MicroStation allocates the memory for tagDefs, and the calling application should free it by calling mdlTag_freeTagDefArray when it is no longer needed.
[out]numAttrDefsPis a pointer to an integer indicated the number of attributes that exist in the tag set.
[out]rptNamePis the name of the report file for the set.
[in]setNamePspecifies the set whose tag definitions should be retrieved.
[in]ownerIDis an ID value that can distinguish the owner of the tag set. Pass 0 for the default if not using a custom ID value.
[in]modelRefspecifies the design model in which to search for the tag set.
Returns
returns SUCCESS if the definition of the tag set was found. Otherwise, an error is returned.
See also
mdlTag_createSetDef mdlTag_deleteSetDef
Remarks
Required Library: mdlbltin.lib
int mdlTag_getSetNames ( StringListP *  stringListPP,
int *  numSetsP,
DgnModelRefP  modelRef,
int  ownerID 
)

Retrieves a sorted string list of names of available tag sets in a given design model.

Parameters
[out]stringListPPstring list of names
[out]numSetsPnumber of sets found.
[in]modelRefmodelref of set.
[in]ownerIDan ID value that can distinguish the owner of the tag set. Pass 0 for the default if not using a custom ID value.
Returns
SUCCESS if the design file contains at least one tag set and the string list was successfully created. Otherwise, an error is returned.
See also
mdlTag_createSetDef mdlTag_getSetDef mdlTag_deleteSetDef
Remarks
Required Library: mdlbltin.lib
int mdlTag_getTagDef ( DgnTagDefinitionP *  attrDefPP,
WCharCP  setNameP,
WCharCP  attribNameP,
int  ownerID,
DgnModelRefP  modelRef 
)

Retrieves the definition of a particular tag within a particular tag set.

Parameters
[out]attrDefPPspecifies a pointer to a tag definition which points to the tag definition found. MicroStation allocates memory for tagDef, so the calling application should free this memory using mdlTag_freeTagDef when no longer needed.
[in]setNamePspecifies the name of the set for the tag desired.
[in]attribNamePspecifies the name of the tag whose definition should be retrieved.
[in]ownerIDis an ID value that can distinguish the owner of the tag set. Pass 0 for the default if not using a custom ID value.
[in]modelRefspecifies the design model in which to search for the tag set.
Returns
returns SUCCESS if the specified tag definition was found. Otherwise, an error is returned.
See also
mdlTag_setTagDef mdlTag_addTagDefToSet mdlTag_freeTagDef
Remarks
Required Library: mdlbltin.lib
bool mdlTag_hasInternetTagSet ( DgnTagSetSpecP  pTagSetSpec)

This function is used to check whether an internet tag exists on an element.

Parameters
[out]pTagSetSpecreturn the DgnPlatform::DgnTagSetSpec of the internet tag attached to the element.
Returns
true if the element has an internet tag attached, false otherwise.
See also
mdlTag_createInternetTagSet
Remarks
Required Library: mdlbltin.lib
int mdlTag_setSetDef ( WCharCP  setNameP,
int  ownerID,
WCharCP  newSetNameP,
WCharCP  reportNameP,
DgnModelRefP  modelRef 
)

Updates the definition of a tag set.

Parameters
[in]setNamePspecifies the name of the set to update.
[in]ownerIDis an ID value that can distinguish the owner of the tag set. Pass 0 for the default if not using a custom ID value.
[in]newSetNamePspecifies the new name for the set. If the name of the set is not being changed, pass NULL.
[in]reportNamePis the name of the report file for the set. If the name of the report file is not being changed, pass NULL.
[in]modelRefindicates the model reference that contains the tag set.
Returns
returns SUCCESS if the set definition is successfully updated. Otherwise, an error is returned.
See also
mdlTag_createSetDef mdlTag_addTagDefToSet
Remarks
Required Library: mdlbltin.lib
int mdlTag_setTagDef ( DgnTagDefinitionP  tagDefP,
WCharCP  setNameP,
WCharCP  attribNameP,
int  ownerID,
DgnModelRefP  modelRef 
)

Changes the definition of an existing

tag in a given set.

The tag set and the tag definition must already exist.

Parameters
[in]tagDefPspecifies a pointer to the new definition for the tag.
[in]setNamePspecifies the name of the tag set containing the tag.
[in]attribNamePspecifies the name of the tag to be set.
[in]ownerIDis an ID value that can distinguish the owner of the tag set. Pass 0 for the default if not using a custom ID value.
[in]modelRefspecifies the design model in which to search for the tag set.
Returns
returns SUCCESS if the tag definition is found and successfully set. Otherwise, an error is returned.
See also
mdlTag_getTagDef mdlTag_addTagDefToSet
Remarks
Required Library: mdlbltin.lib

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