could rtext be block, not to change when you xref it?

Discussion in 'AutoCAD' started by pierre, Apr 20, 2004.

  1. pierre

    pierre Guest

    Another small "petit" problem...

    I have an rtext who let appear the name of the file in a drawing (
    mydrawing.dwg) like $(GETVAR,DWGNAME) so I have "mydrawing.dwg" appear in
    mydrawing.
    Now I have to xref my drawing.dwg in mysheet.dwg, as I thought I have
    "mysheet.dwg" appear instead of "mydrawing.dwg".
    Is there anyway I can lock the rtext to keep "mydrawing.dwg" appear in
    mydrawing.dwg as well as in mysheet.dwg ???\

    In advance thank you ;~)

    Pierre
     
    pierre, Apr 20, 2004
    #1
  2. you might uset the xref method in rtext:

    The $(xrefs) DIESEL function
    RText 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 extension
    8 = don't display path
    16 = 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]
     
    Allen Johnson, Apr 20, 2004
    #2
  3. pierre

    pierre Guest

    Thank you Allen,

    but with your solution I cannot have "only" the name of 1 xref... It bring
    the whole list of xref... and nothing appear in mydrawing.dwg... that's why
    I was thinking more like blocking an rtext almost like I would freeze it (in
    a conceptual way of speaking).


     
    pierre, Apr 20, 2004
    #3
  4. YOu might check out the R2005 fields object then.

     
    Allen Johnson, Apr 20, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.