A Business Rule to compute the minimum bend radius of segment during Roll manipulation
The purpose of the EHFLiveManipulator_ComputationRadiusofRoll BR is to compute the minimum bend radius for Roll manipulation. During the Roll modification, you can modify the bend radius of the Roll. If the bend radius is reached, a symbol shows when this is the minimum value and the Roll is not applied. In such condition, if you click in the background to validate the Roll, the minimum radius is not kept, the Roll is not applied and the segment comes back to the original position.
This Business rule is used for the
Rolling Segments segment command. If it is not implemented, the default value is: (2 * bend radius of branch).
Click
Start
> Infrastructure > Project
Resource Management. The
Project Resource Management
Editor
is displayed.
Select the Wire harness flattening resources and the contextual command Create a new Resource Table. The
New / PLM Resource Set Custo
dialog box is displayed.
Click
Finish
. The
ResourceSet
window opens in which you can see the opening ID of the Roll Business Rule: EHFLiveManipulator_ComputationRadiusofRoll
.
In the
Resource
tab of the ResourceSet dialog box, select
Choose the assigned resource
in the contextual menu of
Unset.
The Select a Business Rule window appears.
Search for the Business Rule in the ENOVIA database in order to insert it in the Resource.
The execution Business Rule will be called at the end of the Roll command.
This Object: Segment. Parameters:
- Standard Context:
- Severity: 1 (default) to raise a warning and the operation can continue, 2 to raise an error and the operation is undone.
Severity 1 has no impact on this rule. Severity 2: the Roll is not possible on this segment, and a warning (customized by the user) is displayed. Other severity value has no impact.
- Harness Flattening context:
- Radius: (output) a real number containing the radius value.
A Business Rule to compute a minimum angle between two segments at same junction during Arrange Junction (Umbrella) and Rotate manipulation
The purpose of this BR is to compute the minimum angle between two segments at the same junction. The computation BR is called one time for each couple of segment to get the minimum angle between them.
This Business rule is used for the
Rotating Segments segments and Arranging Junctions command. If the BR is not implemented, the default value is 5°. When the minimum angle is reached, an exclamation mark symbol (for each segment at good distance of junction) is displayed on the segment to indicate that this action is not recommended because the minimum angle will not be respected. Even if there is this symbol, the rotation is possible, for it can be a temporary step. But the rotation or Arrange Junction Umbrella will be applied only if all the minimum angles between all the branches are respected. In addition, if you move the mouse the symbol, a tooltip is displayed.
See Step 1 and 2 in the BR described above.
Click
Finish. The
ResourceSet
window opens in which you can see the opening ID of the Business Rule: EHFLiveManipulator_AngleofRotate.
In the
Resource
tab of the ResourceSet dialog box, select
Choose the assigned resource
in the contextual menu of
Unset.
The Select a Business Rule window appears.
Search for the Business Rule in the ENOVIA database in order to insert it in the Resource.
The execution Business Rule will be called at the end of the Rotate and Arrange Junction command.
This Object: Segment1. Parameters:
- Standard Context:
- Severity: 1 (default) to raise a warning and the operation can continue, 2 to raise an error and the operation is undone.
Severity 1 has no impact on this rule. Severity 2 has no impact on this rule. Other value severity has no impact on this rule.
- Message: the attribute will be displayed in a window (warning or error depending on the Severity) if the validation fails.
If Severity 0, the message will be the message of the tooltip, the default value is Minimum angle is not < 5°. Other severity value does not have any impact.
- Harness Flattening context:
- Segment2: (input) the second segment. This rule computes the minimum angle between Segment1 and Segment2.
- Angle: (output) real that contains the minimum angle between Segment1 and Segment2.
A Business Rule to define the angle between each segment of a junction and a fixed segment during Arrange Junction manipulation
This BR allows the user to define the angle between each segment of a junction and a fixed segment. By default, the fixed segment is the longest segment or the segment with the largest diameter.
This Business Rule is used for the
Arranging Junctions command. If it is not implemented, the default rule is: Umbrella between -90° and 90°, and the angle between the branches is equal to 180° / (number of segment -1). This BR computation is called one time when the user selects this option in Live Manipulator.
See Step 1 and 2 in the BR described above.
Click
Finish
. The
ResourceSet
window opens in which you can see the Opening ID of the Business Rule: EHFLiveManipulator_ComputationAngleofArrangeFunction
.
In the
Resource
tab of the ResourceSet dialog box, select
Choose the assigned resource
in the contextual menu of
Unset.
The Select a Business Rule window appears.
Search for the Business Rule in the ENOVIA database in order to insert it in the Resource.
The execution Business Rule will be called at the end of the Arrange Junction command.
This Object: SegmentFix (fixed on the junction where is called the Arrange Junction function). Parameters:
- Standard Context:
- Severity: 1 (default) to raise a warning and the operation can continue, 2 to raise an error and the operation is undone.
Severity 1 has no impact on this rule. Severity 2: the arrange junction is not possible on this junction and a message (customized by the user) is displayed. Other severity value has no impact on this rule.
- Message: the attribute is displayed in a window (warning or error depending on the Severity) if the validation fails.
- Harness Flattening context:
- ListOfSegment: (input) List of Segment to arrange.
- ListOfOriginalAngle: (input) List of original angle between segment and segmentFix.
- ListOfNewAngle: (output) list of new angle between segment and segmentFix.
A mapping exists between these 3 lists. For a given index in the lists, the information correspond to the same object. The angle is measured from the fixed segment in a trigonometric way. Therefore the value of the angles is between 0° and 360°.
|