Aligned Constraint Parameter Grip doesn't rotate on first attempt.

Aligned Constraint Parameter Grip doesn't rotate on first attempt.

RDunkley
Advocate Advocate
463 Views
8 Replies
Message 1 of 9

Aligned Constraint Parameter Grip doesn't rotate on first attempt.

RDunkley
Advocate
Advocate

Hi, My block has a Grip for an Aligned Constraint Parameter that when the block is rotated for the first time (After I use 'Reset Block') the grip does not rotate with the group. For all subsequent rotate commands it works fine?

I would appreciate if anyone can shed some light on the issue.

 

Note: I have tried to modify parameter orders, re-create the elements in a different order all with no luck.

Note 2: When saving the block I get a warning saying "The geometry in the block is not fully constrained." But all my attempts to address this don't seem to work either.

 

Currently using Civil 3D 2024 & AutoCAD 2025
0 Likes
Accepted solutions (1)
464 Views
8 Replies
Replies (8)
Message 2 of 9

j.palmeL29YX
Mentor
Mentor

A mix of parametric constraints with dynamic parameters will fail in most cases (q.e.d. 😉 ). 

Instead of the Aligned Constraint Parameter I'd suggest to use a Linear Parameter and a stretch action.

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 9

Libbya
Mentor
Mentor

Don't use an aligned constraint.  Use a linear parameter with stretch action.  See attached.

 

Ha, after posting I see that   posted the same advice while I was typing.

Message 4 of 9

RDunkley
Advocate
Advocate

Thanks @j.palmeL29YX and @Libbya,

Unfortunately I need to use the Aligned Constraint Parameter as it is driven by a formula using a Custom Parameter that arrays and adjusts the spacing dynamically.

Any other suggestions? 🤔

Regards.

 

Currently using Civil 3D 2024 & AutoCAD 2025
0 Likes
Message 5 of 9

Libbya
Mentor
Mentor

Give details regarding the formula and custom parameter being used.  

0 Likes
Message 6 of 9

j.palmeL29YX
Mentor
Mentor

@RDunkley wrote:

Thanks @j.palmeL29YX and @Libbya,

... I need to use the Aligned Constraint Parameter


If so, then you must drive the geometry completely by constraints. For example you must use an Angular Constraint Parameter instead of the Rotation Parameter and Action. 

But I'm afraid then you come with the next request. As long as we don't know the complete expected functionality of the block we can no help.

 

 

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 9

RDunkley
Advocate
Advocate

Hi @j.palmeL29YX and @Libbya.

Thanks. The block attached in my original post works exactly as intended, other than the behaviour of the first rotation where the Alignment Constraint Parameter grip doesn’t follow the rotation. Any subsequent rotations work as the grip ‘corrects’ itself. So you could see how it is set up in there.
Essentially the Alignment Constraint Parameter is referenced in a Custom Parameter formula for ‘ItemNo’. The ‘ItemNo’ is used in the ‘Number of Items’ field of the Array (Although it doesn’t show in the Properties palette).

This allows me to have arrow markings that are always evenly spaced between a range (currently 15m min. to 30m max.) and the number of items grows as the grip is extended.

Regards.

Currently using Civil 3D 2024 & AutoCAD 2025
0 Likes
Message 8 of 9

j.palmeL29YX
Mentor
Mentor
Accepted solution

I stand by my opinion: combining dynamic parameters/actions with parametric constraints risks causing the block to behave unexpectedly. Why don’t you accept the suggestion to use an angular constraint parameter (instead the rotation parameter/action) for the rotation?

 

Sophistical (pedantic) note:

Your formula doesn't restrict the distance of the array items between 15 and 30, but it only restricts that the distance will never exeed the upper value (30). In your model that doesn't matter.

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

RDunkley
Advocate
Advocate

Thanks @j.palmeL29YX,

Your suggestion to use the Angular Constraint Parameter was a great one. It works really well, Thankyou.

I was just curious as to whether there might be something else I was missing... 

Regards.

Currently using Civil 3D 2024 & AutoCAD 2025
0 Likes