Author Topic: LSP compile with vlide closed  (Read 2235 times)

0 Members and 1 Guest are viewing this topic.

mmalbr

  • Guest
LSP compile with vlide closed
« on: December 16, 2008, 08:31:13 AM »
Any idea of how to work with the LSP below with vlide closed?


Code: [Select]
(defun c:test ()
(vl-load-com)
  (setq file1 (open "c:\\temp\\hello.lsp" "w"))
  (write-line "(defun c:test2 nil (alert \"Very good!\"))" file1)
  (close file1)
(vlisp-compile
'lsa
"c:\\temp\\hello.lsp"
"c:\\temp\\hello.fas"
      )
  (load "c:\\temp\\hello.fas")
  (c:test2)
  )
« Last Edit: December 16, 2008, 08:35:43 AM by mmalbr »

Chris

  • Swamp Rat
  • Posts: 548
Re: LSP compile with vlide closed
« Reply #1 on: December 16, 2008, 08:37:12 AM »
I dont fully understand your question, but you can paste that to the command line, you wont be able to edit anything though, but to edit paste it in notepad, and copy/paste to the command line for testing purposes.  May I ask why you dont want VLIDE open?  You can use appload to run it, vlide doesnt have to be open for that.
Christopher T. Cowgill, P.E.
AEC Collection 2020 (C3D)
Win 10

Chuck Gabriel

  • Guest
Re: LSP compile with vlide closed
« Reply #2 on: December 16, 2008, 08:42:12 AM »
My experience has been that the vlide doesn't have to be currently open, but it does have to have been opened during the current AutoCAD session before vlisp-compile will work.

mmalbr

  • Guest
Re: LSP compile with vlide closed
« Reply #3 on: December 16, 2008, 08:47:01 AM »
With the vlide closed "vlisp-compile" funcition does not work.
Restart your autocad and without opening the vlide try to run the code

mmalbr

  • Guest
Re: LSP compile with vlide closed
« Reply #4 on: December 16, 2008, 08:48:41 AM »
how can I do to open the vlide and then automatically closes it or hide the vlide window?

Chuck Gabriel

  • Guest
Re: LSP compile with vlide closed
« Reply #5 on: December 16, 2008, 08:55:12 AM »
how can I do to open the vlide and then automatically closes it or hide the vlide window?

Sorry.  I never figured that out.

mmalbr

  • Guest
Re: LSP compile with vlide closed
« Reply #6 on: December 16, 2008, 08:57:18 AM »
To open is easy, but how close?

Code: [Select]
(c:vlide)

Spike Wilbury

  • Guest
Re: LSP compile with vlide closed
« Reply #7 on: December 16, 2008, 12:19:32 PM »
how can I do to open the vlide and then automatically closes it or hide the vlide window?

The first time VLIDE is loaded, will load:

VLLIB.DLL

That's why.