Dynamic block -Stretch into array, while array can stretch as wel

Dynamic block -Stretch into array, while array can stretch as wel

J.VandeMerckt
Advocate Advocate
798 Views
10 Replies
Message 1 of 11

Dynamic block -Stretch into array, while array can stretch as wel

J.VandeMerckt
Advocate
Advocate

Confusing Title but I'll try to explain with this picture.

JVandeMerckt_0-1703088069796.png

I'm trying to build a dynamic block that can stretch the first 750 to a max of 1500 and once the 1500 is exceeded (1501) another 750 has to be added which is again stretchable.
Is this possible with one single grip? I was think about combining a array and stretch but so far no luck. 

Thank you for helping 🙂

 

0 Likes
Accepted solutions (1)
799 Views
10 Replies
Replies (10)
Message 2 of 11

MMcCall402
Mentor
Mentor

Check out the attached.  It uses a double lookup to trigger one of two visibility states when the length exceeds 1500.

Mark Mccall 
CAD Mangler


EESignature


VHB - Engineering, Inc.

Message 3 of 11

j.palmeL29YX
Mentor
Mentor

 

Discontinuity.png

 

Suppose we place a handle (yellow) on the right-hand side so that we can choose the length over all. The length can be changed continuously between 750 and 1500. As soon as the value 1500 is exceeded, the handle should now jump to the value 2250 (red). The user may and can never select a value for the total length in the range between 1500 and 2250. The same is repeated in the range 3000 to 3750 and so on. The total length can therefore only be changed discontinuously. Is this really what you want to achieve?

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 11

J.VandeMerckt
Advocate
Advocate

Hi Mark

 

Tnx for the help, this is exactly what I asked but unfortunately not what i meant 🙂
It's still going in the right direction tho.

So once the 750 is added this one should also be able to be stretched until 1500, once this one is exceeded another 750 gets added. This proces should be repeated until forever.
Is this clear if not please let me know and I'll try to clarify.

 

Br

Justin

0 Likes
Message 5 of 11

j.palmeL29YX
Mentor
Mentor

@J.VandeMerckt wrote:

 

So once the 750 is added this one should also be able to be stretched until 1500, once this one is exceeded another 750 gets added. This proces should be repeated until forever.


 

That's exactly how I understood your question. But my question remains:: if you drag a grip at the right end (as I guess) and the distance of this item exeeds the 1500, then a 750 item will be added AND THE GRIP MUST JUMP IMMEDIATELY TO THE NEW RIGHT END of the array for further dragging. And also the length overall will jump a 750 step. I repeat. Do you want such a behavior? (I have some ideas how perhaps to solve that, but I don't want to waste time before the goal is clear riding the wrong horse).

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

J.VandeMerckt
Advocate
Advocate

Hi Jürgen

Thank you for replying.
I was looking at the block and am not convinced my first Idea is the correct route to take.
Atm I made another block which adds a array according to the total length and is also adjustable within the correct parameters.
I have one problem that the block has to be used in a certain way or it breaks.
First I have to use the node to change the total length, second I can adjust the first part of the block.
If I use it the other way around it breaks.
I have added the block to show what I mean.
Can I fix this problem so I can use whatever node first without have the second node breaking the block?

Br
Justin

 

0 Likes
Message 7 of 11

J.VandeMerckt
Advocate
Advocate

Hi Mark

 

I added what I have right now in my previous reply to Jürgen.

Feel free to have a look!

 

Br

Justin

0 Likes
Message 8 of 11

J.VandeMerckt
Advocate
Advocate
Also to answer your original question. I would like to see how this kind of behavior's possible out of pure curiosity. If it is a lot of work to set up a block like this, please don't bother. I don't want to put people to work just for my curiosity. Atm I'm trying to learn how to setup these kind of blocks. This kind of flow isn't my end goal. But throwing the whole project on the forum isn't my plan as well.
0 Likes
Message 9 of 11

j.palmeL29YX
Mentor
Mentor
Accepted solution

Attached a first attempt. 

 

[EDIT]:

That was created before reading your posts#6 - post#8.  (I read your last posts after sending my post #9)

 

 

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 10 of 11

J.VandeMerckt
Advocate
Advocate
Hi Jürgen

Thank you for helping.
I change the fixed point to the end and added a increment. This is looking very promising.
In dimension d4 you used "min" and in user parameter you used "floor", What are these and what do they do in the formula? (probably a stupid question but I need to ask)

I didn't know you could use parameters like this in Autocad. Looks the same as in Inventor. This is gonna be a great help for the project. Thank you!!
0 Likes
Message 11 of 11

j.palmeL29YX
Mentor
Mentor

 

parameters ... in Autocad. Looks the same as in Inventor.

Yep. This "Parametric" (since ACAD 2010) is very similar to the geometric and dimensional constraints in Inventor. There are some differences to Inventor (e.g. in AutoCAD you can not use reference parameters in expressions, in Inventor you can; and some other small differences too), a big difference: in AutoCAD you can use parametric in the 2D environment only (just as Dynamic Blocks). 

 

"min" and "floor", What are these and what do they do in the formula?

The min function returns the smaller element of two values (which are separated by a ";" )

The floor function returns the value down rounded to the next smaller Integer. 

 

For more details how to use Parametric in AutoCAD and especially in Dynamic Blocks here is IMO the wrong thread. 

But no problem if you have further questions. 

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