In previous releases there were two Express Tools which would turn all layers On or Thaw all layers. Am I mistaken that these tools are no more?
Has anyone found this functionality somewhere else or written LISP routines to accomplish these tasks?
|
|
|
In previous releases there were two Express Tools which would turn all layers On or Thaw all layers. Am I mistaken that these tools are no more?
Has anyone found this functionality somewhere else or written LISP routines to accomplish these tasks?
R.K. McSwain | CAD Panacea |
FWIW -
Given the thread title, and particularly for 'quick' commands with little, or no user prompting, I prefer the -LAYER Command:
Code:(defun c:AllOnThaw () (command "._-layer" "_on" "*" "_t" "*" "") (princ) )
Last edited by BlackBox; 2014-11-26 at 05:44 PM. Reason: Redundant code removed.
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
Why use lisp to do the same thing as built in core commands?
R.K. McSwain | CAD Panacea |
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
For the same reason you wouldn't do this?
Unless you're adding some functionality, or removing some unneeded steps - I don't see any reason to duplicate what's already there.Code:(defun c:line ( / pt1 pt2) (setq pt1 (getpoint "\n Pick first point: ")) (setq pt2 (getpoint pt1 "\n Pick next point: ")) (entmake (list (cons 0 "LINE") (cons 10 pt1) (cons 11 pt2) ) ) )
R.K. McSwain | CAD Panacea |
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
If you have a technical question, please find the appropriate forum and ask it there.
You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
jUSt
Now I understand; I wish this had been made clear when I sincerely asked 'why not' (you incorrectly assumed I was familiar with these commands, LoL)!
Full disclosure: I rarely either turn on, or thaw 'every' layer (just not needed for our workflows), and admittedly do not recall using either the LAYON or LAYTHW Commands... What I did here, was mistakenly assumed that they function similar to the LAYULK Command (which I do use), in that some user input graphical, or dialog selection was needed, hence the two less useful offerings.
Redundant code removed.
Now, I'll also add that after a quick speed test (particulars excluded), I've found that both the LAYON and LAYTHW Commands are faster than their redundant -LAYER Command counterpart above (now removed), which is interesting given this thread's discussion. That said, the combo still posted above is faster than running both LAYON and LAYTHW sequentially as separate COMMAND calls (to mimic user entry, as is done with the -LAYER call + parameters). This is not the case however, when you call both LAYON and LAYTHW sequentially from the same COMMAND call, which I am again surprised by.
In any event, here's the fastest pairing I am aware of at this time to both turn on, and thaw all layers:
Code:(defun c:AllOnThaw2 () (command "._layon" "._laythw") (princ) )
... Thanks for your time, and patience.
Cheers
Last edited by BlackBox; 2014-11-26 at 07:37 PM.
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
And, yet, it is still faster than someone needing to execute both commands manually, no matter what combination you have in the routine. Thanks for the additional analysis on the fastest way to do the task at hand.
If you have a technical question, please find the appropriate forum and ask it there.
You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
jUSt