poIPart GetMaterialID

Gets the ID of the material related to a component.

Syntax

poIPart_handle GetMaterialID

Application

HyperView Tcl Query

Description

This command returns the ID of the material related to a component.

Example

To get the material ID of a component with id 1:
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 GetMaterialID
hwi CloseStack

Error

Returns 0 if no material ID is found for the component or an error occurred.