flatten_3d_components#

Mechanical.flatten_3d_components(component_name=None, purge_history=True, password='')[source]#

Flatten one or multiple 3d components in the actual layout. Each 3d Component is replaced with objects. This function will work only if the reference coordinate system of the 3d component is the global one.

Parameters:
component_namestr, list, optional

List of user defined components. Default is None for all 3d Components.

purge_historybool, optional

Define if the 3D Component will be purged before copied. This is needed when more than 1 component with the same definition is present.

passwordstr, optional

Password for encrypted 3d component.

Returns:
bool

True if succeeded.