MultiPartComponent#
- class ansys.aedt.core.modeler.advanced_cad.multiparts.MultiPartComponent(comp_folder, name=None, use_relative_cs=False, relative_cs_name=None, motion=False, offset=('0', '0', '0'), yaw='0deg', pitch='0deg', roll='0deg')#
Supports multi-part 3D components for HFSS SBR+.
Note
Forward motion is in the X-axis direction if motion is set.
- Parameters:
- comp_folder
str Full path to the folder with the JSON file containing the component definition. This JSON file must have the same name as the folder.
- name
str,optional Name of the multipart component. If this value is set, the component is selected from the corresponding JSON file in
comp_folder. The default isNone, in which case the name of the first JSON file in the folder is used.- use_relative_csbool,
optional Whether to use the relative coordinate system. The default is
False. Set toFalseif the multi-part component doesn’t move. Set toTrueif the multi-part component moves relative to the global coordinate system.- relative_cs_name
str,optional Name of the coordinate system to connect the multipart relative system to when
use_relative_cs=True.- motionbool,
optional Whether expressions should be used to define the position and orientation of the multi-part component. The default is
False.- offset
list,optional List of
[x, y, z]coordinate values defining the component offset. The default is["0", "0", "0"].- yaw
strorfloat,optional Yaw angle, indicating the rotation about the component’s Z-axis. The default is
"0deg".- pitch
strorfloat,optional Pitch angle, indicating the rotation about the component Y-axis The default is
"0deg".- roll
strorfloat,optional Roll angle, indicating the rotation about the component X-axis. The default is
"0deg".- roll
strorfloat,optional Roll angle, indicating the rotation about the component’s X-axis. The default
- comp_folder
Methods
MultiPartComponent.insert(app[, motion])Insert the object in HFSS SBR+.
Set up design variables and values to enable motion for the multi-part 3D component.
Initialize app for SBR+ simulation.
Attributes
Coordinate system name.
Number of multi-part components.
Unique instance name.
Offset values for the multi-part component.
X-, Y-, and Z-axis offset names.
X-axis offset name.
Y-axis offset name.
Z-axis offset name.
Pitch variable value.
Pitch variable name.
Shortcut for dir(self).
Roll variable value.
Roll variable name.
Global coordinate system.
Yaw variable value.
Yaw variable name.