Some help with dynamic block.

Some help with dynamic block.

Anonymous
Not applicable
508 Views
4 Replies
Message 1 of 5

Some help with dynamic block.

Anonymous
Not applicable

Hello there,

 

I am using autocad for a couple of years now but i have never been looking at the inner details of dynamic block until now.

 

I am making some experiments.

 

I want to build a dynamic block for a conveyor adjustable in length.

 

My conveyor is made of identical modules of 500mm , so i have created a parameter set array type, and by adjusting the length by step of 500mm, the modules are repeated automatically. This works perfectly well.

 

Now, I'd like to add some features to my block, but i have not found the solution yet.

 

First: 

- Instead of setting the conveyor length, i'd like to set the number of conveyor modules . How can I do that ?

 

Second:

- I'd like my module to be automatically numbered. (i.e: I'd like the first one to have a text displaying "1", the second "2", etc... )

- Bonus : I'd like the numbering to be offseted by a user adjustable value. (for example, by changing a block attribute, i'd like the numbering to start at 10).

 

 

I will be glad to study any pointer you may have.

 

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

steven-g
Mentor
Mentor
Accepted solution

Something like this

0 Likes
Message 3 of 5

Anonymous
Not applicable

Thanks Steven!

This is exactly what I am trying to achieve.

 

I had already found the solution of the lookup table to enter directly the number of module. 
It is not perfect as it is limited to a predefined list, but that will do the trick for now.

Regarding the numbering: I don't get where is entered the formula that defined the attribute C. 
I don't see anything in the paramameter manager ? neither in the main block nor in the nested block ?

 

 

Thanks !

0 Likes
Message 4 of 5

Anonymous
Not applicable

OK, I found the formula based on fields inside the attribute. I think i have understood the principle. This is great. I will try to reproduce this in my block.

0 Likes
Message 5 of 5

steven-g
Mentor
Mentor

You need to first open the block in the block editor, then

1:  double click on the number

2:  make sure the "value is highlighted (blue) and right click with your mouse

3:  select the "edit field" option

 

First.jpg

 

Which brings you into the field editor, the formula in there also uses fields one uses the position of a secondary block and divides it by the array distance to give a count, and the second field supplies the offset value.

 

Second.jpg

0 Likes