News:

Be sure your post is relevant to the current discussion.  Create a new topic within the appropriate board if you are unsure.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Constraining Problem

Started by cockpit, June 15, 2013, 10:18:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cockpit

Does anyone know how to constrain the midpoint of a polygon to the endpoint of a line?  I can constrain the midpoint of a circle to an endpoint of a line using the Concentric Constraint but I can't figure out how to constrain a polygon.
Carroll James Moore, Jr.
CJMJ
TC2016 Pro Platinum 64-bit + Animation Lab 5
Windows Surface Pro + Windows 10 Pro

nikkipollard

First the polygon needs to be exploded. You cant constrain polylines.
once its exploded use a point coincident constraint at each of the corners.
There is a midpoint constraint but be aware you may have problems with the midpoint constraint if you use it to create parametric parts using format parametric part. The midpoint constraint is a new constraint and format parametric parts was made before that.
If I am making a parametric symbol I use extra lines (you can make them invisible) to find the midpoint.
using equal distant and equal length constraints to find the midpoint.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Henry Hubich

#2
Another approach (assuming it's a regular polygon):

As Nikki sez, you must first explode the polygon. Then apply "Auto Constraints" (or, better yet, turn on "Auto Add Constraints" before drawing it).

Draw a circle approximately at the center of the polygon and roughly the same diameter as the distance across the flats of the polygon. Apply the "Tangent" constraint to the circle and to each side of the polygon. Resize the circle if necessary and the polygon will resize along with it.

Apply the "Concentric" constraint to the circle and to the line endpoint.

Place the circle on an invisible layer, or set its Line Pattern to "$INVISIBLE."

After applying these constraints, one can rotate the line (for example), and the polygon will stick to its endpoint.

Henry H

nikkipollard

Thanks Henry the circle aproach works well. I tend to avoid automatic constraints because I find that sometimes when I convert the part to a symbol using format parametric part the part doesnt work properly, even though it worked well before.
I am not sure if its because of autoconstraint. But I have found that if I add the constraints I have more success with a symbol that works.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

cockpit

I agree.  Thanks, Henry.  I think the circle approach will work for what I'm trying to do.  I wonder if we could get IMSI to extend the concentric constrain to polygons as well.
Carroll James Moore, Jr.
CJMJ
TC2016 Pro Platinum 64-bit + Animation Lab 5
Windows Surface Pro + Windows 10 Pro