cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

Highlighted
Regular Member

## Position button in middle of a hole

Hi
I have modelled a square push button that sits within a square hole...

1) Which constraint do I use to keep the button in the middle of the hole (rather than the button touching one of the sides with a coincidental constraint)?
2) After I have defined the assembly constraints and accepted the part into the assembly, which button do I press to update/add different position constraints?

I'm still new to parametric modelling so any detailed steps will be great

Thanks!
2 REPLIES 2
Highlighted

## Re: Position button in middle of a hole

The only "center" type constraints are for round type objects.

Your options for square peg in a square hole are: (from my most preferred to my least preferred)

1. create a axis at the center of the square peg and at the center of the square hole and select those. you can create an axis in the sketch by adding a "datum point" in the sketch and using construction lines to keep it centered on the sketch.

2. if you already had datum planes at the centers, you can use the datum planes to assemble.

3. use a distance constraint to hold a surface of the peg at a distance from the surface of the hole.

(2)Use the Edit definition button, select the component you want to redefine, RMB, it's the orange-ish ball with a pencil looking thing...I've never understood that visual.

Steve Williams
Pro/E Version 15/16 (Circa 1995/1996)

## Re: Position button in middle of a hole

If it's indeed a square push button which can translate up and down when activated / deactivated, I would actually suggest using a Slider mechanism connection. And as suggested, you should create the push button and the square "hole" with axes down the center for Axis Alignment of the Slider connection.

Here's a video that has a Slider connection: https://youtu.be/J_YNvWWA13E

You could then use Mechanism Snapshots to capture the different positions of the button.

Hope this helps,

Dave

Dave Martin - dmartin@creowindchill.com - https://www.creowindchill.com
This Creo Parametric tutorial video shows the process for implementing and analyzing a mechanism in an assembly. It shows a Slider connection for a linear ac...
Announcements