Start BC without intial drawing template

I want starting BC without intial drawing template.

I try add "(command "CLOSE")" into on_doc_load.lsp, but it closing every opened file direct double click.

Is way how run BC without intial drawing template?

Comments

  • Using lisp this works:

    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")
    (progn
    (setvar "cmdecho" 0)
    (command "_.close")
    )
    )
    (princ)

    You could also use a start up switch and a script:
    "C:\Program Files\Bricsys\Bricscad V10\bricscad.exe" /b "close.scr"
    Content of close.scr:
    close

  • LISP works! Great! Thanks!

  • Yep, the LISP works great for me as well.

    Thank You,
    Joe Dunfee
  • For BricsCAD V14 you do not have to create two Lisp files. Only creating this on_start.lsp is enough:
    [code](if (zerop (getvar "dwgtitled"))
      (progn
        (setvar "cmdecho" 0)
        (command "_.close")
      )
    )[/code]

    For V10 the solution with two files is required to avoid a command line message ('This command is available only when a drawing is open.').
This discussion has been closed.

Howdy, Stranger!

It looks like you're new here. Click one of the buttons on the top bar to get involved!