|
Alignment |
Scroll |
To align geometric objects horizontally or vertically, use the Alignment
.
In KOMPAS-3D, the following kinds of alignment are available:
•Transformation of sloped objects into horizontal or vertical objects — apply the Horizontality or Verticality constraint to rectangular objects,
•Horizontal or Vertical Alignment of Characteristic Points of Objects — in this case, the pairs of objects containing the given points are constrained by either Align Vertically or Align Horizontally.
|
A straight line is considered horizontal or vertical if it is parallel to the abscissa or ordinate axis of the coordinate system, which is: •in a sketch or a fragment – to the abscissa or ordinate axis of the absolute coordinate system, •in a drawing – to the abscissa or ordinate axis of the current view coordinate system. Therefore, if you impose the constraint Horizontality or Verticality on an object located in a form whose coordinate system is rotated relative to the absolute coordinate system, this object will not be parallel to the horizontal or vertical sides of the sheet. |
|
In some cases, it is required to apply the Horizontal constraint or the Vertical constraint to an existing horizontal or vertical object. For this purpose, it is necessary to fetch the Alignment command and specify the required object. The relevant constraint will be created. For automatic application of constraints Horizontality and Verticality, you can conveniently use the command Parametrization of objects. |
Transformation of sloped objects into horizontal/vertical objects
1.Select a method to determine alignment direction. To do this, set the Direction toggle switch to the desired position.
•Auto – the system automatically chooses the coordinate axis that is the closest to the object being aligned; if the object slope angle is divisible by 45°, then the nearest axis counterclockwise is chosen,
•By Straight Lines – alignment direction is chosen by user.
2.Specify the object to which you need to apply alignment: segment, centerline, auxiliary line, gaze arrow, etc.
•If auto direction determination is enabled, then after hovering the object with the cursor you will see a phantom line along which alignment will be executed. After selecting the object, alignment will be automatically terminated.
•If the By Straight Lines alignment direction was chosen, then after selecting the object you will see phantoms of the horizontal and vertical straight lines passing through the point in which the object is selected. Choose the alignment direction by clicking the required phantom. After selecting the phantom, alignment will be automatically terminated.
|
A vertical object cannot be transformed into a horizontal one and vice versa. |
The object rotates in the process of alignment if the existing constraints do not prevent this. The center of rotation of the segment, the centerline, and the edge line is the midpoint; the auxiliary line is the point (or the first of two points) indicated when constructing this line. A constraint is applied to the object Horizontality or Verticality.
3.To finish execution of the command, press Complete
button.
Constraints Horizontality and Verticality may automatically arise in the parametric mode. For this, the Setting up the parametric mode In the list Parameterize, the option Horizontal and Vertical must be enabled. Constraints will be applied when building (with any method) a horizontal or a vertical object.
For example, when specifying the second point of a horizontal segment (or straight line) you can use the Alignment snap to the first point or enter the same Y coordinates for its characteristic points in the fields of the Parameter panel, or enter a zero slope angle. Even if during construction of the object its horizontality was not expressly specified but a horizontal object was created (for example, a new segment was drawn parallel to the horizontal object), a constraint Horizontality will be applied to it.
Constraints are displayed in the graphic area in the constraint preview mode. Horizontality is indicated by the symbol
, and Verticality by the symbol
.
Vertical or horizontal alignment of points
1.Specify the points for alignment in sequence. Defining points of objects and independent point objects are available for specifying.
In the Objects field on the Parameter Panel you will see names of objects which the selected points belong to.
If the parameterized point coincides with another object’s characteristic point (you cannot exactly select this point as it is snapped to another object’s point), then you can first specify the object to which the point belongs and after this the point itself. To do this, press the button Select the object first, and then its point
to the right of the field Objects. Select the required object and specify its characteristic point.
|
When working with a drawing please note that all the parameterized points must belong to the same view. |
2.Phantoms of straight lines passing through the last specified point are displayed in the graphic range. Choose the alignment direction by clicking the required phantom. After this, alignment of points will be automatically terminated.
Unless the existing constraints prevent the alignment, one of the points is moved so that both points are on a straight line – horizontal or vertical. For objects that own the specified points (or point objects if specified), a restriction is imposed Horizontal alignment or Vertical alignment.
3.To complete the command, click Finish
.
Constraints Horizontal Alignment and Vertical Alignment may automatically arise between pairs of points when constructing objects in parametric mode. For this, the Setting up the parametric mode In the list Parameterize, the options Snaps and Alignment snapping must be enabled. Constraints will be created upon entering an object’s characteristic point using the Alignment to another characteristic point.
Constraints are displayed in the graphic area in the constraint view mode. Horizontal alignment is indicated by the icon
, and Vertical alignment is indicated by the icon
.
See Also