Action parameter - user parameter gives a function error

Action parameter - user parameter gives a function error

Anonymous
Not applicable
4,119 Views
12 Replies
Message 1 of 13

Action parameter - user parameter gives a function error

Anonymous
Not applicable

Hi,

 

I try to create a dynamical block with user-parameters dependent on action parameters.

 

This gives me an expression error: "A dependent expression cannot be evaluated"
I don't know why he gives me this error because the parameters manager gives me a value for this action parameter;

 

I want this expressions:
Length = 800                                     (action parameter - this length drives the rest of the parameters)
Size=Length/Count                            (dim. constraint parameter)
RefSize=200                                     (user parameter)
Count=round(Length/RefSize)         (User parameter)

 

Is there a way to use Action parameters in expressions?
Greetings
Stijn Tas

 

Accepted solutions (1)
4,120 Views
12 Replies
Replies (12)
Message 2 of 13

ToanDN
Consultant
Consultant

Try this.

Message 3 of 13

S_S_SS
Advocate
Advocate
I have the same question and i can't get solution until now
0 Likes
Message 4 of 13

j.palmeL29YX
Mentor
Mentor

Describe detailed the expected functionality of the block please. 

 

 

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

S_S_SS
Advocate
Advocate

First sir...

2112.GIF

 it appear that there is error in it 
this mean that there is error in my setup program ?? 
second can i use field in user define parameter ?? 

0 Likes
Message 6 of 13

j.palmeL29YX
Mentor
Mentor

Show us your block please. In the image we can not see what you did. We need a .dwg to help you. 

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 13

S_S_SS
Advocate
Advocate
Thanks sir for interest .....
Just a Simple question now
can i use field in expression of action parameter or dimensional parameter or even user parameter ??
If answer is yes how can i do that ?
and If answer is no i will explain what i need for more help
0 Likes
Message 8 of 13

j.palmeL29YX
Mentor
Mentor

@S_S_SS wrote:

can i use field ... 

 

AFAIK no, neither nor. 

 

(A field is "only" a MText object, whose content can e updated automatically. It does not represent any value (like a user parameter), but only shows a value. It can not be used for further operations. )

 

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 13

S_S_SS
Advocate
Advocate

OK sir .... https://autode.sk/3i4xr40

first:- this link may show you what i want ...
and i will explain it ..
i want to make array path divide with equal spacing i use user parameter to input spacing and use equations to make spacing not exceed what i insert in my user parameter thus i put equation in no.of items about array path divide
equation is no.of items= (length of line(the path) /spacing between items)+2
i want to define length of line to make that equation accepted in auto CAD thus i use dimensional parameter
but I use visibility and i want stretch of timber visibility equal to the stretch of the path line in one time to save my effort and time ...

so i wanted to make one parameter of stretch to timber and decking(the path line) in the same time  and use field or something like that to get the length of path of array to make my equation of array accepted





0 Likes
Message 10 of 13

j.palmeL29YX
Mentor
Mentor

Sorry, I still don't completely understand what you want to achieve. 

Would you please again explain, what all the block should do. Where do you want to have a grip (ore some grips). What should happen if you drag the grip(s). Which dimensions of the geometry you want to able to change dynamically? Don't try to explain how you would solve it (or what you think how it can get done) - only, what you have and what you want to modify to which result. The best would be you show us (may be manually drawn) some situations how the block should look after modifying. I am hopeful that we will find a solution. 

 

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 13

S_S_SS
Advocate
Advocate

ok sir 
I Know that it will be complicated to explain it thanks for advice to show what i need 
i attach file pdf that show what i need 

0 Likes
Message 12 of 13

j.palmeL29YX
Mentor
Mentor
Accepted solution

I am still not quite sure how your block should work. Since I don't know the overall functionality, I've limited the attached suggestion to a solution for the main problem (as I understood it).
With only one handle the width of the geometry can be changed. Both visibilities follow the changed width respectively.  >>video<< 

Maybe you can apply this suggestion to your whole block.

 

 

 

 

 

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.

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

S_S_SS
Advocate
Advocate
Thanks very much ...
That's exactly what i need......
0 Likes