To clarify i don't do a lot of this type of script, i've just done sql and other such stuff like html and php, here's my problem,
I have a naming schemelike so,
FA-01.dwg
FA-02.dwg
FA-03.dwg
and the border on my projects has the FA-# in a specific box which i display with the diesel expression "$(substr,$(getvar,dwgname),1,5)"
then theres a sheet label, like so:
Sheet #a of #b,
for #a i have "$(substr,$(getvar,dwgname),5,1,$(-,$(strlen,$(getvar,dwgname)) ,1))" which i can esily edit to include a 1 or 3 digit FA-#
but for #b i'm at a loss, i need a script that will count all the files in the dwg's root directory beginning with 'FA-' for for #b and i have no idea how to go about that, or if it's possible
the reason i'm going for the dynamic border labels is that my boss likes to copy and rename reusable files like charts and device diagrams into new project folders when he gives me a new project, which it's pretty handy when it automatically updates some of the feilds as it makes it easier on me and leaves fewer things to miss.
any ideas? is this even possible?
also, i'm using Autocad LT 2010 if it matters
well that's too bad, anyone know any other method for a similar result, the sheet set thing would have been great but i don't think my ancient broken autocad supports much in that area, thanks for the replies, guys
Sheets sets were introduced in Autocad 2005, you could possibly create a file tracking program in excel using VBA to get a count of drawings, use a table in Autocad to read the data from excel and then get a field to read the value in the table, but I think sheet sets would be quicker and easier to learn.