*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:
- 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, HyperMesh will not redraw unless the size of its window changes or it is de-iconified or maximized. When the redraw operation is unblocked, HyperMesh 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.
- command_file_state=<value>
- The state of writing to the command file.
- contour_type=<value>
- The result color mode.
- 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 HyperMesh.
- domain_handle=<value>
- The display of domain handles.
- duplicate_ids=<value>
- Defines whether duplicate entity IDs are allowed for supported solvers.
- 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_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_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.
- 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.
- force_text_black=<value>
- The display of graphical text between black and white. By default, text in HyperMesh is displayed in white. However white text is not always legible, especially when users change the background color to a lighter color.
- geom_feature_angle=<value>
- The geometry feature angle used for geometry creation and editing operations.
- 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.
- hv_launch_flag=<value>
- Controls the launching of HyperView after an H3D creation.
- line_handle=<value>
- The display of line handles.
- 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_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.
- node_tolerance=<value>
- The global node tolerance. Must be greater than cleanup_tolerance/100.
- 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_thickness_factor=<value>
- The ply thickness scale factor for composite layer visualization. This applies for show_composite_layers values 1 and 2.
- retain_loads=<value>
- Keep/delete loads when associated nodes/elements are deleted.
- rotation_angle=<value>
- The rotation angle used by various view commands.
- rotation_center_mode=<value>
- The rotation mode.
- 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).
- 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_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.
- stereo_display=<value>
- The normal (2D) or stereo (3D) display mode.
- 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.
- 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_mode-<type>=<value>
- The display state of topology edges.
- topology_solid_display_mode-<type>=<value>
- The display state of solid topology faces.
- 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
To set gradient background to the standard colors closest to (100, 200, 100) and (123, 0,
0):
*setoption background_colors-1={100 200 100}
*setoption background_colors-2={123 0 0}
Errors
Incorrect usage results in a Tcl error. To
detect errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
14.0.130