Windchill Workgroup Manager Attribute Functions
SD-UWGM-INQ-SYSTEM-ATTRIBUTE [function]
(sd-uwgm-inq-system-attribute owner name)
- Description:
- Windchill Workgroup Manager
only:
- Returns value of the specified Windchill System Attribute.
-
- Parameters:
-
- owner {SEL-ITEM}
- The owner item for which attribute value is to be inquired.
- name {STRING}
- The name of the Windchill System Attribute.
- Below are the lists of few Windchill System Attributes;
-
- PTC_WM_REVISION
- PTC_WM_ITERATION
- PTC_WM_ORGANIZATION_ID
- PTC_WM_LIFECYCLE
- PTC_WM_LIFECYCLE_STATE
- PTC_WM_CREATED_BY
|
- PTC_WM_CREATED_ON
- PTC_WM_MODIFIED_BY
- PTC_WM_MODIFIED_ON
- PTC_WM_PART_NUMBER
- PTC_WM_PART_NAME
- PTC_WM_LAST_CHANGE_NOTE
|
-
- Return Value:
-
- value - value of the specified Windchill System
Attribute
- nil - if illegal parameter values were supplied or the
attribute has no value
-
- Example:
-
(sd-uwgm-inq-system-attribute (sd-inq-curr-part) "PTC_WM_LIFECYCLE_STATE")
SD-UWGM-INQ-MODEL-ATTRIBUTE [function]
(sd-uwgm-inq-model-attribute owner name)
- Description:
- Windchill Workgroup Manager
only:
- Returns value of the specified Windchill Model Attribute (IBA).
-
- Parameters:
-
- owner {SEL-ITEM}
- The owner item for which attribute value is to be inquired.
- name {STRING}
- The name of the Windchill Model Attribute (IBA).
-
- Return Value:
-
- value - value of the specified Windchill Model
Attribute
- nil - if illegal parameter values were supplied or the
attribute has no value
-
- Example:
-
(sd-uwgm-inq-model-attribute (sd-inq-curr-part) "MY-DESCRIPTION")
SD-UWGM-INQ-STATUS [function]
(sd-uwgm-inq-status element)
- Description:
- Windchill Workgroup Manager
only:
- Returns the Windchill database status of the specified element.
-
- Parameters:
-
- element {SEL-ITEM}
- Element for which the status is to be inquired.
-
- Return Value:
-
- status - Windchill database status of the element
- nil - failure
-
- Example:
-
((sd-uwgm-inq-status (sd-inq-curr-part))
SD-UWGM-INQ-MODIFIED [function]
(sd-uwgm-inq-modified element)
- Description:
- Windchill Workgroup Manager
only:
- Checks whether the element needs to be saved to Windchill.
-
- Parameters:
-
- element {SEL-ITEM}
- Element for which the check is needed.
-
- Return Value:
-
- T - save to Windchill needed
- nil - save to Windchill not needed
-
- Example:
-
(sd-uwgm-inq-modified (sd-inq-curr-part))
SD-UWGM-INQ-CADNAME [function]
(sd-uwgm-inq-cadname owner)
- Description:
- Windchill Workgroup Manager
only:
- Returns the Windchill file name of the specified item.
-
- Parameters:
-
- owner {SEL-ITEM}
- The owner item for which the file name is to be inquired.
-
- Return Value:
-
- file name - file name of the specified item
- nil - failure
-
- Example:
-
(sd-uwgm-inq-cadname (sd-inq-curr-part))
SD-UWGM-INQ-NUMBER [function]
(sd-uwgm-inq-number owner)
- Description:
- Windchill Workgroup Manager
only:
- Returns the Windchill number of the specified item.
-
- Parameters:
-
- owner {SEL-ITEM}
- The owner item for which the number is to be inquired.
-
- Return Value:
-
- number - number of the specified item
- nil - failure
-
- Example:
-
(sd-uwgm-inq-number (sd-inq-curr-part))
SD-UWGM-INQ-COMMONNAME [function]
(sd-uwgm-inq-commonname owner)
- Description:
- Windchill Workgroup Manager
only:
- Returns the Windchill name of the specified item.
-
- Parameters:
-
- owner {SEL-ITEM}
- The owner item for which the name is to be inquired.
-
- Return Value:
-
- number - name of the specified item
- nil - failure
-
- Example:
-
(sd-uwgm-inq-commonname (sd-inq-curr-part))
SD-UWGM-SET-MODEL-ATTRIBUTE [function]
(sd-uwgm-set-model-attribute owner attr-name attr-value)
- Description:
- Windchill Workgroup Manager
only:
- Sets the value of the specified Windchill model attribute(IBA).
-
- Parameters:
-
- owner {SEL-ITEM}
- Owner for which the attribute value is to be set.
- attr-name {STRING}
- String containing the name of the Windchill model attribute for
which the specified value is to be set.
- attr-value {STRING}
- String containing the value to be set on the specified model
attribute.
-
- Return Value:
-
- T - success
- nil - failure
-
- Example:
-
(sd-uwgm-set-model-attribute (sd-inq-curr-part) "My-Description" "Description Text")
SD-UWGM-SET-CADNAME [function]
(sd-uwgm-set-cadname owner file-name)
- Description:
- Windchill Workgroup Manager
only:
- Sets the Windchill file name on the specified item.
-
Note: This function is applicable only to the
items which are not saved to Windchill yet.
- Parameters:
-
- owner {SEL-ITEM}
- Owner for which the file name is to be set.
- file-name {STRING}
- String containing the file name.
-
- Return Value:
-
- T - success
- nil - failure
-
- Example:
-
(sd-uwgm-set-cadname (sd-inq-curr-part) "abc.sdpc")
SD-UWGM-SET-NUMBER [function]
(sd-uwgm-set-number owner number)
- Description:
- Windchill Workgroup Manager
only:
- Sets the Windchill number on the specified item.
-
Note: This function is applicable only to the
items which are not saved to Windchill yet.
- Parameters:
-
- owner {SEL-ITEM}
- Owner for which the file name is to be set.
- number {STRING}
- String containing the number.
-
- Return Value:
-
- T - success
- nil - failure
-
- Example:
-
(sd-uwgm-set-number (sd-inq-curr-part) "123456")
SD-UWGM-SET-COMMONNAME [function]
(sd-uwgm-set-commonname owner name)
- Description:
- Windchill Workgroup Manager
only:
- Sets the Windchill name on the specified item.
-
Note: This function is applicable only to the
items which are not saved to Windchill yet.
- Parameters:
-
- owner {SEL-ITEM}
- Owner for which the file name is to be set.
- name {STRING}
- String containing the name.
-
- Return Value:
-
- T - success
- nil - failure
-
- Example:
-
(sd-uwgm-set-commonname (sd-inq-curr-part) "abc")
© 2023 Parametric
Technology GmbH
(a subsidiary of PTC Inc.), All Rights Reserved |