• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Civil 3D

    Reply
    Mentor
    bcsurvey
    Posts: 207
    Registered: ‎04-29-2008

    Need to prompt for block attributes on QNEW

    54 Views, 1 Replies
    09-20-2012 07:20 AM

    I'm further developing our template and would lke to know how much trouble it would be (if any) to be prompted for several block attributes upon a new file being created (QNEW).  The information in these blocks is found throughout the .dwg file and I'd like to reduce the amount of time going through each instance to modify (something that should have been done a long time ago).

     

    Thanks!

    Civil 3D 2012
    Windows 7 Enterprise SP1
    Dell Precision T3400
    (Q9550 @ 2.83 GHz)
    4GB RAM
    Nvidia Quadro FX 3700
    Please use plain text.
    *Expert Elite*
    Posts: 1,744
    Registered: ‎12-18-2002

    Re: Need to prompt for block attributes on QNEW

    09-20-2012 03:06 PM in reply to: bcsurvey

    You could add some code to ACADDOC.LSP that would check the file name. If it's Drawing*, prompt for attribute information, if the name is something else, it means this is not a new drawing, don't ask.

     

    (if (=(substr(getvar "DWGNAME")1 7) "Drawing")

     

      (progn

        (ask for attributre info and fill in the blocks)

      );end progn

    );end if

     

     

    Tim Corey, Owner
    Delta Engineering Systems
    Redding, CA
    Autodesk Authorized Value-Added Reseller
    Please use plain text.