Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

How to customize field formula?

Anonymous

How to customize field formula?

Anonymous
No aplicable

Hi.

I used the following field functions to get the file name.

%<\AcVar Filename \f "%fn2">%

but there are unnecessary characters included in the first section of the file name.

Example: foo_FILENAMES.dwg

My question is, how can I  remove these characters from the file name?

Thanks.

0 Me gusta
Responder
Soluciones aceptadas (1)
3.467 Vistas
8 Respuestas
Respuestas (8)

imadHabash
Mentor
Mentor

Hi,

>> how can I  remove these characters from the file name?

The field expression to show Filename only is  %<\AcVar Filename \f "%tc1%fn2">%  , about what characters you're talking ? 

 

Regards,

Imad Habash

EESignature

0 Me gusta

Anonymous
No aplicable

Hi imadHabash.

Thanks four your reply.

What I want to do is, get a edited file name using an field expression.

Ex:foo_FILENAMES.dwg

%<\AcVar Filename \f "%tc1%fn2">%      <- this expression return "Foo_FILENAMES"

I want only "FILENAMES".

Is there a way to remove just the first 4 characters (foo_) from the returned file name (foo_FILENAMES.dwg)

0 Me gusta

imadHabash
Mentor
Mentor

Hi,

>> Is there a way to remove just the first 4 characters (foo_) from the returned file name (foo_FILENAMES.dwg)

that field formula reflect the real existing name for your drawing , i doubt that it could be customized but you can rename the drawing file name itself , am i understand you well ? 

 

Regards,

Imad Habash

EESignature

0 Me gusta

cadffm
Consultant
Consultant
Solución aceptada
You can do it with a DIESEL field
Check [F1] for DIESEL and Threads like this http://help.autodesk.com/view/ACD/2018/ENU/?caas=caas/discussion/t5/Visual-LISP-AutoLISP-and-General...

Sebastian

0 Me gusta

Anonymous
No aplicable

Hi,

Filename format is determined by my company, so I can't change this X<. 

I understood that it is difficult, so I will consider another way.
Thank you so much for telling me about that information.

0 Me gusta

Anonymous
No aplicable

Hi CADffm,

Thanks for your reply.

It seems very nice! 

I will confirm the forum immediately.

Thank you for your information.

0 Me gusta

ChicagoLooper
Mentor
Mentor

Yes, you can easily do it with a Diesel Expression.

explanation20.jpg

 

It is written here (Diesel Expression area).

diesel.PNG

 

 

 

 

Chicagolooper

EESignature

csexcion
Participant
Participant

Great info, it helps in my case. Thanks.

0 Me gusta