Results 1 to 3 of 3

Thread: Bind xref

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2007-08
    Posts
    1
    Login to Give a bone
    0

    Default Bind xref

    Any idea how to bind all xrefs in 1 command.

    Serge

  2. #2
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,804
    Login to Give a bone
    0

    Default Re: Bind xref

    Command: -XREF
    Enter an option [?/Bind/Detach/Path/Unload/Reload/Overlay/Attach] <Attach>: _B
    Enter xref name(s) to bind: *
    Command:
    R.K. McSwain | CAD Panacea |

  3. #3
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,507
    Login to Give a bone
    0

    Default Re: Bind xref

    Quote Originally Posted by rkmcswain View Post
    Command: -XREF
    Enter an option [?/Bind/Detach/Path/Unload/Reload/Overlay/Attach] <Attach>: _B
    Enter xref name(s) to bind: *
    Command:
    Also, if you want the "insert" option (versus "bind" option) you'll need to set the "bindtype" variable to "1"

    I didn't test it, but I would assume you would add to your routine:
    (setvar "bindtype" 1)

    Update.. I tested this one:
    Code:
    ;;;BIND-INSERT ALL LOADED XREFS
    (defun c:bxr ()
    (SETVAR "BINDTYPE" 1)
    (COMMAND "-xref" "reload" "*" "");;reload all xrefs
    (COMMAND "-xref" "bind" "*" "")
    )
    I tried this and it worked ok, but it tripped up if you have xrefs unloaded.
    So I added the reload xrefs command too.
    (which may be a problem if you didn't want that one in the file)
    Last edited by tedg; 2007-09-28 at 02:18 PM. Reason: added routine after testing

Similar Threads

  1. Xref Bind Option
    By BCrouse in forum AutoCAD General
    Replies: 6
    Last Post: 2014-06-19, 04:28 PM
  2. Bind an xref with VLISP
    By msretenovic in forum AutoLISP
    Replies: 7
    Last Post: 2011-08-24, 07:44 PM
  3. Bind Xref's in C#
    By joelkarr in forum Dot Net API
    Replies: 0
    Last Post: 2009-01-29, 09:46 PM
  4. Unable to Bind Xref's / Some Xref's no longer there
    By cwjean76 in forum AutoCAD General
    Replies: 1
    Last Post: 2006-12-22, 05:00 PM
  5. Xref Bind
    By rflores.73491 in forum AutoCAD General
    Replies: 2
    Last Post: 2005-01-06, 12:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •