Newsgroup: it.comp.software.cad
Titolo: Autocad 2000 - nomefile

Salve a tutti,
esiste un comando che inserisca il nome del file (magari con il relativo
percorso delle directory) come testo o blocco in Acad 2000 (in Acad LT
esiste)
Grazie, saluti
Andrea

"studiotecnicopizzioli" ha scritto nel messaggio

RTEXT
DIESEL
copia incolla queste istruzioni:
Disegno: $(getvar, "dwgprefix")$(getvar, "dwgname")
Ultimo salvataggio: $(edtime, 0, D"/"M"/"YYYY - HH:MM)

 wrote in message
szl48.7318$6e5.2...@twister2.libero.it...


 > Ultimo salvataggio: $(edtime, 0, D"/"M"/"YYYY - HH:MM)
In AutoCAD 2000, dovresti avere installato le BONUS TOOLS. All'interno del
Menů Express, trovi un comando, sotto la voce "Text", RTEXT (Remote Text).
Una volta lanciato il comando, sulla riga (in basso) seleziona <Diesel>, ti
si apre una finestra, incolli le stringa:
-    Disegno: $(getvar, "dwgprefix")$(getvar, "dwgname")
oppure
-    Ultimo salvataggio: $(edtime, 0, D"/"M"/"YYYY - HH:MM)
e come per magia hai sul tuo disegno le informazioni richieste.
Naturalmente puoi sfruttare altre stringhe per avere altre informazioni sul
tuo disegno.
LukeNukem

 LukeNukem
Colgo l'occasione... Quali altre stringhe?

 Colgo l'occasione... Quali altre stringhe?
Dall'help in linea:
"The syntax for the $(getprop) DIESEL function is:
$(getprop, property name)
where property name; can be any of the following fields from the DWGPROPS
command:
Title
Subject
Author
Comments
Keywords
LastSavedBy
Revno
Custom Property  the name of a custom property
For example, if the Drawing Properties for a drawing contains the text
"Excavated Site" as the Subject, the DIESEL expression:
Subject: $(getprop, subject)
in an RText object will display as:
Subject: Excavated Site
If you have a custom property named "Project Name", the following DIESEL
expression will display the value: Project: $(getprop, %PROJECT NAME)The
$(xrefs) DIESEL functionRText supports listing Xref files attached to a
drawing through the $(xrefs) DIESEL function. The syntax for the $(xrefs)
DIESEL function is: $(xrefs [, flags [, leader [, trailer]]])
flags A collection of bitflags with the following meanings:1 = (default)
include Xref file name (not exclusive with flag 2)2 = include Xref block
name (not exclusive with flag 1)4 = don't display file name extension8 =
don't display path16 = show nesting with additional spacing leader A text
string inserted before each Xref entry. trailer A text string appended to
each Xref entry except the last. Example:The RText DIESEL expression:
$(xrefs,3)
displays a list of Xrefs in the following format: B-ELEC
[c:\proj-14\b-elec.dwg]
M-ELEC [c:\proj-14\m-elec.dwg]
R-ELEC [c:\proj-14\r-elec.dwg]
F-ELEC [c:\proj-14\f-elec.dwg]
while the expression: $(xrefs,2,Includes: )
will list the Xrefs as: Includes: B-ELEC
Includes: M-ELEC
Includes: R-ELEC
Includes: F-ELEC
The $(images) DIESEL functionRText supports listing images attached to the
drawing through the $(images) DIESEL function. The syntax for the $(images)
DIESEL function is: $(images [, flags [, leader [, trailer]]])
flags A collection of bitflags with the following meanings:4 = don't display
file name extension8 = don't display path leader A text string inserted
before each Image entry. trailer A text string added each Image entry except
the last one. Behavior is similar to the $(xrefs) function. The $(getrec)
DIESEL functionRText supports displaying Xrecord data through the $(getrec)
DIESEL function. The syntax for the $(getrec) DIESEL function is: $(getrec,
key, code)
key Entry name in the Named Object Dictionary. code Group code to extract.
The $(getrec) function extracts a value from an Xrecord by looking in the
Named Object Dictionary for key, then for a data value associated with code.
Currently, only group codes in the ranges 1-9 (string), 40-59 (real), 60-79
(integer) and 300-309 (string) are supported.

 wrote in message
a310ok$stb$1...@serv1.albacom.net...
