T O P I C R E V I E W |
tim_crouse |
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
|
3 L A T E S T R E P L I E S (Newest First) |
Admin |
Posted - July 21 2022 : 06:13:14 AM Perfect.
Thanks for posting your solution. |
tim_crouse |
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 |
Admin |
Posted - July 20 2022 : 9:24:29 PM Can you post what you see in the AutoCAD F2 text window? Thanks! |
|
|