part attributes
Allows you to set attributes for a part:
■Size or scale of icons - You can set a size of the icon used to represent the part in modeling units, or you can scale its size by a non-unit scale factor.
■Visibility - You can set a part's visibility to on or off, or toggle its current setting. When you set a part's visibility off, the part will not be drawn and all markers and geometry belonging to the part are turned off. When you set a part's visibility on, you allow the entire part to be drawn.
■Name Visibility - You can set the visibility of the part's name label to on or off, or toggle its the current setting.
■Color - You can set the color of the part. You can also set the scope of the color using entity scope to limit the application of the color. For example, you can set the scope of the color to only edges.
If an entity does not have a particular attribute setting, it can inherit that from another entity. Inheritance can be either top down or bottom up. Top down refers to the natural hierarchy of an Adams model. The hierarchy is a tree structure with the model at the apex. Parts exist beneath the model, and markers exist beneath the parts
For example, if the icon size of the model is set to 0.1, and the default inheritance is set to top down, then all icons displayed within the model are displayed at this size. However, if the icon size of a model is set to 0.1, and the default inheritance is set to bottom up, then any icons set to a size other than the model's icon size are displayed at their own size.
Format:
part attributes |
|---|
part_name = | existing part |
flexible_body_name = | existing flex body |
external_system_name = | existing external system |
point_mass_name = | existing point mass |
equation_name = | existing equation |
fe_node_name = | existing FE_Node |
scale_of_icons = | real |
size_of_icons = | length |
visibility = | on_off_with_toggle |
name_visibility = | on_off_with_toggle |
color = | existing color |
entity_scope = | color_scope |
active = | on_off_no_opinion |
dependents_active = | on_off_no_opinion |
Example:
part attributes & |
|---|
part_name = | part__1 & |
size_of_icons = | .125 & |
color = | red & |
visibility = | on & |
entity_scope = | fill_color |
Description:
Parameter | Value Type | Description |
|---|
part_name | Existing Part | Specifies the rigid body to be modified |
flexible_body_name | Existing Flex Body | Specifies the flexible body to be modified |
external_system_name | Existing external system | Specifies an external system to be modified |
point_mass_name | Existing Point Mass | Specifies the point mass to be modified |
equation_name | Existing Equation | Specifies the equation to be modified |
fe_node_name | Existing FE_Node | Specifies the FE_Node to be modified |
scale_of_icons | Real | Specifies the amount by which you want to scale the icons. |
size_of_icons(Mutually exclusive with scale_of_icons) | Length | Specifies the size, in modeling units, the Adams View icons will appear. |
visibility | On/off/toggle | Specifies the visibility of the part in a view: ■on - The part is visible. ■off - The part is invisible. ■toggle - Reverses the current state of the part's visibility. |
name_visibility | On/off/toggle | Specifies whether or not you want the name of the part displayed in the view |
color | Existing Color | Specifies the color of the part. |
entity_scope | | Controls how a color modification is to affect a particular graphic entity. |
Active | On/off/no_opinion | Sets the activation status of the part during a simulation. |
dependents_active | | See explanation for active parameter. |
Extended Definition:
1. The scale factor is relative to the current size set. If no initial size is specified for Adams View icons, the default size is one modeling LENGTH unit. For example, if the modeling units are K/M/S, a part axes icon has triad legs of one meter in length.
When you specify scale_of_icons, Adams View calculates a new size by multiplying the current size by the scale, and storing the product as the new icon size.
2. For the size_of_icon parameter, if no initial size is specified for Adams View icons, the default size is one modeling LENGTH unit. For example, if the modeling units are K/M/S, a part axes icon has triad legs of one meter in length.
Example:
When you set size_of_icons at the model level, all Adams View icons used in creating a model use the size specified. If the model has a size_of_icons set, and a part under that model has a different size_of_icons, the model's size_of_icons takes precedence.
if the following: | are set to: |
.model | size_of_icons = .125 meters |
.part | size_of_icons = .15 meters |
the part's icon is .125 meters in size |
Example:
If the model has size_of_icons of set to 0.0, and a part under that model has a size_of_icons set to .125, the part's icon size is used.
if the following: | are set to: |
.model | size_of_icons = 0.0 meters |
.part | size_of_icons = .125 meters |
the part's icon is .125 meters in size |
3. You can specify any color in the modeling database and no_color. If you specify no_color, Adams View uses the default color for this entity if there is no color present in its parent modeling entity.
Example 1:
In the following example, the geometry (circle) will be red because its parent part is set to red and it is set to no_color.
if the following: | are set to: |
.model | no_color |
.part | red |
then the geometry is red. |
Example 2:
In the following example, the circle will be red because if a parent modeling entity has a color previously specified, that color takes precedence. Adams View issues a warning message about color precedence.
if the following: | are set to: |
.model | no_color |
.part | red |
.geometry(circle) | blue |
then the geometry is red. |
Example 3:
In this example, the parents of the geometry (circle) have no colors set, so the color of the geometry takes precedence.
if the following: | are set to: |
.model | no_color |
.part | no_color |
.geometry(circle) | blue |
then the geometry is blue. |
4. The values for the entity_scope parameter are:
■fill_color - Applies color to those areas of a graphic that can be shaded (including, sides of a cylinders, frustums, boxes, and so on).
■edge_color - Applies color to lines making up the edges of the facets (or areas filled by the fill_color) of a graphic that can be shaded.
■outline_color - Applies color to lines that define the outline of graphics, which cannot be shaded or filled, such as two points defining an outline using the GRAPHICS statement or the coil of a spring-damper.
■text_color - Applies color to the text associated with the part (its name).
■all - Applies all three entity types: fill_color, edge_color, and outline_color to the graphic entity.
entity_scope is optional and if you do not enter it, the default is set to fill_color.
5. The active parameter can take the following values: yes - The part is active. no - The part is written to the dataset as a comment.
■no_opinion - The part inherits the activation status of its parent.
When you set the active attribute on an object, you are also setting it on the children of the object. If you set active=no on a part, but want the marker on that part to be on, then you must explicitly set active=yes on the marker, after setting activation on the part.
The
dependents_active parameter acts in the same way, but sets the active attribute for the dependents, all the way down the dependency chain. For example, if you execute the following command:
PART ATTRIBUTES PART=PAR1 DEPENDENTS_ACTIVE=NO
■where, PAR1 has a marker MAR1, which is the I marker of a joint JOI1 (which has a J marker MAR2), then JOI1 will be deactivated.
■Also, if the joint JOI1 is referenced in a request function, or if the I marker is referenced by a request, then the request will be deactivated.
Propagation of activation status through groups is as if each element were to have its activation status changed individually.
Elements affected are:
■Group
■Part
■Differential equation
■Marker
■Geometry
■Constraints
■Forces
■Data elements
■Output control