*setoption
Sets various option values.
Syntax
*setoption <option>=<value>
Type
HyperMesh Tcl Modify
Description
Sets various option values.
Inputs
- <option>=<value>
- The name of the option and the corresponding value to assign. Valid options and values
are as follows:
- 1d_at_centroid=<value>
- Controls whether the 3D representation of 1D elements is relative to the centroid or the shear center. Valid values are:
- alt_lmb_rmb_binding=<value>
- Select action for Alt key and left + right mouse button drag.
- alt_mmb_binding=<value>
- Select action for Alt key and middle mouse button drag.
- alt_rmb_binding=<value>
- Select action for Alt key and right mouse button drag.
- anti_alisasing=<value>
- Sets the anti-aliasing mode:
- auto_cleanuptol=<value>
- Sets the geometry cleanup calculation mode. Valid values are:
- auto_elementsize=<value>
- Sets the element size calculation mode. Valid values are:
- auto_nodetol=<value>
- Sets the node tolerance calculation mode. Valid values are:
- auto_mesh_color_mode=<value>
- Sets the auto mesh color mode for mesh lines. Valid values are:
- background_colors-<item>={<r> <g> <b>}
- The colors for the gradient background. The actual RGB values are not used. The closest of the standard 64 colors are selected based on the RGB values.
- bitmap_animation=<value>
- The bitmap animation graphics mode. Valid values are:
- block_error_messages=<value>
- Controls the display of error messages.
- block_messages=<value>
- Controls the display of info messages.
- block_redraw=<value>
- Controls the graphics redraw. When the redraw operation is blocked, HyperWorks Desktop will not redraw unless the size of its window changes or it is de-iconified or maximized. When the redraw operation is unblocked, HyperWorks Desktop returns to normal.
- buffer_command_file=<value>
- Controls the command file writing state.
- cleanup_tolerance=<value>
- The geometry cleanup tolerance used for geometry creation and editing operations.
- clip_boundary_elements=<value>
- The boundary element display mode for hidden line, section cut and spherical clipping.
- ctrl_lmb_rmb_binding=<value>
- Select action for Ctrl key and left + right mouse button drag.
- ctrl_mmb_binding=<value>
- Select action for Ctrl key and middle mouse button drag.
- ctrl_rmb_binding=<value>
- Select action for Ctrl key and right mouse button drag.
- coincident_picking=<value>
- The state of coicident graphical picking.
- command_file_state=<value>
- The state of writing to the command file.
- contact_surface_peak_factor=<value>
- The factor for scaling the contact surface graphical height.
- contact_surface_percent=<value>
- The percent of the element size to use for scaling the contact surface graphical length and width.
- contour_type=<value>
- The result color mode.
- delete_discrete_topology_mode=<value>
- Select a remeshing method for revising modified discrete topology.
- delete_elements_mode=<value>
- The remesh setting for topology revision.
- detailed_elements=<value>
- The 3D visualization mode for 1D/2D elements.
- detailed_elements_beamvis=<value>
- The 3D visualization mode for 1D elements.
- detailed_elements_shellvis=<value>
- The 3D visualization mode for 2D elements.
- display_color-<item>=<value>
- The color for various objects. Valid values are 1-64. A value of 0 indicates to set the color of that object to the background color value.
- display_import_errors=<value>
- Defines whether the import process errors/warnings are displayed in a Tcl window in HyperWorks Desktop.
- domain_handle=<value>
- The display of domain handles.
- duplicate_ids=<value>
- Defines whether duplicate entity IDs are allowed for supported solvers.
- dynamic_center_of_rotation=<value>
- Dynamic center during model rotation. values are 1 or 0.
- edge_lod_threshold=<value>
- The zoom level required to make geometry lines visible, as an integer value from 0-10. 0 means geometry lines are always visible. Smaller values indicate minimal zoom is needed. Higher values mean more zoom is needed.
- edge_lod_width_auto=<value>
- Defines whether to enable edge LOD auto mode.
- element_color_mode=<value>
- The element color mode value:
- 1 - By component
- 2 - By property
- 3 - By material
- 4 - By thickness
- 5 - 1D/2D/3D
- 6 - By config
- 7 - By assembly
- 8 - Reserved for future use
- 9 - By element quality
- 10 - By thickness difference
- 11 - Reserved for future use
- 12 - Reserved for future use
- 13 - By domain
- 14 - Reserved for future use
- 15 - Reserved for future use
- 16 - By part
- element_connectivity=<value>
- Select how newly created elements and any adjacent existing elements are connected.
- element_handle=<value>
- The display of element handles.
- element_internal_edges_mode=<value>
- The element internal edges visualization mode. This only applies to the two wireframe modes supported by *setdisplayattributes/*setmarkdisplayattributes.
- element_order=<value>
- The order of newly created elements.
- element_organization=<value>
- Select in which component the newly created elements are placed.
- element_size=<value>
- The default element size to use when calculating element densities in the auto-meshing module.
- entity_highlighting=<value>
- The mode for pre-highlighting selected entities.
- equation_handle=<value>
- The display of equation handles.
- exponential_display=<value>
- The display of floating-point numbers in the menu as standard or exponential.
- exponential_display=<value>
- The display of floating-point numbers in the menu as standard or exponential.
- feature_angle=<value>
- The feature angle used for mesh creation and editing operations.
- fe_display=<value>
- 0 - Turns off FE display without changing the state of components.
- feoutput_time_info=<value>
- Generates a text file containing export time info for FE entities. The file is written to the same directory as the exported file, with the name <export_file_name>_timing.txt.
- fixed_point_handle=<value>
- The display of fixed point handles.
- force_text_black=<value>
- The display of graphical text between black and white. By default, text in HyperWorks Desktop is displayed in white. However white text is not always legible, especially when users change the background color to a lighter color.
- geom_display=<value>
- 0 - Turns off geometry display without changing the state of components.
- geom_feature_angle=<value>
- The geometry feature angle used for geometry creation and editing operations.
- geom_point_size=<value>
- Sets the size of the geometry points, between 1 and 10 (default 4).
- geom_refine_level=<value>
- The refinement level for geometry graphical faceting. Valid values are 1-5 and 11 (which indicates auto refinement). Each level increases the refinement, but also uses more memory and takes more time to compute.
- geom_stitching=<value>
- The automatic stitching mode when creating surfaces. This applies to all surface creation commands.
- graphics_file_blank_background=<value>
- The graphics file image background color mode.
- graphics_simplification_component=<value>
- The graphics simplification component.
- graphics_simplification_mode={<mode> <style>}
- The graphics simplification mode. This produces smoother animation when rotating or panning a model by refraining from calculating and rendering some model elements until the model manipulation stops.
- hide_panels_automatically=<value>
- 0 - Do not hide panels automatically.
- history_memory_limit=<value>
- The amount of memory to allow for undo-redo.
- hv_launch_flag=<value>
- Controls the launching of HyperView after an H3D creation.
- legend_beyond_threshold=<value>
- The visualization for elements beyond the legend threshold.
- lighting_mode=<value>
- The lighting mode.
- line_handle=<value>
- The display of line handles.
- lmb_rmb_binding=<value>
- Select action for left + right mouse button drag.
- load_base_size=<value>
- Change the base size of loads.
- load_handle=<value>
- The display of load handles.
- load_label-<config>=<value>
- The display of load labels.
- load_label_color=<value>
- The load label color. Valid values are 1-64. A value of 0 indicates to set the color to the background color value.
- load_max_size=<value>
- Change the maximum size of loads.
- load_min_size=<value>
- Change the minimum size of loads.
- load_new_scaling=<value>
- Set new scaling options
- load_scale_type=<value>
- Set scale type fixed or limits on load entities.
- load_size_magnitude-<config>=<value>
- The load display percentage when load_size_type is 1.
- load_size_type-<config>=<value>
- 0 - Uniform display
- load_size_uniform-<config>=<value>
- The load display size in model units when load_size_type is 0.
- load_solver_label=<value>
- The label type for elements and loads.
- load_visual_vector=<value>
- The location of the vector in relation to the attachment location.
- lod_threshold=<value>
- The zoom level required to make element handles visible, as an integer value from 0-10. 0 means element handles are always visible. Smaller values indicate minimal zoom is needed. Higher values mean more zoom is needed.
- mesh_line_color=<value>
- The mesh line color. Valid values are 1-64.
- mesh_lod_threshold=<value>
- The zoom level required to make element mesh lines visible, as an integer value from 0-10. 0 means mesh lines are always visible. Smaller values indicate minimal zoom is needed. Higher values mean more zoom is needed.
- mesh_transparency=<value>
- The mesh transparency as a double value from 0-10. 0 means no transparency. Smaller values indicate minimal transparency. Higher values mean more transparency.
- mixed_property_warning=<value>
- The state of the mixed direct/indirect property assignment warning dialog.
- mmb_binding=<value>
- Select action for middle mouse button drag.
- mouse_append_mode=<value>
- Always add to the current selection in idle mode without holding Ctrl.
- mouse_mapping=<value>
- Set current mouse controls.
- mouse_over_highlighting=<value>
- Highlight entities on mouse hover.
- node_size=<value>
- Sets the size of the nodes, between 1 and 10 (default 6).
- node_tolerance=<value>
- The global node tolerance. Must be greater than cleanup_tolerance/100.
- num_history_steps=<value>
- The maximum number of undo-redo steps to store in memory.
- number_remesh_layers=<value>
- Number of layers for advanced remesh.
- performance_normal=<value>
- The light setting, based on the direction of element normals.
- perspective_fov=<value>
- The perspective field of view.
- perspective_view=<value>
- The state of the perspective view.
- pick_tolerance=<value>
- The picking tolerance in pixels which the cursor must be within before an entity is selected.
- ply_link_color_and_orientation=<value>
- Auto update of colors based on ply orientation.
- ply_thickness_factor=<value>
- The ply thickness scale factor for composite layer visualization. This applies for show_composite_layers values 1 and 2.
- pr_auto_preserve_connections=<value>
- 1 - Preserve the internal connections.
- pr_box_approach_node_set=<value>
- 0 - Proximity approach will be used to find the replacement nodes to update the SETS of type NODES. (default).
- pr_check_log=<value>
- 0 - Do not allow the user to provide a file path to log replacement details. (default 0)
- pr_custom_bbox_for_equivalence=<value>
- Custom tolerance for bounding box can be provided for connecting the 1D elements from incoming file to source components
- pr_delete_src_comp=<value>
- 0 - Delete existing component.
- pr_invoke_model_checker=<value>
- 0 - Do not invoke a Model Checker browser (default).
- pr_keep_src_comp_cardimage=<value>
- 0 - Do not copy existing component card image to incoming component.
- pr_keep_src_comp_id=<value>
- 0 - Do not assign existing component ID to incoming component.
- pr_keep_src_comp_name=<value>
- 0 - Do not assign existing component Name to incoming component.
- pr_keep_src_ent_type=<value>
- 0 – Do not assign existing component element type to incoming component element type (default).
- pr_keep_src_include=<value>
- 0 - Organize incoming entities to new include.
- pr_keep_src_mat=<value>
- 0 – Do not assign existing component material to incoming component.
- pr_keep_src_prop=<value>
- 0 – Do not assign the existing component material/property to incoming component.
- pr_merge_nodes=<value>
- 0 - Do not merge the nodes present on the boundaries of incoming component (default).
- pr_retain_plotel_elem_nodeIds_from_src_comp=<value>
- The node IDs of the source component can be retained if its nodes have comments.
- pr_show_component_pairing=<value>
- 0 - Do not show component pairing (default ).
- retain_loads=<value>
- Keep/delete loads when associated nodes/elements are deleted.
- reverse_zoom_direction=<value>
- Reverse scroll wheel direction.
- rmb_binding=<value>
- Select action for right mouse button drag.
- rotation_angle=<value>
- The rotation angle used by various view commands.
- rotation_center_mode=<value>
- The rotation mode.
- rotation_center_off_screen=<value>
- Defines if the rotation center is allowed to be off screen.
- scale_color=<value>
- The color of the modeling window model scale. Valid values are 1-64.
- scale_height=<value>
- The height of the modeling window model scale. Valid values are S (for small), M (for medium) and L (for large).
- scale_position=<value>
- The position of the modeling window model scale. Valid values are bottomleft, bottom, bottomright, centerleft, center, centerright, topleft, top, topright.
- scale_width=<value>
- The width of the modeling window model scale. Valid values are S (for small), M (for medium) and L (for large).
- shift_lmb_rmb_binding=<value>
- Select action for Shift key and left + right mouse button drag.
- shift_mmb_binding=<value>
- Select action for Shift key and middle mouse button drag.
- shift_rmb_binding=<value>
- Select action for Shift key and right mouse button drag.
- show_composite_layers=<value>
- The composite layers visualization mode.
- show_global_axes=<value>
- The global axes visualization mode.
- show_line_dir=<value>
- Displays symbols indicating geometry lines parametric direction.
- show_model_title=<value>
- Show the file path of the current model in the graphics area.
- show_plots=<value>
- Show plots when loading the model.
- show_scale=<value>
- The scale visualization mode.
- shrink_factor=<value>
- The element shrink factor, between 0 and 1.
- shrink_mode=<value>
- The state of the element shrink mode.
- solid_transparency=<value>
- The solid geometry transparency value 0-10.
- solid_edge_width=<value>
- The solid geometry edge width 1.0-10.0. 2.5 is the legacy value.
- specular_intensity=<value>
- The specular intensity value.
- stereo_display=<value>
- The normal (2D) or stereo (3D) display mode.
- surface_edge_width=<value>
- The solid geometry edge width 1.0-10.0. 1.0 is the legacy value.
- surface_uv_lines=<value>
- The number of uv lines to draw on surfaces for *settopologydisplaytype 3. Must be between 0 and 20.
- system_size_uniform=<value>
- The size in model units in which systems will be drawn.
- tag_display=<value>
- The graphical display mode for tag entities.
- tag_text_display_mode=<value>
- The text display mode for tag entities. Valid values are:
- thick_1d_lines=<value>
- The state of 1D element line graphical thickness.
- thick_mesh_lines=<value>
- The state of mesh line graphical thickness.
- thickness_legend_colors={<color1> <color2> ... <colorN>}
- The colors for the thickness legend. A color can be specified for each row. Valid values are 1-64.
- thickness_legend_rows=<value>
- The number of rows for the thickness legend.
- thickness_legend_values={<value1> <value2> ... <valueN>}
- The values for the thickness legend. A value can be specified for each row. Values should be specified in order.
- topoedgecolor=<value>
- The FE topology and geometry topology edge colors:
- topofacecolor=<value>
- The FE topology and geometry topology face colors:
- topofacemode=<value>
- The FE topology and geometry topology face mode:
- topology_display_mode=<value>
- The geometry color mode.
- 0 - Automatic. The color switches between topology colors and component colors, based on specific panels.
- 1 - By component
- 2 - By topology
- 3 - By 2D topology. 3D geometry is colored using the "ignored (topo)" color.
- 4 - By 3D topology. 2D geometry is colored using the "ignored (topo)" color.
- 5 - Mixed. Geometry edges are colored using topology colors, while shaded surfaces use component colors.
- 6 - Mappable. Solids are colored using the mappable colors (ignored map, not mappable, 1 dir map and 3 dir map). 2D geometry is colored using the "ignored (topo)" color.
- 7 - By assembly
- 8 - By part
- topology_edge_display_color-<type>=<value>
- The color of topology edges, from 0-64.
- topology_edge_display_mode-<type>=<value>
- The display state of topology edges.
- topology_solid_display_mode-<type>=<value>
- The display state of solid topology faces.
- topology_solid_edge_display_color-<type>=<value>
- The color of solid topology edges, from 0-64.
- topology_solid_edge_display_mode-<type>=<value>
- The display state of solid topology edges.
- transparent_with_mesh_lines=<value>
- The mesh line display when a component is transparent.
- vector_auto_scale=<value>
- The display of vector auto-scaling.
- vector_handle=<value>
- The display of vector handles.
- vector_label=<value>
- The display of vector labels.
- vector_size_magnitude=<value>
- The vector display percentage when vector_size_type is 1.
- vector_size_type=<value>
- 0 - Uniform display
- vector_size_uniform=<value>
- The vector display size in model units when vector_size_type is 0.
- zoom_factor=<value>
- The zoom in/out factor.
Examples
To set the rotation angle to 10 degrees:
*setoption rotation_angle=10
*setoption background_colors-1={100 200 100}
*setoption background_colors-2={123 0 0}
Errors
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
14.0.130
2017.1 - Added new options anti_aliasing, edge_lod_threshold, edge_lod_width_auto, lighting_mode, specular_intensity and solidedge_width.
2019 - Added new options alt_lmb_rmb_binding, alt_mmb_binding, alt_rmb_binding, auto_cleanuptol, auto_elementsize, auto_nodetol, contact_surface_peak_factor, contact_surface_percent, ctrl_lmb_rmb_binding, ctrl_mmb_binding, ctrl_rmb_binding, delete_discrete_topology_mode, dynamic_center_of_rotation, element_connectivity, fe_display, geom_display, geom_point, hide_panels_automatically, legend_beyond_threshold, lmb_rmb_binding, load_max_size, load_min_size, load_new_scaling, load_scale_type, mmb_binding, mouse_append_mode, mouse_mapping, mouse_over_highlighting, node_size, number_remesh_layers, ply_link_color_and_orientation, pr_auto_preserve_connections, pr_box_approach_node_set, pr_check_log, pr_custom_bbox_for_equivalence, pr_delete_src_comp, pr_invoke_model_checker, pr_keep_src_comp_cardimage, pr_keep_src_comp_id, pr_keep_src_comp_name, pr_keep_src_ent_type, pr_keep_src_include, pr_keep_src_mat, pr_keep_src_prop, pr_merge_nodes, pr_retain_plotel_elem_nodeIds_from_src_comp, pr_show_component_pairing, reverse_zoom_direction, rmb_binding, shift_lmb_rmb_binding, shift_mmb_binding, shift_rmb_binding, show_model_title, show_plots, solid_edge_width, surface_edge_width, topoedgecolor, topofacecolor, topofacemodetopology_edge_display_color, topology_solid_edge_display_color and topology_solid_edge_display_mode. Added new delete_elements_mode value 4.