display_attributes color constraint
The CONSTRAINT keyword indicates that you can specify a default color for all graphics associated with a constraint.
Color set on a modeling entity will be enforced down the model hierarchy to any lower entities in the hierarchy.
If an entity at a lower level has a color applied to it, and an entity above it in the model hierarchy has the same attribute, the highest level entity's color will take precedence.
For example:
.model --------------- color = red
.part ------------ color = no_color
.marker ------- color = blue
The model's color attribute will be enforced on the entities below it, cancelling out the color attribute set on the marker. Both, the part which has no color attribute and the marker's color, will be red.
Note: | Adams View will issue a warning message, reminding you that the attribute has been stored, but the attribute from an entity at a higher level will take precedence. |
In the example, if the attribute is removed from the model, the attribute stored with the marker will be enforced.
You remove a color attribute from a database entity by setting its color to NO_COLOR.
.model --------------- color = no_color
.part ------------ color = no_color
.marker ------- color = blue
The marker color will now be blue.
Format:
display_attributes color constraint |
|---|
constraint_name = | existing constraint |
color = | existing color |
Example:
display_attributes color constraint & |
|---|
constraint_name = | joint_2 & |
color = | violetred & |
Description:
Parameter | Value Type | Description |
|---|
Constraint_name | Existing constraint | Specifies the constraint to be modified. |
color | Existing color | Specifies the color the modeling entity should be drawn in. |
Extended Definition:
1. You may identify constraint by typing its name or by picking it from the screen.
If the constraint is not visible on the screen, you must type the name.
You may also find it convenient to type the name even if the constraint is displayed.
If constraint is available by default, you may identify it by entering only its name. If it is not, you must enter its full name. To identify constraint under another model, for instance, you may need to enter the model and part names as well. For example, you may specify arc 'end' on part 'arm' in model 'susp' by entering ".susp.arm.end".
If you type a "?", Adams View will list the constraints available by default.
You must separate multiple constraint names by commas.
If the constraint is visible in one of your views, you may identify it by picking on any of the graphics associated with it.
You need not separate multiple constraint picks by commas.
2. Adams View allows you to specify the following colors amongst others for modeling entities: BLACK, WHITE, RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, and NO_COLOR Specifying 'NO_COLOR' for a modeling entity, instructs Adams View to use the default color for this entity, if there is no color present in its parent modeling entity.
Example 1: .
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- NO_COLOR
The circle will be RED.
Example 2:
.model -------------------------NO_COLOR
.part ---------------------- RED
.geometry(circle) ------- BLUE
If a parent modeling entity has a color previously specified, that color takes precedence. Adams View will issue a warning message about color precedence. The circle will be RED.
Example 3:
.model -------------------------NO_COLOR
.part ---------------------- NO_COLOR
.geometry(circle) ------- BLUE
The circle will be BLUE.