create_3dcomponent#

Modeler3D.create_3dcomponent(input_file, name=None, variables_to_include=None, assignment=None, boundaries=None, excitations=None, coordinate_systems=None, reference_coordinate_system='Global', is_encrypted=False, allow_edit=False, security_message='', password=None, edit_password=None, password_type='UserSuppliedPassword', hide_contents=False, replace_names=False, component_outline='BoundingBox', export_auxiliary=False, monitor_objects=None, datasets=None, native_components=None, create_folder=True)[source]#

Create a 3D component file.

Parameters:
input_filestr

Full path to the A3DCOMP file.

namestr, optional

Name of the component. The default is None.

variables_to_includelist, optional

List of variables to include. The default is all variables.

assignmentlist, optional

List of object names to export. The default is all object names.

boundarieslist, optional

List of Boundaries names to export. The default is all boundaries.

excitationslist, optional

List of Excitation names to export. The default is all excitations.

coordinate_systemslist, optional

List of Coordinate Systems to export. The default is the reference_cs.

reference_coordinate_systemstr, optional

The Coordinate System reference. The default is "Global".

is_encryptedbool, optional

Whether the component has encrypted protection. The default is False.

allow_editbool, optional

Whether the component is editable with encrypted protection. The default is False.

security_messagestr, optional

Security message to display when component is inserted. The default value is an empty string.

passwordstr, optional

Security password needed when adding the component. The default value is None.

edit_passwordstr, optional

Edit password. The default value is None.

password_typestr, optional

Password type. Options are UserSuppliedPassword and InternalPassword. The default is UserSuppliedPassword.

hide_contentsbool or list, optional

List of object names to hide when the component is encrypted. If set to an empty list or False, all objects are visible.

replace_namesbool, optional

Whether to replace objects and material names. The default is False.

component_outlinestr, optional

Component outline. Value can either be BoundingBox or None. The default is BoundingBox.

export_auxiliarybool or str, optional

Whether to export the auxiliary file containing information about defined datasets and Icepak monitor objects. A destination file can be specified using a string. The default is False.

monitor_objectslist, optional

List of monitor objects’ names to export. The default is the names of all monitor objects. This argument is relevant only if auxiliary_dict_file is not set to False.

datasetslist, optional
List of dataset names to export. The default is all datasets. This argument

is relevant only if auxiliary_dict_file is set to True.

native_componentslist, optional

List of native_components names to export. The default is all native_components. This argument is relevant only if auxiliary_dict_file is set to True.

create_folderBool, optional

If the specified path to the folder where the 3D component should be saved does not exist, then create the folder. Default is True.

Returns:
bool

True when successful, False when failed.

References

>>> oEditor.Create3DComponent