
Original sketch (lacks enough geometry)

Original sketch w/supplemental arc
Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:If you would like to contact our Community Manager personally, feel free to send a private message or an email.




Since the 3D centerline of the existing hole feature is not accessible it has to be derived from what geometry is available. For this simple prismatic model a couple of methods exist:

“Use” (project) the circular edge onto the sketch plane as a construction curve. Draw another construction curve that represents centerline making sure it is midpoint and perpendicular constrained to the projected curve. This is by far the simplest method; however, it makes all sort of assumptions about the parent hole feature. It only works if the circular edge accurately represents an edge that is perpendicular to its centerline axis.
Also, one must be very careful using implied sketch constraints to make sure the constraint relationships are created between the correct curves. In the above the projected circle edge happens to superimpose a sketch edge associated to the block geometry. It would be very easy to create both the midpoint constraint and perpendicular constrain to the wrong curve.
A more robust approach would be to project the hole’s top and bottom’s edge curves and sketch a construction line between the midpoints of the curves.

The other method “Uses” (projects) the face/surface of the hole to the sketch plane; the result is two parallel lines from which an additional construction line can be sketched and constrained to be symmetrical to the projected curves.

Again, you must be very careful sketching the construction line that represents the centerline. Highly recommend sketching with “sketch inferences” turned off (depress and hold down the <Shift> key during the sketching process) so that you observe the sketched line snap into place centered between the two projected curves when applying the symmetry constraint.
Note: The “Used” and my “centerline’ sketch curve end points are not constrained (I didn’t feel like adding 6 coincident constraints). I know the line lengths are not important relative to maintaining the aligned condition. However, the end points should be constrained for the benefit of the person who might look at this sketch in the future; it would be difficult to interpret if the construction lines wandered way off the geometry.
The last two methods are far more robust because the hole surfaces can be cylindrical, or conical, any any orientation in the model (the exception being when the centerline is normal to the sketch plane).
All the above techniques are dependent on seeing the “holes” surface trim curves, or silhouette edges that represent its true size as viewed from the orientation of the sketch plane.
If you do not have this condition the process to derive a centerline is more tedious. For example:

“Use”ing ether the curve edge of the cylinder, or its surface doesn’t produce enough geometry to derive its centerline.
In my limited experience with Onshape I have yet to encounter this situation, but if I did I would find the pertinent sketch(es) that produced the feature with a centerline and if necessary supplement them with additional curves, make that sketch visible while sketching the curves to create my aligned feature and “Use” (project) the needed curves.



An additional construction line was created constrained parallel to the projected cylinder silhouette edge and coincident with the endpoint of the projected supplemental arc from the sketch used to create the cylinder feature. Now the construction line representing the centerline can be created and constrained to be symmetrical between the 2 lines representing the feature’s silhouettes. Again, one needs to pay very close attention during the sketching/constraining process to make sure you properly capture/express this design intent.
For feature geometry created with the revolve command I would probably go to the sketch where the profile was created and there hopefully find the curve representing the axis of revolution.
I hope you appreciate how tedious and error prone the process can be compared to how simple it would (should) be if the 3D centerlines existed.
I trust my two arguments for displaying and providing a more direct means to access the centerline of features are sufficient to make adding display and access to 3D centerlines worthy of consideration.
