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.

constraint problem

Started by exdraftee, August 06, 2014, 09:07:28 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

exdraftee

Hi,

see picture attached I am trying to rotate a circle (B) at 25 mm depth increments upwards as shown by the horizontal lines. Line A is fixed at the centre and too circle B. The distance for each 25 mm movement upwards is different angular wise so I cant just rotate the same angle each time, I did it manually see 2nd picture - there must be an easier less time consuming way.

Is there a constraint way I can do this for each 25mm increment. ????

thanks
Brett
FerrariDrafting (Find me on Facebook)
Australia
V16 Deluxe
V17 Plat
V20 Plat
V21 Plat
TC2016 Plat
TC2020 Plat
TC2025 Plat

John R

I would think that Radial Fit Copy would do the trick, but it ain't happening.

I ended up drawing a larger circle at the Tangent point,
moved the reference point of the small Circle to its Quadrant point,
then Rubber Stamped at each intersection.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Henry Hubich

Quote from: exdraftee on August 06, 2014, 09:07:28 PM
Hi,

see picture attached I am trying to rotate a circle (B) at 25 mm depth increments upwards as shown by the horizontal lines. Line A is fixed at the centre and too circle B. The distance for each 25 mm movement upwards is different angular wise so I cant just rotate the same angle each time, I did it manually see 2nd picture - there must be an easier less time consuming way.

Is there a constraint way I can do this for each 25mm increment. ????

thanks
Brett

Probably. But I can almost guarantee that it ain't worth the trouble.

Henry H

Dean

Quote from: Henry Hubich on August 07, 2014, 09:05:58 AM
Quote from: exdraftee on August 06, 2014, 09:07:28 PM
Hi,

see picture attached I am trying to rotate a circle (B) at 25 mm depth increments upwards as shown by the horizontal lines. Line A is fixed at the centre and too circle B. The distance for each 25 mm movement upwards is different angular wise so I cant just rotate the same angle each time, I did it manually see 2nd picture - there must be an easier less time consuming way.

Is there a constraint way I can do this for each 25mm increment. ????

thanks
Brett

Probably. But I can almost guarantee that it ain't worth the trouble.

Henry H

C'mon Henry :)
Couldn't this be done with Anilab," follow by path " or "rotate"along with "duplicate" to get multiple copies.
Given the proper formula.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Henry Hubich

Quote from: Dean on August 07, 2014, 09:15:32 AM
Quote from: Henry Hubich on August 07, 2014, 09:05:58 AM
Quote from: exdraftee on August 06, 2014, 09:07:28 PM
Hi,

see picture attached I am trying to rotate a circle (B) at 25 mm depth increments upwards as shown by the horizontal lines. Line A is fixed at the centre and too circle B. The distance for each 25 mm movement upwards is different angular wise so I cant just rotate the same angle each time, I did it manually see 2nd picture - there must be an easier less time consuming way.

Is there a constraint way I can do this for each 25mm increment. ????

thanks
Brett

Probably. But I can almost guarantee that it ain't worth the trouble.

Henry H

C'mon Henry :)
Couldn't this be done with Anilab," follow by path " or "rotate"along with "duplicate" to get multiple copies.
Given the proper formula.


Like I said, Dean...

Henry H


Torfinn

#5
Why not try with a ppm , wonderful tool  ;)

Torfinn

Edit: the first one have a fault when changed angles, so replaced with a new.
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Henry Hubich

Quote from: Torfinn on August 07, 2014, 10:31:23 AM
Why not try with a ppm , wonderful tool  ;)

Torfinn

Edit: the first one have a fault when changed angles, so replaced with a new.

Because that's a lot more trouble than doing the job manually :-)

Henry H

Torfinn

 ;D ;D

No Henry, ppm is funny
But then again i'm just a thing thong fallang :)

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Dean

Quote from: Torfinn on August 07, 2014, 02:40:27 PM
;D ;D

No Henry, ppm is funny
But then again i'm just a thing thong fallang :)

Torfinn

Hi Torfinn,
Thanks for sharing that script :) it's good to have.
I don't think it's what exdraftee is looking for though. The tangents (quadrant point) of the circles need end up on those   horizontal lines in the picture John posted. Each rotation angle is different as it goes up to the next line. The lines are equal distant apart. Can you create the script to do that? there might be a lot of "IF" in the script :)
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

exdraftee

Thanks Guys,

Cheers John I had that circle in one of my solutions but didn't see the trees for the wood.

I thought constraints would work eg pin the one end of line set length and then make circle tangent to the horizontals - hoping it then pulled the 2 unknowns together being the differing arm angles as dean said and the dist of the circle centre point to meet the moving line end and remain a tangent with the height ?????

cheers
Brett
FerrariDrafting (Find me on Facebook)
Australia
V16 Deluxe
V17 Plat
V20 Plat
V21 Plat
TC2016 Plat
TC2020 Plat
TC2025 Plat

Torfinn

Hi Dean

It is possible to make, but it's a lot of work ( to much:) to calculate all the different x and y point's in it if it should been made this way.

It looks to me that this is something that should follow a circular movement (big circle)( "Sa" in the script) and then it will be more natural to follow the big circle in Brett's drawing  "junk".
All the line and circles will have different angel from the center of the big circle, but because of the rotation we don't need to care about it
Also in his picture all the lines from the small circle to the center of the big circle is showing, that is easy to change if you dont want them to show.

And if it's the bottom and top of the lines in his drawing the control what area it should be moving in, that is also possible, i just use the angle because it's easier  ::)

And if you want the line to go in to the center of the small circle, just change line 19 in the script from
S = Circle(R2, (R1+R2),0,0);
to
S = Circle(R2, R1,0,0);

I believe there is some "[  ]" in the script ( line 19 ), just delete them, this was the first time i used this function and i just copy the syntax, but i believe they still is in the ppm i put out here.

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Dean

#11
Hi Torfinn,
"calculate all the different x and y point's"

> or < Is there a code to set the circle's center point to the "intersection" of the "path" and horizontal line? Thanks :)
It's basically what I did in the attached movie using Anilab 5.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Torfinn

Hi Dean

The circle is the path, and you will need to calculate every X and Y point, depending of where this point meet the circle ( int ), and that will also be different depending of where you start and how big it is and how many small circles you want and by that there will be a hec.. of point to calculate, also a ppm cant "think", it do what you tell in the script and for the moment there is no way that it can collect info from the drawing and use this like you do in AL.
I belive it's possible to make such a ppm, but on a level that i'm not on when it come to the math at the moment:)
If i ever come to a point where i need a ppm to do so, i will try to make it, but not before as it is to much work to make just for fun.

But there you also will get a problem in the end with only using Y value along the path i guess. (or X depending of what direction you look :)

What i do in the ppm is to calculate the length of a arc segment of the circle and divide it on 25 to get how many copy's i want and the rotate the line and small circle x number of times from that.

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Henry Hubich

Using Constraints:

Place a Point at the left-hand end of the radial line and apply Fix Geometry. Attach the left-hand end of the radial line to that point. Fix its length by applying a constrained Dimension. Attach a Point to the other end of the radial line and make the movable circle concentric with that second Point. Draw another line; make it Horizontal; attach its left-hand end to the first Point object; make its length equal to that of the radial line. Apply a constrained Vertical dimension between the first Point and the center of the circle. Draw an arc; make it concentric with the first Point; attach each of its ends to the right-hand end of each of the two lines. Apply a constrained Angular dimension to that arc.

Apply a Formula to the Angular dimesion; viz. Angle = asin (Vertical Dimension / Length of radial line).

Change the vertical dimension (which defines the vertical position of the circle) and the radial line will rotate, taking the circle with it.

I've already done all that, and it works for me, but I don't know how to change the vertical dimension in a series of defined increments (e.g., 25 mm).

I still maintain that it's easier to relocate/copy the circle manually.

Henry H

Torfinn

I agree with you Henry

If this is something that should be made only 1 time, the benefit of using a ppm is that it's so easy to use the same ppm inside another ppm, just "call" it up and give the parameter values and you are finish.
The ppm i put out in this tread take maybe 30 min to figure out and write/ test, and i can maybe use this function sometime later, at least i have learned how to make it. :)
Like i have in my "house construction.ppm", there is now 1 mainfile that call up and use like 10 different ppm's for putting it all together.

I dont work with pp's and by that it's also nonfamiliar for me, so i have no ide'a about the last thing in your example, but i will test it during the weekend, to see if i can make it work.

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Dean

Quote from: Henry Hubich on August 08, 2014, 10:31:23 AM
Using Constraints:

Place a Point at the left-hand end of the radial line and apply Fix Geometry. Attach the left-hand end of the radial line to that point. Fix its length by applying a constrained Dimension. Attach a Point to the other end of the radial line and make the movable circle concentric with that second Point. Draw another line; make it Horizontal; attach its left-hand end to the first Point object; make its length equal to that of the radial line. Apply a constrained Vertical dimension between the first Point and the center of the circle. Draw an arc; make it concentric with the first Point; attach each of its ends to the right-hand end of each of the two lines. Apply a constrained Angular dimension to that arc.

Apply a Formula to the Angular dimesion; viz. Angle = asin (Vertical Dimension / Length of radial line).

Change the vertical dimension (which defines the vertical position of the circle) and the radial line will rotate, taking the circle with it.

I've already done all that, and it works for me, but I don't know how to change the vertical dimension in a series of defined increments (e.g., 25 mm).

I still maintain that it's easier to relocate/copy the circle manually.

Henry H

"I still maintain that it's easier to relocate/copy the circle manually."

True Henry, But thanks to you we learn something here in this example :)

"I've already done all that, and it works for me, but I don't know how to change the vertical dimension in a series of defined increments (e.g., 25 mm)."
Wouldn't the "constraint" function 'set variable" in Animation lab work.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Henry Hubich

" 'I've already done all that, and it works for me, but I don't know how to change the vertical dimension in a series of defined increments (e.g., 25 mm).'

"Wouldn't the "constraint" function 'set variable" in Animation lab work."

Don't know. Haven't tried AniLab for a while.

Henry H

Torfinn

A New ppm that lift it in the Y direction by step heigth.

On this one i use the sagitta ( arrow heigth ) to calculate the x distance and it will work best with angle between -45 to 45
With the standard setting like it is in the ppm today there will be a "dead" area between 56 and 124 degree, this becouse it cant go over the center of the big sircle as there will be no edge to meet after 90 degree i guess.

I set one to 156 degree and the first circle will be placed there because ot the rotation but the rest will be moved over to the rigth side, but still one stephigth up.

As i say it was a boring ppm to make with a lot of writhing for calculate every point, or more correct, copy and adjusting  :)
And by that i only make it possible with 10 copy's, sort of lazy  ::)

I also made one that use rotate but there was some problem with starting in like angle 333 i e , this i believe is becuse it will give a negative sin value and by that i will not get a correct asin value ( angle ) and then when calculate from radian to degree causes even more trouble :)
So what i'm now working on is to make it in the area between 0 and 90 ( 56 ? ) and then rotate it to the correct angle later as the way it will calculate/ look will be the same for a 90 degree rotation around Z.

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB