Dynamic Block with Action Parameter and Constraint Parameters

Dynamic Block with Action Parameter and Constraint Parameters

CNinBC
Advocate Advocate
692 Views
7 Replies
Message 1 of 8

Dynamic Block with Action Parameter and Constraint Parameters

CNinBC
Advocate
Advocate

I would like to create a pavement marking block with scalable symbol in the middle with a fixed width circle around the symbol as shown below. Ideally, I wish using the "rad1" constraint parameter grip to change the size of the block, scale the symbol in the center (which is the "A" as an example), while maintaining the width of the circle to be 0.1m.

 

the issue is I couldn't find a way to associate the "rad1" to a scaling action or pass the value of "rad1" to the "Distance1" action parameter using the expression. is there a way to achieve the goal?

I also tried to use "Distance1" action parameter grip and pass the value of "Distance1" action parameter to "rad1", it didn't work as well. looks like these two type parameters do not talk to each other.

 

Thanks.

CNinBC_0-1707777874859.png

 

0 Likes
Accepted solutions (1)
693 Views
7 Replies
Replies (7)
Message 2 of 8

Libbya
Mentor
Mentor

Post the block. 

 

From the pic you posted and your description, it appears to be very easily done using only dynamic parameters/actions.  Is there some reason you are set on using constraints?

0 Likes
Message 3 of 8

j.palmeL29YX
Mentor
Mentor
Accepted solution

You don't need constraints. 

Test the attached suggestion. 

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 4 of 8

CNinBC
Advocate
Advocate

Hi @Libbya, thanks for getting back to me. I couldn't figure out a way to scale the whole thing up and down while keeping the width of the circle at 100mm wide. any suggestions? Thanks.

0 Likes
Message 5 of 8

CNinBC
Advocate
Advocate

wow, that's amazing, thanks @j.palmeL29YX .

0 Likes
Message 6 of 8

j.palmeL29YX
Mentor
Mentor

Above I added an upgraded version. The result looks IMO better for small circles.

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 7 of 8

j.palmeL29YX
Mentor
Mentor

@CNinBC wrote:

I looks like these two type parameters do not talk to each other.


FYI: For future similar issues: It's correct - this way of solution will always be without success. 

 

 

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 8 of 8

CNinBC
Advocate
Advocate

Thanks @j.palmeL29YX, after analyzed your first solution, I used the similar solution on my block with the move parameter removed, the only difference is I used grip on the outside boundary of the circle.

 

Thanks again.

0 Likes