| Visual Basic | |
|---|---|
Function GetFirstAttributePosition( _ ByVal bsFileExtension As System.String _ ) As IEdmPos5 | |
| C# | |
|---|---|
IEdmPos5 GetFirstAttributePosition( System.string bsFileExtension ) | |
| C++/CLI | |
|---|---|
IEdmPos5^ GetFirstAttributePosition( & System.String^ bsFileExtension ) | |
Parameters
- bsFileExtension
- Extension of file for which to get attributes, e.g., "DWG" or "DOC"; "" to get all attributes for all file types
Return Value
IEdmPos5; position of the first attribute in the enumerationA variable in SOLIDWORKS PDM Professional can be mapped to zero or more block-attribute pairs. SOLIDWORKS PDM Professional uses the attributes when transferring data between the file data card and the file, itself. See the main SOLIDWORKS PDM Professional online help for more information.
After calling this method, pass the returned position of the first attribute to IEdmVariable5::GetNextAttribute to get the first attribute in this list. Then call IEdmVariable5::GetNextAttribute repeatedly to get the rest of the attributes.
C++ users not using smart-pointer wrapper functions must release the returned interface, IEdmPos5.
- S_OK: The method successfully executed.
SOLIDWORKS PDM Professional Version 5.2