Field in the attribute counting array

Field in the attribute counting array

kamil_pajakH724R
Contributor Contributor
1,656 Views
16 Replies
Message 12 of 17

Field in the attribute counting array

kamil_pajakH724R
Contributor
Contributor

I have a block that serves as a shelf. The shelf has modules, and I'd like it to count and display the number of modules automatically. I've tried the and field attribute, but it seems to be disabled. That is, after I confirm it, it becomes plain text. Please help, I'd like to understand exactly how this is done. Perhaps I have some settings or properties in AutoCAD that cause the field to be converted to text. I'm attaching a video.

0 Likes
Accepted solutions (1)
1,657 Views
16 Replies
Replies (16)
Message 1 of 17

kamil_pajakH724R
Contributor
Contributor

Hi, I'm revisiting an old thread because I can't seem to figure it out. Could someone explain this to me step by step?

0 Likes
Message 2 of 17

CGBenner
Community Manager
Community Manager

@kamil_pajakH724R 

Hello and welcome!  Can you share some more detail on exactly what you are trying to accomplish, since this is such an old thread and the software has probably changed a lot.  Can you also share what version you are using of AutoCAD?

Did you find a post helpful? Then feel free to give likes to these posts!
Did your question get successfully answered? Then just click on the 'Accept solution' button.  Thanks and Enjoy!



Chris Benner

Community Manager - NAMER / D&M


0 Likes
Message 3 of 17

kamil_pajakH724R
Contributor
Contributor

I've created a block that acts as a shelf. I'm adding subsequent shelf modules using an array. I'd like to automatically display text with the number of subsequent modules. AutoCAD version 2024.

Message 4 of 17

MMcCall402
Mentor
Mentor

Set the value of the attribute to be a Field that uses a formula to calculate the number of shelf units by dividing the value of linear parameter used for the array, Distance1, by the length of one shelf unit.

 

MMcCall402_0-1758650824608.png

 

Mark Mccall 
CAD Mangler


EESignature


VHB - Engineering, Inc.

0 Likes
Message 5 of 17

kamil_pajakH724R
Contributor
Contributor

I don't understand, I'm doing something wrong. When I add a field, after confirming it, it disappears when I reopen it. It's different for you. I've attached a video.

(view in My Videos)

 

0 Likes
Message 6 of 17

kamil_pajakH724R
Contributor
Contributor

Perhaps some properties? I noticed that your unit factor is 0.001, while mine is 1. The same goes for Scale X, Y, and Z – mine are all 1, while yours are 1000. The most puzzling thing is the disappearing inserted field, which can't be edited later.

 

0 Likes
Message 7 of 17

MMcCall402
Mentor
Mentor

Use the BlockPlaceholder for the value of Distance1 in the formula.

 

Also, be sure to run ATTSYNC when you edit the attributes within the block editor to resync the inserted block with the revised block definition.  (I sometimes even insert a brand new one just to make sure there isn't some mismatched flaw)

 

 

MMcCall402_0-1758664458041.png

 

Mark Mccall 
CAD Mangler


EESignature


VHB - Engineering, Inc.

0 Likes
Message 8 of 17

kamil_pajakH724R
Contributor
Contributor

Am I doing it right now? I'm using attsync and inserting a new block. It only shows hashtags.

(view in My Videos)

 

0 Likes
Message 9 of 17

kamil_pajakH724R
Contributor
Contributor

Could you record your screen while you do this?

0 Likes
Message 10 of 17

Brock_Olly
Advisor
Advisor

Instead of blockplaceholder, try Object > green button, select the distance parameter.
use that in the formula field, you should immediately see the actual value instead of ####.

Brock_Olly_0-1758699555539.png

Brock_Olly_1-1758699602780.png

 

 

0 Likes
Message 11 of 17

kamil_pajakH724R
Contributor
Contributor

The main problem is that my field "disappears." The field always has a background. After validation, my field becomes plain text and cannot be edited.

0 Likes
Message 13 of 17

kamil_pajakH724R
Contributor
Contributor

I have some interesting information. What I'm doing was in AutoCAD 2024. I tried to do the same in AutoCAD LT 2024 and it worked. The difference between these versions is that I have the educational version of AutoCAD 2024, but AutoCAD LT 2024 is commercial. Could there be a difference here?

0 Likes
Message 14 of 17

CGBenner
Community Manager
Community Manager

@pendean any thoughts on this, is it true that what the OP is doing would not work in an educational version of Acad?

Did you find a post helpful? Then feel free to give likes to these posts!
Did your question get successfully answered? Then just click on the 'Accept solution' button.  Thanks and Enjoy!



Chris Benner

Community Manager - NAMER / D&M


0 Likes
Message 15 of 17

pendean
Community Legend
Community Legend

@kamil_pajakH724R @CGBenner Not possible, EDU variants are fully functional just like commercial licenses.

0 Likes
Message 16 of 17

MMcCall402
Mentor
Mentor

I followed along with the video exactly and it worked on my end.  (using Civil 3D 2024, not that it should matter)

 

There was one thing I noticed in the video. After entering the formula and pressing the "Evaluate" button the formula changed to a bunch of syntax.  I didn't get that on my end. The formula stayed the same. The only change was some additional formatting was added to the Field Expression area.

Mark Mccall 
CAD Mangler


EESignature


VHB - Engineering, Inc.

0 Likes
Message 17 of 17

kamil_pajakH724R
Contributor
Contributor
Accepted solution

I couldn't figure it out until today. Until I finally found this thread.⬇️⬇️⬇️

 

https://forums.autodesk.com/t5/autocad-lt-forum/fields-turning-to-text-automatically/td-p/11390825 - A little while ago, I had to enable "Use Unicode UTF-8 for worldwide language support" in Windows to try something, but I didn't disabled it afterwhile. That seems to be what caused the problem.

 

incredible! 😆

0 Likes