Update Layer that named Blocks are on from Spreadsheet result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a drawing showing hundreds of borehole and test drilling locations. The various holes are made from four different Block types and each location has a unique name. The locations and completion dates are shown on an embedded Excel spreadsheet.
We need to issue the drawing multiple times as the holes are completed and the request is that the incomplete holes are to be shown in Red.
To this end I have two layers that the blocks reside on, Complete (in Black) and Incomplete (in Red).
Is there a script or text line I can use in the spreadsheet that I can copy and paste into the Command line (or something more automated), that reads that there is a value in column D (Completed Date) and uses the name of the block to select it in the model and change its layer?
I tried the method given in a similar sounding article but the command line didn’t like it.
I tried; (COMMAND "chprop" "g" "B01" "" "la" "COMPLETE" "")
And also a variant on: _.chprop (ssget "_X" '((2 . "DELTA"))) ; _layer A-DELTA ;
This is a pic of the drawing;
And a sample of the table, (including the formula which is normally hidden), that identifies completed holes;
CPT-86(C218) | 18/08/2023 | 25.00 | 28/08/2023 | LNG Tank 2 | 668763.12 | 2671088.83 | (COMMAND "chprop" "g" "CPT-86(C218)" "" "la" "COMPLETE" "") | ||
CPT-67(C219) | 18/08/2023 | 25.00 | 28/08/2023 | LNG Tank 1 | 668771.72 | 2670975.65 | (COMMAND "chprop" "g" "CPT-67(C219)" "" "la" "COMPLETE" "") | ||
CPT-68(C220) | 18/08/2023 | 25.00 | 28/08/2023 | LNG Tank 1 | 668833.24 | 2670975.65 | (COMMAND "chprop" "g" "CPT-68(C220)" "" "la" "COMPLETE" "") | ||
B301 | 22/08/2023 | 100.00 |
| LNG Tank 2 | 668809.62 | 2671112.83 | |||
B302 | 22/08/2023 | 100.00 |
| LNG Tank 2 | 668830.62 | 2671091.83 |
Any assistance would be gratefully appreciated.
Thanks.
Mick
Product Version Q.111.0.0 AutoCAD 2020.1.3