jeff_rivers wrote:
Yes, but as pointed out above, the field will only update to contain the value of the currently active sheet. I.e. it will overwrite the correct value with an incorrect value. What's needed is the value for each individual sheet.
MMcCall402 wrote:
Each tab would need to be active at the instant the tab/sheet is plotted. It would probably work for the drawing with one tab but not for a drawing with multiple tabs as I don't think a tab is made active when it gets plotted/published. Its kind of a timing thing.
dmfrazier wrote:
"...I don't think a tab is made active when it gets plotted/published."
This is correct. CTAB is stored in the drawing at the time it is saved, and that's what it will be when the drawing is Published. In fact the OP's chosen method of attempting to use the CTAB drawing variable and getting the same value on each plotted "sheet" (layout tab) is evidence of that.
Unfortunately, AutoCAD does not give us access to the tab names thru Fields (aside from the current tab). Not sure why...
Using a field and referencing the ctab varialble has worked flawlessly to date (currently using C3D 2015). I must be doing something wrong...
drenaud wrote:
as mentioned in above post using ctab inexplicably works with all unique tabs when FIELDVAR set to 31. But I can't trust it so am going to look at sheet set variables. hopefully this will work with C3D plan production and my template sheet drawing.
thanks for the input everyone.
Sorry, I was reading too fast and missed where you mentioned setting FIELDVAR to 31. You mentioned using a diesel expression. Opening my template I see that a different method is being used. Under "Field names" the ctab variable is called using "SystemVariable" vs "DieselExpression"
ACADuser
Civil 3D 2018, Raster Design 2018
Windows 7 Enterprise
Dell Precision 5810 Workstation
Intel Xeon E5-1630 v3 @ 3.70GHz
32GB RAM, NVIDIA Quadro K2200 4 GB GDDR5
DUAL 27" Dell UltraSharp U2713HM