View Full Version : Binding Xrefs
adamwildon
18th Jul 2005, 01:57 pm
Hi I am currently using AutoCAD LT 2004, I have written some pull down menus for layering systems and inserting blocks etc. I would now like to add some tools to those. Does anyone know how I can bind all of the xrefs prior to sending via email using a pull down menu?
I can get to the bit where it asks me what xrefs I would like to bind but the wildcard * does not work. assuming that the xref names are always contant I think I could make this work, however they are not. van anyone please help.
Adam
SpeedCAD
18th Jul 2005, 04:28 pm
Hi I am currently using AutoCAD LT 2004, I have written some pull down menus for layering systems and inserting blocks etc. I would now like to add some tools to those. Does anyone know how I can bind all of the xrefs prior to sending via email using a pull down menu?
I can get to the bit where it asks me what xrefs I would like to bind but the wildcard * does not work. assuming that the xref names are always contant I think I could make this work, however they are not. van anyone please help.
Adam
Hi...
Do you test the command xref but in command line?. Example:
_.-xref;_b;yourblockname
adamwildon
18th Jul 2005, 04:43 pm
Hi I am currently using AutoCAD LT 2004, I have written some pull down menus for layering systems and inserting blocks etc. I would now like to add some tools to those. Does anyone know how I can bind all of the xrefs prior to sending via email using a pull down menu?
I can get to the bit where it asks me what xrefs I would like to bind but the wildcard * does not work. assuming that the xref names are always contant I think I could make this work, however they are not. van anyone please help.
Adam
Hi...
Do you test the command xref but in command line?. Example:
_.-xref;_b;yourblockname
Yes I do, but I would like to bind the xrefs what ever the name may be. eg with the -layer;on command you can enter the wildcard * for all layers (whatever the name) but you can't seem to use the * wildcard on xrefs.
adamwildon
18th Jul 2005, 04:53 pm
Terribly sorry everyone I thought the wild card would work..... I must be going mad after all it is a Monday! I have the solution now thank you.
devorej
26th Jul 2006, 03:49 pm
I am using AutoCAD in a Vaulted environment and some "cleanup" is required before checking our files into Vault 4. This forum has helped me to find the information needed to automate the cleanup task. Following is a lisp routing we use in the acaddoc.lsp file that loads for every drawing when it is opened. Using the lisp routine in acaddoc.lsp along with the "check in folder" option in the Vault toolbar in AutoCAD has saved us tons of time. I hope someone finds this useful.
;;;*-*TXT acad.lsp is loaded once, acaddoc.lsp is loaded for each
;;; document, s::startup in any case is called after acaddoc.lsp
;;; has been loaded
;
;; (if (= nil acad_helpdlg)
;; (progn
;; (load "acadr15.lsp")
;; (load (strcat (getvar "menuname") ".mnl"))
;; )
;; )
(if (= nil genlade)
(progn
(princ (load "gen/acadm.lsp" "\nError: acadm.lsp not loaded!"))
(if acadmappend (setq s::startup (acadmappend s::startup)))
)
)
(defun s::startup ()
(command "zoom" "all")
(command "-plot" "yes" "" "(place your printer's name here)" "Letter" "" "Landscape" "no" "Extents" "fit" "Center" "yes"
"(name of *.ctb file)" "yes" "" "N" "Yes" "N" "-xref" "B" "*" "qsave")
(princ)
)
(princ)
lucaso
28th Jul 2006, 03:53 pm
If you are going to send stuff to someone else, use "ETRANSMIT". There is an option to bind Xref's. Atleast the recieving parties gets all the goods, it is easy to forget some crucial thing like a shapefile, plotstyle or font.
BUT.....please don't bind XREF's!!!! And if you really have to, use the "INSERT"-option, then you can replace it as a "Block", otherwise you end up with a GIANT mix of names with "*$0$* in them, f*cking drag to repair...
Powered by vBulletin™ Version 4.1.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.