TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Dr. After on March 24, 2009, 08:31:25 AM

Title: How can you attribute the layout # into the title block?
Post by: Dr. After on March 24, 2009, 08:31:25 AM
I have a title block with attributes already, but would like for the value to automaticaly be there.  In the title block I have "Sheet # of #" and I would like those "#'s" to have a value in relation to the actual layout tab and total layouts.  Any help would be much appreciated!!!

Title: Re: How can you attribute the layout # into the title block?
Post by: CAB on March 24, 2009, 09:08:15 AM
I think most people are using FIELDs.
Can you replace the attribute with a Field?

Otherwise you would need to build a reactor or a lisp that ran during startup.
Title: Re: How can you attribute the layout # into the title block?
Post by: Shinyhead on March 24, 2009, 09:35:39 AM
set a field for ctab.

copy paste this in to that attribute

%<\AcVar ctab>%

it will show whatever the layout tab name is then.
Title: Re: How can you attribute the layout # into the title block?
Post by: Dr. After on March 24, 2009, 09:39:11 AM
It ended up wanting to use this:  %<\AcVar ctab \f "%tc1">%
but regardless it worked great!  I hadn't toyed with "fields" yet...  Thanks guys!
Title: Re: How can you attribute the layout # into the title block?
Post by: mjfarrell on March 24, 2009, 09:55:38 AM
looks like you want to explore Fields and Sheets Sets...a liitle further