running function .lsp without AutoCad

Discussion in 'SolidWorks' started by swmar, Jul 23, 2003.

  1. swmar

    swmar Guest

    Hi
    How can I run function ".lsp" without running AutoCad?
    Martin
     
    swmar, Jul 23, 2003
    #1
  2. You lost me.

    What are you really trying to do. You can open ACAD through
    SolidWorks, and possibly run a Lisp Routine You can open ACAD in the
    background so that the user never sees it running. I don't think you
    can run a .lsp withouth ACAD. It is called AutoLisp because it is
    integrated with AutoCAD. You can also do just about anything in ACAD
    through VBA. You are going to have to be a little more specific.
     
    Corey Scheich, Jul 23, 2003
    #2
  3. swmar

    SammyD Guest

    IntelliCAD will run most AutoLisp files with minor modifications.
    You may get an evaluation copy from http://www.cadopia.com , I think
    it is good for 2 months or more.
     
    SammyD, Jul 23, 2003
    #3
  4. swmar

    swmar Guest


    Ok. Sorry for unprecise question.
    I'm writing You what I must do:
    I have Autolisp functions which take information about objects of
    AutoCAD file and write these informaions in txt file.
    I have instaled AutoCad in my komputer. I want to run this functions
    without AutoCad. It means that AutoCad can be run in the background,
    but I and other user can't see that AutoCad is running.
    How Can I do this?
    Martin
     
    swmar, Jul 24, 2003
    #4
  5. mabe you should ask this to comp.cad.autocad, not solidworks...
     
    Philippe Guglielmetti, Jul 24, 2003
    #5
  6. this will make a session that is already running invisible

    Sub AcadInvisible()
    AcadApplication.Visible = False
    End Sub


    if you pass a File name this will open that file invisibly.
    Sub AttachToAcadInvisible(OpenDoc As String)'delete between the () to
    not open a file
    Set AcadApp = AcadApplication
    'delete the next line to not open a file
    AcadApp.Documents.Open OpenDoc
    End Sub

    'Exit ACAD you may want to do this when done otherwise it stays open
    until you close windows

    Sub CloseInvisibleOrVisibleACAD()
    AcadApplication.Quit
    End Sub
     
    Corey Scheich, Jul 25, 2003
    #6
  7. swmar

    swmar Guest


    Ok thanks.
    But maybe you know, how can run Autocad by line comand in DOS?
    What arguments must I write after acad.exe to open AutoCad without its main window?
     
    swmar, Jul 25, 2003
    #7
  8. Ok thanks.
    DOS what the heck is that? =)
    Sorry I am too young to have ever learned DOS. I may know how to
    change drives or something. I know that it is a blank screen that I
    find practically useless. If you want to run a VBA macro I could
    help. AutoLisp I could help. DOS though that is a foreign language.
    Why don't you write a macro in AutoCAD that would first put AutoCAD in
    the background and then run your Lisp Routines.
     
    Corey Scheich, Jul 25, 2003
    #8
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.