How I get the name from the template-file?

Discussion in 'AutoCAD' started by Hartmut Callies, Jul 16, 2004.

  1. Hello,
    how I get with VBA the name from the template-file, wich is insert in the
    box "options/AM:../template?

    or better: Can I get the name from the template-file from the active drawing
    (with wich template-file
    is this drawing build?)?

    Thanks.


    Hartmut Callies
     
    Hartmut Callies, Jul 16, 2004
    #1
  2. Hartmut Callies

    Jürg Menzi Guest

    Hi Hartmut

    Unfortunately not.

    Cheers
     
    Jürg Menzi, Jul 19, 2004
    #2
  3. Hartmut,

    Add and empty block to each template and name it something like
    "TempPointer-[dwt name]"

    Now iterate the block collection looking for "TempPointer" whatever is after
    the"-" is the name of the template.

    An idea.... if nothing else.

    Paul
     
    Paul Richardson, Jul 19, 2004
    #3
  4. you might also want to insert the empty block into each template drawing so
    it won't get purged from the drawing you create from it.

    if you insert the blocks in the same obscure location(-2005,-2005....or
    such) your can now just iterate the block insertions for the
    location -2005,-2005 and the prefix "TempPointer"

    Paul
     
    Paul Richardson, Jul 19, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.