Polar stretch parameter and Polar stretch action Problem

Polar stretch parameter and Polar stretch action Problem

wael6URAQ
Enthusiast Enthusiast
1,038 Views
22 Replies
Message 1 of 23

Polar stretch parameter and Polar stretch action Problem

wael6URAQ
Enthusiast
Enthusiast
 

I have a problem using the polar stretch parameter and polar stretch action in my dynamic blocks
This is the original shape of my block:

wael6URAQ_2-1651286208369.png

I added two main parameters to modify the length and the width of the block as shown in the next two green clouds:

wael6URAQ_3-1651286494372.png

Another secondary polar parameter is chained to the main two parameters  to move the line marked R4 and rotate it automaticly to result the follwing:

wael6URAQ_4-1651286839289.png

This is the hoped result so that the mark and the line lenght and the angle are parrallel as shown

also the point for stretching its dim line should be at the middle of the mark as shown.

 

unfortunatly the result is as the following:


wael6URAQ_5-1651287074399.png

 

I attached the block

Please help to fix this problem.

 

 

0 Likes
1,039 Views
22 Replies
Replies (22)
Message 2 of 23

j.palmeL29YX
Mentor
Mentor

Using a block with constraints you can do >>this<<

- change the value of d1 to 4000

- change the value of d2 to 6801

- change the value of d3 to 2000

 

Your R4 is not necessary for such modifications. 

 

BUT I'm not sure which values you really want to "drive" the geometry. 

Do you really want d2 or (perhaps better) the horizontal width of the shape?

Do you want drive this three dimensions or do you want as result, that the R5 line always touches the both lines at the midpoints? (Then is one of dimensions d1, d2 or d3 not necessary. It's your choice which of them you delete). 

Your description leads to an over constrained geometry: If d3 is always the half of d1, then the R5 line will touch the both lines always in the midpoint (regardless of the length of d2). 

You should exactly define, which values you want free to change, and think about, which values are the geometrical result. 

 

Please clarify ...

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 3 of 23

wael6URAQ
Enthusiast
Enthusiast

thanks a lot for your effort and advise 

 

Unfortunately this is not what i want but in the same time I cannot explain what i want

 

I ll try to record a video for what i want and upload .

0 Likes
Message 4 of 23

wael6URAQ
Enthusiast
Enthusiast

in the meanwhile can you please explain why The Attribute named (R4) and the 2 fields below are not rotating correctly with the line???

0 Likes
Message 5 of 23

j.palmeL29YX
Mentor
Mentor

@wael6URAQ wrote:

 

I ll try to record a video for what i want and upload .


 

In the meantime my next attempt. 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 6 of 23

wael6URAQ
Enthusiast
Enthusiast

Many Many Thx

0 Likes
Message 7 of 23

wael6URAQ
Enthusiast
Enthusiast

THANKS ALOT

NOW THE ATTRIBUTE TAKES THE LINE ROTATION PROPERLY

BUT NOW THE ATTRIBUTE IS FIXED

IS THERE A WAY TO BE ABLE TO MOVE THE ATTRIBUTE  RIGHT LEFT UP DIWN LIKE THE POINT PARAMETER WITH MOVE ACTION LIKE WHAT I USED IN MY ORIGINAL BLOCK??

0 Likes
Message 8 of 23

wael6URAQ
Enthusiast
Enthusiast

ALSO PLEASE I NEED TO NOW HOW DID YOU MAKE THE PARAMEERS INVISIBLE??

 

0 Likes
Message 9 of 23

j.palmeL29YX
Mentor
Mentor

@wael6URAQ wrote:

ALSO PLEASE I NEED TO NOW HOW DID YOU MAKE THE PARAMEERS INVISIBLE??

 


 

In >>this<< post some days ago I tried to explain some "secrets" using parametric constraints in Dynamic Blocks. 

 

HTH

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 10 of 23

j.palmeL29YX
Mentor
Mentor

@wael6URAQ wrote:

 

IS THERE A WAY TO BE ABLE TO MOVE THE ATTRIBUTE  ...


 

It should be possible I think. But before I try to implement that let us know, if you really need/wish a free movement in all directions or perhaps only along the line to which they are parallel? Or "fix" them near the middle of the line (as I did with the RR2 )?

 

 

By the way, please do not shout! (that is, do not write the whole text in capital letters. That reads terribly 😞 )

 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 11 of 23

wael6URAQ
Enthusiast
Enthusiast

First I want to apologize about the shouting issue really didn't mean any disrespect.

Second Yes I need free movement for all attributes and dimensions because i use this type of blocks in more crowded structures which need neeting to avoid clashes.

0 Likes
Message 12 of 23

wael6URAQ
Enthusiast
Enthusiast

example1

0 Likes
Message 13 of 23

wael6URAQ
Enthusiast
Enthusiast

example2

0 Likes
Message 14 of 23

wael6URAQ
Enthusiast
Enthusiast

example3

0 Likes
Message 15 of 23

wael6URAQ
Enthusiast
Enthusiast

My main concern is to fully understand the behavior of the polar Strech action and why it is not acting as i wish when it is chained to another parameters from start and end in the same time as my blocks.

0 Likes
Message 16 of 23

j.palmeL29YX
Mentor
Mentor

I think now I understood what you need. >>Click<< 

Have a close look at the attached file to analyze what I did. I hope you see the principle, even if I added only the "actions" for two of the attributes. 

(After changing the Length and/or the Width you must of course regen the file to update the values of the fields. The attributes are rotated in a correct manner. With the point grip you can/must move the attributes to an appropriate position.) 

 

For a better compare of both blocks my block patest-3 still includes your old geometry. And I did not yet change the constant property of my attributes to yes. but I think such trivia you can correct yourself. 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 17 of 23

wael6URAQ
Enthusiast
Enthusiast

thank you sir this is almost exactly what i need.

 

it is not clear to me which point did you use to associate the polar stretch parameter (start or second)

also what about the point for moving the dimension line......i tried it but it is not rotating to be in the middle of the dimension line text as it should be

0 Likes
Message 18 of 23

j.palmeL29YX
Mentor
Mentor

@wael6URAQ wrote:

 

it is not clear to me ...


 

>>Here<< you can see what I did. 

But I must admit that this is still far away from the functionality shown in your examples. And also I don't know how to make the dimensions moveable as you expect. 

Where are the examples coming from, CAn't you contact the author of these files and ask him what and how he did these blocks? For me, I reached the end of my knowledge  😞 

 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 19 of 23

wael6URAQ
Enthusiast
Enthusiast

I m the author of this blocks 🙂
I created them from scratch and i have many more.
I managed to reach this level by trial and error and not by fully understanding the behavior.

Some times it works by 2 polar stretch at the start and at the end and using multiplier 0.5 both.

Some Times  by 2 polar stretch at the start and at the end and using multiplier 0.5 at one and -0.5 at the other.

Some Times  by 1 polar stretch at one end and multiplier 0.5  but he other end i use stretch only with multiplier =1.

Some Times  by 1 polar stretch at one end and multiplier 0.5  but he other end i use stretch only with variable multiplier value by trial and error.

 

Some times i reverse the stretch and the polar if it doesnot work .

 

any way thank you sir for your time and effort

0 Likes
Message 20 of 23

wael6URAQ
Enthusiast
Enthusiast

I think you thought that i m not the author of this blocks because of my question:

"it is not clear to me which point did you use to associate the polar stretch parameter (start or second)"

 

I only asked this cause i noticed that it matters and doesnt give the same result

And I dont know a way to reach this information from a ready block 

 

Some times by mistake i choose the start point and put the stretch frame around the other which gives very strange behaviour and i dont have a way to check this except deleting and redoing.

0 Likes