HyperWorks Desktop

ContentInterface_SetMetadata

ContentInterface_SetMetadata

Previous topic Next topic No expanding text in this topic  

ContentInterface_SetMetadata

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME


ContentInterface_SetMetadata

 

SYNTAX


ContentInterface_SetMetadata <content interface handle> <metadata name> <metadata value>

 

 

TYPE/CLASS


ContentInterface

 

 

DESCRIPTION


Set a metadata value of content

Note:The metadata value needs to be a hwString. Use SetString command.

content interface handle

Content interface handle

metadata name

Metadata name to which you want to set a new value

metadata value

Metadata value to be set

 

EXAMPLES


set gdm [DMDirector_OpenWorkspace $director $ws $repoh 0]

set qryhandle [$gdm GetQuery]

set stringtosearch "MS6000"

set clist [ContentInterfaceList]

set query [$gdm ExecQuery $stringtosearch $clist]

set cilistsize [ContentInterfaceList_size $clist]

set clist_at [ContentInterfaceList_at $clist 0]

set filtype [ContentInterface_GetMetadata $clist_at filetype]

set v [hwVariant]

set val “New_Metadata_value”

$v SetString "$val"

Set status [ContentInterface_SetMetadata [ContentInterfaceList_at $clist 1] filetype $v]

Puts “Status à[hwLMStatus_GetMessage $status]”

 

ERRORS


 

SEE ALSO


ContentInterfaceList

ContentInterfaceList_size

hwLMStatus_GetMessage