Setting additional format for Fields

Setting additional format for Fields

maurot.ferrarese
Enthusiast Enthusiast
2,505 Views
11 Replies
Message 1 of 12

Setting additional format for Fields

maurot.ferrarese
Enthusiast
Enthusiast

Hi all,

I would like to know if it is possible to set a specific format for the field-object comand. I use this command a lot and to keep similarities I usually copy paste the result that field yield, but every time I do this I have to set again the kind of format I want the info to be displayed. Schedule tags are not something I am looking for because I need to extract this info into tables that I have in the paper space and I found a direct way to do thi with field instead that with schedule tags. So my question is if there is a way to establish an additional format for the info displayed with field-object command. Thanks in advance

2,506 Views
11 Replies
Replies (11)
Message 2 of 12

cadffm
Consultant
Consultant

Share a simple sample, please (dwg)

Sebastian

0 Likes
Message 3 of 12

maurot.ferrarese
Enthusiast
Enthusiast

Here the sample. I have to do measurement like that in the sample many times and if the areas are different, I have to redo the formating of comas for decimal numbers every time, which is time consuming. In other cases I have to apply a convertion factor, and then I have to applied the convertion factor if I have to repeat the field.

0 Likes
Message 4 of 12

pendean
Community Legend
Community Legend

Greetings @maurot.ferrarese 

 

Have you considered just using a LISP like this https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/m-p/6880196#M349911

 

Or are you an LT user?

 

 

0 Likes
Message 5 of 12

cadffm
Consultant
Consultant

For this kind of field (object properties), you should use a Lisp Tools: 1 Click on your object,

one Click to place the Text.

 

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/area-field-m/td-p/6874532

 

But you need a piece of code more to copy the fieldcode to your clipboard.

or use DATAEXTRACTION to create your table.

 

I will take a look tomorrow

Sebastian

0 Likes
Message 6 of 12

Vanessa.Johnson2HALV
Explorer
Explorer

I have the same issue. once i have used the room name and area block once i still have to set the additional format every time i use for a new room. We had it working that it kept the additional format. Do anyone have any insight as I need a fix to my specific issue not a suggestion on how to do it in a different way, thanks.

0 Likes
Message 7 of 12

cadffm
Consultant
Consultant

Yes, it is possible to edit the default settings,

but as always stated above, for your case it is much better to use an extra Tool to do the job (field creation incl. formats) by only 2 clicks!

 

Sample from LM <click>

 

Sebastian

0 Likes
Message 8 of 12

Vanessa.Johnson2HALV
Explorer
Explorer

Hi thanks however you've suggested a different approach and I need answer to my actual problem which is how to keep the additional format settings for the next room i need an area for without having to reset it every time.

 

Thanks anyway but  Yes, it is possible to edit the default settings, doesn't give me any information to work with.

 

Cheers

Message 9 of 12

cadffm
Consultant
Consultant

okay, it's your choice:

The defaults are stored in this file:

Command: (findfile "AcFields.fdc")<enter>

 

and you will finde the area property: <FormatType name="Area">

where you can edit the predefined formatstring: <FormatString>%........</FormatString>

to your choice: %lu2%pr2%ps[, SQ.M.]%ct8[1.000000000000000E-006]

Sebastian

0 Likes
Message 10 of 12

Vanessa.Johnson2HALV
Explorer
Explorer

Hi there, FYI my issue was actually a procedural one. , I needed to double click (see #2) the formula which i wasn't doing., to keep the additional formatting.

Thanks for your help, i do appreciate it very much.😊

I may not have asked the correct question for this to be the answer. 

VanessaJohnson2HALV_0-1684240723239.png

 

0 Likes
Message 11 of 12

cadffm
Consultant
Consultant

@Vanessa.Johnson2HALV  schrieb:😊

>>"I may not have asked the correct question for this to be the answer. "

Perhaps, or I missunderstood.


 

BTW1:

Why are you multiplier a number bei value 1 ? <number>*1

 will evaluate always to the same number, or?

Is the result another if you strip " * 1" from your formular?

 

BTW2:

Why are you using a formular field? Instead to create an Object->Area field directly.

 

 

Sebastian

0 Likes
Message 12 of 12

Vanessa.Johnson2HALV
Explorer
Explorer

Your questions are very valid however I can't answer them as I didn't create this block, someone else on my team did.

I really appreciate your input. I will pass your information on to our block maker thank you.