News:

Interested in some really terrific mobile apps? Visit www.turboapps.com for details.

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.

Connect constraint issue

Started by knute971, November 27, 2021, 08:17:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

knute971

In following several Solidworks YouTube videos, I became interested in the use of constraints.

To further my understanding of constraints, I worked thru a "TurboCAD Constraints Manager" issued by waterheatertimer.org.

The manual was apparently written in 2008, but I came across an issue trying to use the Connect constraint to link an arc with a line. 

After creating a closed polyline, I inserted arcs at several point and then exploded the polyline twice before applying the constraint.

The Connect constraint would not link to the arcs, unless I exploded them another time after which the arc became a series of lines and the connect only occurred at the last arc line, not the entire arc.  Also, as shown in the diagram, the Connect constraint marker does not show.

Am I missing a setting?
DC16, TC14, TC17, TC Platinum 2021 & 2022
Dell XPS-8940 - Windows 11 Pro
NVIDIA(R) GeForce RTX(TM) 3060 12GB GDDR6
11th Gen Intel Core i9 11900K
32GB, 16Gx2, DDR4, 2933MHz
3D Printer: Ender 3 V3 SE

Alvin Gregorio

#1
Per your description of your procedure, you did not do anything incorrectly.; though you do not need to Explode the arcs. There must be a nuanced something that you omitted sharing.
Perhaps you can upload/attach your practice .tcw drawing file, and maybe we can find what the issue is.

Maybe the arcs are inadvertently on different Workplanes (Coordinate Systems) than the line segments.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#2
Working through that tutorial as you did knute, partially, starting at Page 52 to create a rough sketch of the intended 2D "countour", one thing I notice that I don't like:

On Page 55, the author instructs "It may be necessary to explode the profile a number of times until each line and arc are displayed as individual entities."  Doing that, one can end up Exploding the polyline with arc segments into oblivion.

I'd prefer to have the Selection Info Palette (SIP) open, and Explode once.  While all is still selected, observe the top pane of the SIP.  Note that after just one Explosion, there are 7 entities, with only two of them being Polylines which need further Explosion.  Escape to Cancel out of the selection, after the first Explosion.  Then select just those two remaining Polylines, and Explode once.

Try to continue as instructed.

Attached is my having taken it through using the Connect Constraint on the result of my having done the above.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

Also note:  I advise not assigning the Color Blue to the 2D entities you wish to constrain, as the tutorial author did.  If your constrained 2D entities are that particular shade of Blue, it will be difficult to have displayed and ascertain constraints associativity when objects are selected, as TurboCAD highlights associated constrained objects in that same shade of Blue.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#4
A sample constrained drawing file attached.  Progressed through the tutorial's Section Five, Page 86.  For your reference knute.
____
There are some questionable things in that tutorial.  Such as the constraint formulas in the Calculator Palette-- the characters before the =, and the =.
____
Unlike as the author illustrates, I advise turning on the option "Show Variable name in the dimension text" in Options|Constraints.  Until you have finished developing the constrained sketch, at least.
____
If I try to create a 3D model from these constrained objects, as the author does in Section Six, using Properties|3D_Thickness, I do not get a "solid" object.1  I recommend using Extrude, with Compound Profile.
____________________
EDIT:  1I purposely did not use the "Close" option when having create the initial Polyline.  Had I done so, the Extrude will in fact produce a "solid" (solid volume object, of ACIS Solid type or TC_Surface type).  How TurboCAD, through the Constraints manager, "remembers" that I set the "Closed" option to these now-Exploded 2D entities, I have not yet given thought to.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

knute971

Alvin,

I found out that when I use the edit tool to insert the arc, the Connect constraint does not work on the exploded arc.

However, if I used the 2d fillet tool, then the Connect constraint does work!

The problem apparently is in the use of the edit tool to insert an arc.
DC16, TC14, TC17, TC Platinum 2021 & 2022
Dell XPS-8940 - Windows 11 Pro
NVIDIA(R) GeForce RTX(TM) 3060 12GB GDDR6
11th Gen Intel Core i9 11900K
32GB, 16Gx2, DDR4, 2933MHz
3D Printer: Ender 3 V3 SE

Alvin Gregorio

Quote from: knute971 on November 28, 2021, 06:40:02 AM
Alvin,

I found out that when I use the edit tool to insert the arc, the Connect constraint does not work on the exploded arc.

However, if I used the 2d fillet tool, then the Connect constraint does work!

The problem apparently is in the use of the edit tool to insert an arc.

Not really.  I did it using the Edit Tool to create the arcs, as the tutorial instructed.  And I was successful at constraining the arcs with a Connect Constraint to the Line segments, as further instructed.

If you are interested in understanding why it might be that it is not working for you, can you upload/attach an iteration of the .tcw file in which it is not working for you.  Saved As Version 2020 or earlier, if I am to open it.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

knute971

I started creating the file as requested with a polyline and facet edited it to insert the arcs.

When I exploded it the first time, the single line disconnected from the arcs, but the 2 and 3 multiple lines stayed connected to each other.

When I exploded the entire polyline diagram a second time, the arcs would not connect (upper diagram).

When I went back and exploded the connected lines individually, the Constraint connect worked as expected (lower diagram).


DC16, TC14, TC17, TC Platinum 2021 & 2022
Dell XPS-8940 - Windows 11 Pro
NVIDIA(R) GeForce RTX(TM) 3060 12GB GDDR6
11th Gen Intel Core i9 11900K
32GB, 16Gx2, DDR4, 2933MHz
3D Printer: Ender 3 V3 SE

Alvin Gregorio

Quote from: knute971 on November 28, 2021, 07:33:48 AM
I started creating the file as requested with a polyline and facet edited it to insert the arcs.
When I exploded it the first time, the single line disconnected from the arcs, but the 2 and 3 multiple lines stayed connected to each other.
When I exploded the entire polyline diagram a second time, the arcs would not connect (upper diagram).
When I went back and exploded the connected lines individually, the Constraint connect worked as expected (lower diagram).

If you are interested in pursuing this further knute, to gain more insight into why it is behaving this way for you, can you provide a (version 2020) .tcw drawing file of the objects before any Explode.
______
Curious you used the term "facet edited".  The instructions I followed instructed me to use the Edit Tool, which is what I did successfully.

You will notice that in your upper Exploded "group", the subject "arcs" report as Polylines in Selection Info Palette (SIP).  Therein might be the cause; how you made that happen, is what I am now curious about.
_______
When you Save As... for upload here, can you enact the Save option, under Setup, "Save Undo" please.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

knute971

File attached as requested.

In my previous post, I mis-stated facet edit when I meant Edit Tool to create the arcs.
DC16, TC14, TC17, TC Platinum 2021 & 2022
Dell XPS-8940 - Windows 11 Pro
NVIDIA(R) GeForce RTX(TM) 3060 12GB GDDR6
11th Gen Intel Core i9 11900K
32GB, 16Gx2, DDR4, 2933MHz
3D Printer: Ender 3 V3 SE

Alvin Gregorio

#10
Quote from: knute971 on November 28, 2021, 09:35:25 AM
File attached as requested.

In my previous post, I mis-stated facet edit when I meant Edit Tool to create the arcs.

If I proceed with your Polyline as the tutorial instructs, using the Edit Tool on each of the three vertices we wish to make Arcs1, one at time, I successfully get, after one Explode:
  Polyline
  Arc
  Polyline
  Arc
  Line
  Arc
  Line

I tap the Escape key to Cancel out of that selection process.2

I then select the two remaining Polylines resultant from the Explode3, and Explode those two once.  Which results in:
  Line
  Line
  Line
  Line
  Line

Now I can proceed with the tutorial as directed, inserting the Connect Constraints and continuing on.
_____
1Using the Edit Tool, I select the vertex node, right-click for the Local Menu, and click "Insert Arc".
2I think you are keeping the selection active, after the first Explode, which now includes the just-created-from-the-Explosion Arcs, and doing another Explode, which is exploding these Arcs into Polylines.
3I use Ctrl+T for Select_By_Type, then that type being Polyline.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

murray dickinson

Note that auto constraint options don't include connect, points coincident does the job instead.   Perhaps when the polyline is drawn as a single entity, the intention is evident, while you might use connect when the endpoints aren't initially coincident, the segments haven't been drawn connected.

Alvin Gregorio

Quote from: murray dickinson on November 28, 2021, 03:36:38 PM
Note that auto constraint options don't include connect, points coincident does the job instead.   Perhaps when the polyline is drawn as a single entity, the intention is evident, while you might use connect when the endpoints aren't initially coincident, the segments haven't been drawn connected.

I think of the Connect Constraint as a combination of Points Coincident and Tangent Constraints.
Connect Constraint is used with curves (arcs, splines, ?) to constrain end or start points to other arcs' or curves' or lines' end points and also constrain them tangentally.

Certainly enough, when I use Auto Constraints on knute's Polyline, Exploded correctly as I described two posts ago, and have all the Constraint options ticked, the Arcs-to-Lines have the Connect Constraint Block Mark, which is a combination Points Coincident and Tangent Constraints Block Mark; indeed, there are actually two Block Marks at that points/tangent location when having used Auto Constraints, just as there is when having inserted a Connect Constraint.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

murray dickinson

If you've drawn the polyline with fillet arcs or filleted it afterwards, then exploded the profile, the tangency is already explicit, auto constraint "recognises" it. 

Alvin Gregorio

Quote from: murray dickinson on November 29, 2021, 05:09:12 AM
If you've drawn the polyline with fillet arcs or filleted it afterwards, then exploded the profile, the tangency is already explicit, auto constraint "recognises" it.

That is not how the tutorial that knute is following progresses.

The tutorial has us start by inserting a single Polyline, "haphazardly" sketched generally in the desired form.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

murray dickinson

Is it relevant now though?   This tutorial ignores compound profile, introduced into TC Pro at the same time as constraints.  It makes polyline profiles redundant, constraints don't take on them unless you explode them, auto constraint does it automatically, and this tutorial requires you to anyway.  You've got auto recognition of sketched shapes in the curve tools now, too, while using discrete elements and connect is an easier and more explicit way to work with a stylus and tablet PC.   It's actually easier to sketch "haphazardly" with discrete entities.  Line segments finish themselves, for example.  Time to go off piste, I say.