Opened drawing on startup

Just getting into Bricscad. Currently ver 11 opens a new dwg on startup.

Can that be changed to 'No drawing on startup' or however its put please?

From past experience I know there was a change to the registry (from memory), that just caused the Cad program to open without a drawing.

I've searched help but not sure what to ask it?

Input much appreciated thanks

Comments

  • I don't know about a registry solution. But you could try this solution:
    http://forum.bricsys.com/discussion/13868

  •  

    Hi Richard,

    If you go to the Bricscad menu, and go to File -> New Wizard. there is an option called "Start from scratch". I believe this what you want. This would start Bricscad without a template DWG or DWT.

    Regards
    Rakesh

    http://rakeshrao.typepad.com

  • Thanks fellas.
    Rakesh that works but its not really what I had in mind.

    Roy I did that and it crashed or shut down Bricscad immediatley.

    What I want is just for BC to load but without any dwg or offer to open anything
    That way I can go to File and pick the dwg from recent files.

    I know there was a simple tweak to something in previous Cad - can't for the life of me think what though.

  •  

    Richard,

    I understand what you mean. There is no way to lauch Bricscad and have it just wait there without opening any drawing (not even a Drawing1.DWG).

    In fact, even in AutoCAD, I could not do it. It seems that in both AC and BC, you would first land in a blank drawing and you must close it later if you don't like it. Closing it later with a Lisp works, and will leave you in the Bricscad startup screen, and not throw you back into the OS. But running the Lisp as part of on_start.lsp simply starts and shuts Bricscad.

    Perhaps Bricsys can consider if this request is worth implementing a command-line switch - to open Bricscad without a document.

    Regards
    Rakesh Rao
    www.coordsys.com

  • thanks Rakesh.

    I'll send a suggestion off.

    It may have been FelixCad where I first encountered this and thats many years ago.

    regards
    Richard

  • To clarify:

    1.
    The solution in this link:
    http://forum.bricsys.com/discussion/13868
    Works on BC10.

    2.
    The solution doesn't crash BC11.4.5 on Win XP but there is a glitch:
    The command line twice reads:
    'This command is available only when a drawing is open.'
    Strange that Richard gets a crash.

    3.
    This solution works on both BC10.5.6 and BC11.4.5 on Win XP:
    Create an on_start.lsp with this content:

    (if (zerop (getvar "dwgtitled")) (setvar "users1" "close")) (princ)
    Create an on_doc_load.lsp with this content:
    (if (= (getvar "users1") "close")
    (vla-sendcommand (vla-get-activedocument (vlax-get-acad-object)) "_.close ")
    (princ)
    )

    4.
    @ Rakesh Rao:
    Note that it is not on_start.lsp that closes the drawing, on_doc_load.lsp does that.

     

  • just adding (command "close") in on_start.lsp should work. If it doesn't work then this is worth investigating. (command "close") should be the last line in on_start since lisp can only work when a drawing is open.

     

  • Test 1: (command "close") in on_start.lsp:
    Bricscad shuts down.
    As mentioned by Rakesh Rao.

    Test 2: (command "close") in on_doc_load.lsp:
    The command line twice reads:
    'This command is available only when a drawing is open.'
    As mentioned in post #7.
    Using (vla-sendcommand) solves this.

    My solution uses both on_start.lsp and on_doc_load. The advantage of this solution is that if you start BC by double clicking a dwg in explorer, BC will not auto-close it.

    BTW: In all cases the variable acadlspasdoc should be off.

  • I've found (In Win 7) that if I run BC from the START menu and slide out the 'Recent Files' view then click one, BC fires up and only the selected dwg is opened.

     

  •  

    Some interesting observations:

    I put (command "._Close") in on_doc_load.lsp and it opened Bricscad with "Drawing.dwg", closed it immediately and dropped me at the point where no document was open. At this point, now, Lisp does not work (until a drawing is opened).

    So, this works but it is not useful. Any new drawing I try to open is immediately closed by the close statement in on_doc_load.lsp

    What I think may be useful for some is to be able to start Bricscad with no document open. Ideally, a command-line switch for bricscad.exe makes the best sense. What do you guys think?

    Regards
    Rakesh Rao
    http://rakeshrao.typepad.com

     

     

     

  • If you put (command "close") in on_start.lsp it will work but only if there is no on_doc_load.lsp.

    If on_doc_load.lsp exists bricscad will close altogether. That is a bug and we'll fix it in V12.

  • Greetings to All,
    as Alexander mentioned, there was indeed a problem, when
    (command "_close") is placed in "on_start.lsp", and another Lisp
    file like "on_doc_load.lsp" was was present ... it is just fixed in our internal code.

  • Just a hint, when using (command "_close") inside "on_start.lsp" file, to get
    rid of initial drawing :

    it is essential to set ACADLSPASDOC=0 before - otherwise, you can no longer
    open any drawing at all ...
    ACADLSPASDOC=1 means, that "on_start.lsp" is run for any drawing just opened
    (like "on_doc_load.lsp"), thus that just-opened drawing gets closed by "on_start.lsp") ...

    So in "on_start.lsp" you should place :
    (setvar "AcadLspAsDoc" 0)
    (command "_close")

    Greetings to all

  • The interesting thing is that since I've been fiddling with the settings for this I now don't have the list of last files used in Start- Brcscad flyout in Win 7 that I have come to really appreciate.

    I had found if I just used one of those as a way to start BC it got over this problem.

    But now thats not an option.  Is there a way of restoring that Windows feature please?

This discussion has been closed.