Field distance attribute does not scale with the block

Field distance attribute does not scale with the block

andra.belu10
Observer Observer
481 Views
2 Replies
Message 1 of 3

Field distance attribute does not scale with the block

andra.belu10
Observer
Observer

Hello,

 

I am trying to create a block with an array action and also a field that will tell me how many objects are in my array. 

It works well if I use the block on a project that uses the same unit factor that I used for creating the block.

The problem starts when I scale the block to a different unit factor. While the array still works fine the field part does not. Exemple: the initial distance is set to 33cm, and the field distance returns correctly the number of arrays. If the new scale is meters, now I would have to make an array of 3.3 meters so that the field distance would return the value 1, as in my block has only 1 array in it even though my block has 33 arrays.

If I recreate the field distance and use the scale unit of the file I am working on it works fine, but it becomes tedious to modify all the attributes in my blocks to all the scale factors of different projects.

 

My question is, how can I make the field distance to change scale automaticaly when I change my block's scale?

0 Likes
482 Views
2 Replies
Replies (2)
Message 2 of 3

Libbya
Mentor
Mentor

Post your block.

Message 3 of 3

andra.belu10
Observer
Observer

Hello, this is the block that I created. If I paste it into a new drawing that has a different setting for the units(mm, cm or even meters) or if I change the units after I paste the block there is no problem. The block attribute will count the correct number of the array parameter.

But, if in drawing A (made by somebody else) that is set/drawn in meters I insert my block(made in milimiters) it will be huge compared to the initial drawing. Therefore, I have to rescale my block to meters to match the size of drawing A. After scaling my block no longer knows to correctly display the number of arrays, I need to have a 33 meters long array for the atributte to tell me that I have 1 array. It seems that the array parameter can scale its self and match the new size of my block, but the distance atribute cannot and stays the same dimension it had when created. 

How can I resolve this? Or, how can I make it that when I copy paste a block it will automatically scale itself to the units of the drawing I am inserting it into so I do not have to scale it myself(I do not know if this will even work or if the distance atributte will remain unchanged again).

 

Thank you for your help!

0 Likes