Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
Community
Dynamic Blocks Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Give dynamic array distance a variable length

12 REPLIES 12
SOLVED
Reply
Message 1 of 13
ohalloba
3476 Views, 12 Replies

Give dynamic array distance a variable length

Hello everyone, 

 

I'm trying to create a "bifold glass door" dynamic block that can be arrayed, but the door can also be adjusted to different sizes and still be arrayed while being attached. When I use an array it only allows me to pick a static distance. I was wondering if it was possible to change that static distance to a variable depending on the glass door size.  Thanks! 

12 REPLIES 12
Message 2 of 13
j.palmeL29YX
in reply to: ohalloba

Post your 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

Message 3 of 13
ohalloba
in reply to: j.palmeL29YX

2e5d6eaab55b0e937605724bb3cc00c2.png

f34ee72863444fda33f4727d78b05811.png

  I'm trying to make it so no matter the size you stretch it, the windows will always array the length of the window. I'm relatively new to dynamic blocks.

Message 4 of 13
j.palmeL29YX
in reply to: ohalloba

Are you looking for something like >>this<<

 

 

 

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 13
ohalloba
in reply to: j.palmeL29YX

Thank you so much for creating the block, but I'd love to know the steps for the future if it's not a bother. Thanks again.  

 

Message 6 of 13
j.palmeL29YX
in reply to: ohalloba


@ohalloba wrote:

I'd love to know the steps for the future if it's not a bother.   

 


 

My first attempt above was not well designed, therefore you find here attached an improved version. 

The main principle: As far as I know it is not possible to modify the source object(s)  of an array inside a dynamic block. But in the current case you can create a dynamic array and hide the unwanted parts of the middle line behind a wipeout. You can follow the detailed steps in >>this video<<

(I'm afraid it is not easy to understand. If you have further questions, ask again).

 

Hint: In the current version the user must ensure that the Length overall must be greater than the 2*Width (or the Width must be smaller than Legth/2. In a later version this can be included in the block definition).

 

 

 

 

 

 

 

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 7 of 13
ohalloba
in reply to: j.palmeL29YX

Amazing video and I'm following along nicely, but at the part where we have to array the 2 rectangles on a path, I get an error saying "A dimensional constraint or user variable with an expression has been set to a numerical value." And deletes the "Width" dimension on the top, but I'm following your instructions step by step.  

Message 8 of 13
ohalloba
in reply to: j.palmeL29YX

before arraybefore arrayAfter arrayAfter arrayas I exit arrayas I exit array

 

When I copy and paste your block into my drawing that message pops up again and ruins the block

Message 9 of 13
j.palmeL29YX
in reply to: ohalloba

At the latest before creating the array set the system variable DELOBJ to 0. 

(After creating the array you can set DELOBJ back to the value of your need).

Try if that helps and let me know. (I'm not yet sure why that "When I copy and paste your block into my drawing that message pops up again and ruins the block" happens. )

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 13
ohalloba
in reply to: j.palmeL29YX

I got everything working, thank you so much!

Message 11 of 13
heretic2k
in reply to: ohalloba

You can use constraint parameters to achieve your ideas

Message 12 of 13
heretic2k
in reply to: ohalloba

You can use constraint parameters to achieve your ideas

Message 13 of 13
j.palmeL29YX
in reply to: heretic2k

@heretic2k 

Obviously this suggestion refers to another thread ( ?).
But regardless of that, allow me a few hints:
- You forgot a coinzident constraint. 

 

 

 


Now it works.

 

 

- Next: I'd suggest to constrain as much as possible using geometrical constraints. As example: you can (and should) delete all the dimensional parameters, which depend on W (d1, d3, d5, d6, d7). Use "Equal" constraints instead. The same for all dimensions depending on T.

 

- Additional: For all those dimensions that may be necessary but should not be controlled by the user, don't use dimensional constraint Parameters (bcparameter command). Use instead suitable dimensional constraints (one of the dc... commands). (In the current example we don't need such dimensions)

 

Bonus: For fun I added an angular constraint to open/close the door.

 

 

My 2ct only

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report