Dynamic Block - Variable constraints and fixed values - is this possible?

Dynamic Block - Variable constraints and fixed values - is this possible?

williamt7RZKF
Explorer Explorer
347 Views
5 Replies
Message 1 of 6

Dynamic Block - Variable constraints and fixed values - is this possible?

williamt7RZKF
Explorer
Explorer

Good morning Hive Mind, 

 

I'm working a developing a dynamic block for cut parts that are used in shipbuilding. 

 

what I'm trying to do is make a bracket length proportional to the depth of the web of the cut part.  but with a fixed minimum value. 

 

The rule is simple, its bracket length = 1.5x the depth of the web, so a 100mm web depth would give a 150mm bracket length. the issue is the bracket length cant be less than 100mm. for example when you have a 50mm deep web the rule would state that the bracket length would be 75mm, which would not give enough weld attachment. 

 

I have started with a list option on the bracket length so it can't be smaller than required, but I would like to add little more intelligence to the block. 

 

please see the screen shots for an instance where it is used, the current dynamic block, and the two areas that I would like to communicate to each other. 

2025-07-25_07h53_02.png

williamt7RZKF_0-1753434540870.png

2025-07-25_08h33_45.png

 

there are several other issues with but I'm stumped on this one at the minuet

 

Thank you for any hints and tips

 

Will 

0 Likes
Accepted solutions (2)
348 Views
5 Replies
Replies (5)
Message 2 of 6

CGBenner
Community Manager
Community Manager

@williamt7RZKF 

Welcome to the Community, Will.  Thank you for the detailed question and for sharing the file for the experts to look at.  Good luck!

 

Did you find a post helpful? Then feel free to give likes to these posts!
Did your question get successfully answered? Then just click on the 'Accept solution' button.  Thanks and Enjoy!


Chris Benner
Community Manager

Message 3 of 6

j.palmeL29YX
Mentor
Mentor
Accepted solution

For the bracket length I'd use a value 

Bracket_length=max(1.5*web_depth,100)

 

 

 

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

j.palmeL29YX
Mentor
Mentor

@williamt7RZKF wrote:

 

there are several other issues with 


Some suggestion: 

 

 

 

BTW: A lot (all?) of your construction lines may/should be deleted. You don't need it. 

An example result attached. 

 

 

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 5 of 6

williamt7RZKF
Explorer
Explorer

Good morning Jürgen, 

 

thank you very much for your solution, it works perfectly. as I'm just getting started on Dynamic blocks and constraints, it look any constraint could be written in the same format as an excel calculation, would this be correct?

 

thank you also for your suggestions, I have added them in to the dynamic block. 

 

Hope you have a good week.

 

Will

 

 

0 Likes
Message 6 of 6

j.palmeL29YX
Mentor
Mentor
Accepted solution

@williamt7RZKF wrote:

 

... constraint could be written in the same format as an excel calculation, would this be correct?

 

 

 

 


F1 (Help): 

 

 

Use Operators in Expressions

Dimensional constraint parameters and user variables support the following operators within expressions:

Operator Description
+ Addition

-

Subtraction or unary negation

%

Floating point modulo
*

Multiplication

/ Division
^ Exponentiation
( ) Parenthesis, expression delimiter

.

Decimal separator
Note: With imperial units, the Parameters Manager interprets a minus or a dash (-) as a unit separator rather than a subtraction operation. To specify subtraction, include at least one space before or after the minus sign. For example, to subtract 9" from 5', enter 5' -9" rather than 5'-9".

Understand Precedence in Expressions

Expressions are evaluated according to the following standard mathematical rules of precedence:

  1. Expressions in parentheses first, starting with the innermost set
  2. Operators in standard order: (1) unary negation, (2) exponents, (3) multiplication and division, and (4) addition and subtraction
  3. Operators of equal precedence from left to right

Functions Supported in Expressions

The following functions are available for use in expressions:

Function Syntax
Cosine cos(expression)
Sine sin(expression)
Tangent tan(expression)
Arc cosine acos(expression)
Arc sine asin(expression)
Arc tangent atan(expression)
Hyperbolic cosine cosh(expression)
Hyperbolic sine sinh(expression)
Hyperbolic tangent tanh(expression)
Arc hyperbolic cosine acosh(expression)
Arc hyperbolic sine asinh(expression)
Arc hyperbolic tangent atanh(expression)
Square root sqrt(expression)
Signum function (-1,0,1) sign(expression)
Round to nearest integer round(expression)
Truncate decimal trunc(expression)
Round down floor(expression)
Round up ceil(expression)
Absolute value abs(expression)
Largest element in array max(expression1;expression2)
Smallest element in array min(expression1;expression2)
Degrees to radians d2r(expression)
Radians to degrees r2d(expression)
Logarithm, base e ln(expression)
Logarithm, base 10 log(expression)
Exponent, base e exp(expression)
Exponent, base 10 exp10(expression)
Power function pow(expression1;expression2)
Random decimal, 0-1 Random

In addition to these functions, the constants Pi and e are also available for use in expressions.

 

 

 

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