Author |
Topic |
|
tim_crouse
New Member
USA
12 Posts |
Posted - July 20 2022 : 5:56:00 PM
|
Could someone look at teh code below and explain to me why acad completes the tasks on the first file and then sits there with the first file open and not moving onto the next file.
********************************************************************
; *************************************************************** ; HURRICANE 7.0.7 - SCRIPT CREATED 7/20/2022 : 6:46:51 PM ; *************************************************************** ; << START OF PRE-BATCH COMMANDS >> _SDI 1 ; << END OF PRE-BATCH COMMANDS >> _OPEN "E:\___Working Data\_Active Projects\Nellis TTF Facility - 365th ISR TIFF\_Drawings\MILCON Fit-Out Coordination - Copy\FIT OUT\CT - Cable Trays\CT 4 - 2F Cable Tray.dwg" ;Example Script - Modify to suit your needs. ;;CHANGES THE COLOUR OF THE LISTED LAYERS TO DEFINED "TRUE" COLOR ; -LAYER _C _T 103,82,165 ;; LAYERS TO CHANGE SEPERATED BY A COMMA G-TTLB-LABL,G-TTLB-LOGO,G-TTLB-STMP,G_VPRT-NPLT,G-ANNO-TEXT-LABL -LAYER _C _T 19,136,231 ;; LAYERS TO CHANGE SEPERATED BY A COMMA G-ANNO-SCAL -LAYER _C _T 76,166,240 ;; LAYERS TO CHANGE SEPERATED BY A COMMA G-ANNO-TEXT,G-TTLB-TEXT _RE _QSAVE _OPEN "E:\___Working Data\_Active Projects\Nellis TTF Facility - 365th ISR TIFF\_Drawings\MILCON Fit-Out Coordination - Copy\FIT OUT\CT - Cable Trays\CT - Cable Trays Title Sheet.dwg" ;Example Script - Modify to suit your needs. ;;CHANGES THE COLOUR OF THE LISTED LAYERS TO DEFINED "TRUE" COLOR ; -LAYER _C _T 103,82,165 ;; LAYERS TO CHANGE SEPERATED BY A COMMA G-TTLB-LABL,G-TTLB-LOGO,G-TTLB-STMP,G_VPRT-NPLT,G-ANNO-TEXT-LABL -LAYER _C _T 19,136,231 ;; LAYERS TO CHANGE SEPERATED BY A COMMA G-ANNO-SCAL -LAYER _C _T 76,166,240 ;; LAYERS TO CHANGE SEPERATED BY A COMMA G-ANNO-TEXT,G-TTLB-TEXT _RE _QSAVE _OPEN "E:\___Working Data\_Active Projects\Nellis TTF Facility - 365th ISR TIFF\_Drawings\MILCON Fit-Out Coordination - Copy\FIT OUT\CT - Cable Trays\CT 1 - 1F Cable Tray.dwg" ;Example Script - Modify to suit your needs. ;;CHANGES THE COLOUR OF THE LISTED LAYERS TO DEFINED "TRUE" COLOR ; -LAYER _C _T 103,82,165 ;; LAYERS TO CHANGE SEPERATED BY A COMMA G-TTLB-LABL,G-TTLB-LOGO,G-TTLB-STMP,G_VPRT-NPLT,G-ANNO-TEXT-LABL -LAYER _C _T 19,136,231 ;; LAYERS TO CHANGE SEPERATED BY A COMMA G-ANNO-SCAL -LAYER _C _T 76,166,240 ;; LAYERS TO CHANGE SEPERATED BY A COMMA G-ANNO-TEXT,G-TTLB-TEXT _RE _QSAVE _OPEN "E:\___Working Data\_Active Projects\Nellis TTF Facility - 365th ISR TIFF\_Drawings\MILCON Fit-Out Coordination - Copy\FIT OUT\CT - Cable Trays\CT 2 - 1F Cable Tray.dwg" ;Example Script - Modify to suit your needs. ;;CHANGES THE COLOUR OF THE LISTED LAYERS TO DEFINED "TRUE" COLOR ; -LAYER _C _T 103,82,165 ;; LAYERS TO CHANGE SEPERATED BY A COMMA G-TTLB-LABL,G-TTLB-LOGO,G-TTLB-STMP,G_VPRT-NPLT,G-ANNO-TEXT-LABL -LAYER _C _T 19,136,231 ;; LAYERS TO CHANGE SEPERATED BY A COMMA G-ANNO-SCAL -LAYER _C _T 76,166,240 ;; LAYERS TO CHANGE SEPERATED BY A COMMA G-ANNO-TEXT,G-TTLB-TEXT _RE _QSAVE _OPEN "E:\___Working Data\_Active Projects\Nellis TTF Facility - 365th ISR TIFF\_Drawings\MILCON Fit-Out Coordination - Copy\FIT OUT\CT - Cable Trays\CT 3 - 1F Cable Tray.dwg" ;Example Script - Modify to suit your needs. ;;CHANGES THE COLOUR OF THE LISTED LAYERS TO DEFINED "TRUE" COLOR ; -LAYER _C _T 103,82,165 ;; LAYERS TO CHANGE SEPERATED BY A COMMA G-TTLB-LABL,G-TTLB-LOGO,G-TTLB-STMP,G_VPRT-NPLT,G-ANNO-TEXT-LABL -LAYER _C _T 19,136,231 ;; LAYERS TO CHANGE SEPERATED BY A COMMA G-ANNO-SCAL -LAYER _C _T 76,166,240 ;; LAYERS TO CHANGE SEPERATED BY A COMMA G-ANNO-TEXT,G-TTLB-TEXT _RE _QSAVE _SDI 0
|
Tim C. Sent From My TI-84+ |
|
Admin
Administrator
652 Posts |
|
tim_crouse
New Member
USA
12 Posts |
Posted - July 21 2022 : 05:03:04 AM
|
HERE IS THE FINAL CODE THAT WORKED
The key was using F2 when ACAD would stop to see the debug messages. Once it was discovered where the code was stopping it was simply a matter of entering or removing carriage returns in the script to allow the cod to keep flowing through ACAD.
Thanks for the Tip
************************************************************** ; Example Script - Modify to suit your needs. ;;CHANGES THE COLOUR OF THE LISTED LAYERS TO DEFINED "TRUE" COLOR _-LAYER _C _T 103,82,165 ;; LAYERS TO CHANGE SEPARATED BY A COMMA G-TTLB-LABL,G-TTLB-LOGO,G-TTLB-STMP,G_VPRT-NPLT,G-ANNO-TEXT-LABL _C _T 19,136,231 ;; LAYERS TO CHANGE SEPARATED BY A COMMA G-ANNO-SCAL _C _T 76,166,240 ;; LAYERS TO CHANGE SEPARATED BY A COMMA G-ANNO-TEXT,G-TTLB-TEXT
_ZOOM E |
Tim C. Sent From My TI-84+ |
|
|
Admin
Administrator
652 Posts |
|
|
Topic |
|
|
|