poIPart GetMaterialName
Gets the name of the material related to a component.
Syntax
poIPart_handle GetMaterialName
Application
HyperView Tcl Query
Description
This command returns the name of the material related to a component.
Example
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
client_handle GetModelHandle model_handle [client_handle GetActiveModel]
model_handle GetPartHandle part_handle "Part 1"
part_handle GetMaterialName
hwi CloseStack
Error
Returns an empty string if no material name is found for the component or an error occurred.