Dynamic Block Shenanigans

Dynamic Block Shenanigans

AJ_Greentech_Renewables
Explorer Explorer
884 Views
6 Replies
Message 1 of 7

Dynamic Block Shenanigans

AJ_Greentech_Renewables
Explorer
Explorer

FIXED! SEE SOLUTION IN COMMENTS BELOW. THANK YOU! 

I'm hoping this is a stupid easy fix. I'm not very skilled with dynamic blocks and none of the online tutorials or autocad videos have helped.

 

Here is what I need my block to do.

  • 36" PV panel side view with linear array to add another module next to it with a 1 inch space. (array set to 37" to allow 1 inch spacing between modules)

  • Dimension that will stretch to include each panel added. (stretch set to 37" dist increments)

    • Example:
      • If there is one module, the dim will read 3'-0".
      • If there are 2 modules, the dim would read 6'-1".
      • If there are 3 modules, the dim would read 9'-2"
      • and so on...

The problem:

(see screencaps) (BLOCK POSTED BELOW) (screenshot of desired outcome also posted below)

  • I can create the dimension stretch that increases by 37" just fine.

  • I can create the module array that adds a new module with 1" spacing just fine.

  • As soon as I try to put both actions on the same parameter, the first action stops working. Right now, I created the dimension stretch first, added the array, and now the dimension doesn't stretch while the array works fine.

The only thing that I can think of that would screw it up is the fact that the parameter (DISTANCE 1) is 37" and starts 1" to the right of the 36" module to keep the 1" gap between modules. The dimension I need to stretch is 36" like the module. I wouldn't think that should be a problem since I'm only grabing one side of the dims, but here we are.

 

If anyone has any thoughts I would be grateful for the assist. Check out the screencaps to see if you notice any errors in my process.

Thank you!

0 Likes
Accepted solutions (2)
885 Views
6 Replies
Replies (6)
Message 2 of 7

j.palmeL29YX
Mentor
Mentor

Post your block(s) 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 3 of 7

AJ_Greentech_Renewables
Explorer
Explorer

Block Attached. Thank you. 

0 Likes
Message 4 of 7

j.palmeL29YX
Mentor
Mentor

@AJ_Greentech_Renewables wrote:
  • ...

  • As soon as I try to put both actions on the same parameter, the first action stops working. Right now, I created the dimension stretch first, added the array, and now the dimension doesn't stretch while the array works fine.

 


I hoped to understand your issue after looking at your file, but unfortunately I still can not see what you want to achieve.

What do you want to stretch - the 3' rectangle to another length? Then the 37" increment for Distance1 and a gap of 1" between the instances doesnt't make sense. Or ... ? (I supress here all my thoughts how I could otherwise interprete your block).

Would you please show an example how the block should look after dragging the Distance1 Parameter?

And what is with the other visibility states (two of them don't have an initial length of 3')?

 

I am confused ...

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 7

AJ_Greentech_Renewables
Explorer
Explorer

Screenshot attached:

 

If there is one module, the dim will read 3'-0".

If there are 2 modules, the dim would read 6'-1".

If there are 3 modules, the dim would read 9'-2"

and so on...

0 Likes
Message 6 of 7

h_s_walker
Mentor
Mentor
Accepted solution

@AJ_Greentech_Renewables Your dimension is associated with the first line, which is why it's not stretching.

When in the block editor type DIMDISASSOCIATE and then select the dimension. It will now stretch as you want it to.

See the image below (you will also note that I'm in the "Test Block" screen) showing it working

hwalker_0-1709229561355.png

 

Howard Walker
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


Left Handed and Proud

Message 7 of 7

MMcCall402
Mentor
Mentor
Accepted solution

Use DIMDISASSOCIATE to fix the dimension line behavior.

 

 

Mark Mccall 
CAD Mangler


EESignature


VHB - Engineering, Inc.