• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

info on data field usage (command field)

AlexandrosXIII

Guest
Bye to all,

I have a question to ask you. I have to paste on about 200 drawings a block that reports the name of the document, the page and the revision. This information is also contained in the "filename" in a well-defined alphanumeric code.

is it possible to insert in a block a data cambo that reports only a part of the "filename" giving well defined criteria?

example:

filename = 0011-3-6060sh01rv15.dwg

document name = 0011-3-6060

page number => sh01

number of revisions = rv15

is it possible to insert into a block of data fields that read the individual parts of the filename? saving me the manual compilation of 200 blocks?

--
alessandro fiderio
 
you can.adesso I don't have the pc underhand to control the procedure, but studied the options of the data field that by memory lies there the solution
 
for now I am trying with rtext, but it works on the number of characters of the code. the optimal thing would be to have a function that recognizes the range to read. for now better than nothing.
 
I did it!

on an autodesk forum I discovered the world of rtext objects, which are special texts accepting " diesel expressions".

back to example example filename => 0011-3-6060sh01rv15.dwg I created a rtext and glued inside

"$(substr,$(getvar,dwgname),1,$(-,$(strlen,$(getvar,dwgname)) ,11)

playing on the numerical values highlighted in orange, I managed to achieve the purpose.

then verifying in more depth the functions of the "field" or "data field", I noticed that it is possible to castommize a data field like a rtext.
Capture.webpat this point I managed in my business.
Capture 01.webpI hope I was useful.
thanks for the attention and good evening to all.
 
Maybe what I didn't remember worked just like that.. Thank you.
but I save the page
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top