louis.marroquin
2006-11-10, 01:23 AM
I'm new to autolisp, so if you reply could you try to comment your code and explain what you're doing. I can write VBA well, but autolisp seems harder to pick up.
I want to be able to work with xrefs in autolisp without the user selecting which xref to do something to. For example, I could run a lisp that scans through each of the external references and gives me its status: is it unloaded, is it detached, overlay or attached, etc. Then, I could change the status of any or all of the xrefs based on something I decide. If any xref is unloaded, then it should be detached. The remaining xrefs are then bound.
Another example would be to simply display how many references are attached to a drawing. Or individual autolisp functions that detach all, unload all, reload all, and bind all. Again, I don't want user input, I essentially want the autolisp equivalent of the XREF Manager dialog box.
(If any xref is unloaded, then it should be detached. The remaining xrefs are then bound.) - Is what I was trying to do until I got stuck. I don't want to use eTransmit either, strictly autolisp.
Thanks,
-Louis
I want to be able to work with xrefs in autolisp without the user selecting which xref to do something to. For example, I could run a lisp that scans through each of the external references and gives me its status: is it unloaded, is it detached, overlay or attached, etc. Then, I could change the status of any or all of the xrefs based on something I decide. If any xref is unloaded, then it should be detached. The remaining xrefs are then bound.
Another example would be to simply display how many references are attached to a drawing. Or individual autolisp functions that detach all, unload all, reload all, and bind all. Again, I don't want user input, I essentially want the autolisp equivalent of the XREF Manager dialog box.
(If any xref is unloaded, then it should be detached. The remaining xrefs are then bound.) - Is what I was trying to do until I got stuck. I don't want to use eTransmit either, strictly autolisp.
Thanks,
-Louis