How to Show the New Dialog?????

Discussion in 'AutoCAD' started by manoj_vest, Aug 24, 2004.

  1. manoj_vest

    manoj_vest Guest

    Hi All,

    I want to know is it possible to displaying the select Template dialog, while I want to add a new document in AcadDocument collection? If I am calling the Add method of AcadDocuments object, it only expects the template name parameter, and even if the templane name is not provided, it acts as if we have asked to open without template, but I want to display the dialog to choose the template from. So is it possible. Is there any other way to display the same and once the template is selected, create the drawing.

    Thanks in Advance

    Manoj
     
    manoj_vest, Aug 24, 2004
    #1
  2. Yes, you would need to make a form that recreates the select template
    dialog. You can't access the AutoCAD one because you'd then loose control.
    Depending upon what you're doing, it sounds like you'd be better off to let
    the user select the NEW command, pick his template and then you do your
    coding in one of the application events like New Drawing.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Aug 24, 2004
    #2
  3. manoj_vest

    manoj_vest Guest

    Thanks Mike,

    But I don't want my won dialog, I want to use the AutoCAD onle. So from your post I am assuming that It is not possible to show to user to select the template selection dialog.
     
    manoj_vest, Aug 25, 2004
    #3
  4. That is correct Manoj unless you write code to a event like i mentioned.
    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Aug 25, 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.