dimension array

dimension array

ndikesh
Contributor Contributor
2,010 Views
4 Replies
Message 1 of 5

dimension array

ndikesh
Contributor
Contributor

I've made a dynamic block with the solution from another post.

The block consists of line array(the distance between the lines can be changed thru fx) and dimension. array works fine for line but not the dimension.

Also there needs to be a line at the end of array even if the total distance is shorter.

i've attached the block, any help would be much appreciated.

0 Likes
Accepted solutions (1)
2,011 Views
4 Replies
Replies (4)
Message 2 of 5

fatal.error
Advocate
Advocate
Accepted solution

At first, you should replace the polar parameter with a linear parameter to avoid non-orthogonal behavior.

 

Try adding a MOVE action associated to the Distance modular linear parameter.

Make sure to include the end line, the 200 dimension and the Distance remainder on the selection set.

 

Screenshot 2021-06-02 191027.jpg

 

In the properties palette, set Distance modular's Dist type to Increment, and type 500 in Dist increment.

 

Please see the attached final result.

 

 

0 Likes
Message 3 of 5

ndikesh
Contributor
Contributor

The block works great, however if I was able to edit the "distance modular" parameter from outside block, it would be awesome.. 

Appreciate your effort. Thanks.

0 Likes
Message 4 of 5

fatal.error
Advocate
Advocate

Let's try a different approach:

 

1. On the Block Editor, draw a rectangle.

 

2. Create a Linear Constrain along the rectangle's base and rename it as TotalDistance.

 

Screenshot 2021-06-03 004115.jpg

 

3. Open the Parameters Manager and create two different User Parameters: name the first one as ModuleDistance and set a default value of 500. Name the second one as ModuleQuantity and set a locked value of "TotalDistance/ModuleDistance+1" without the quotes.

 

Screenshot 2021-06-03 004210.jpg

 

4. Create a rectangular array made of two vertical (yellow) lines separated by 500.

 

5. On the Properties Panel Misc section, find Columns and type ModuleQuantity.

 

6. On ColumnSpacing type ModuleDistance.

 

Screenshot 2021-06-03 004255.jpg

 

7. Save and insert the block into the drawing. To adjust block module's distance, select it and open the Properties Panel. To adjust block length, drag the blue grip on the corner. Please see the attached result.

0 Likes
Message 5 of 5

ndikesh
Contributor
Contributor

Thanks for your help but I'm not sure how the dimension will work with this block. i also need the dimension of the distances between the lines. can you give it a thought?

0 Likes