Author Topic: Text File in VLX application  (Read 1579 times)

0 Members and 1 Guest are viewing this topic.

mailmaverick

  • Bull Frog
  • Posts: 493
Text File in VLX application
« on: July 15, 2020, 08:27:00 AM »
Hi,

I have a very long 2 dimensional list in form of a Matrix of size n x m :- (list (list 1 2 3 4 5..... n) (list 4 5 6 4 3 4 ...... n) ............ m)
n and m are of the order of 1000 x 1000 approximately.

I am able to store this list in a text file (.txt) and read it from LISP. However, how to embed this text file in VLX application ?
There is an option to embed Text File while creating VLX application as shown below :-


But what path to be given in LISP to read this text file ?

VovKa

  • Water Moccasin
  • Posts: 1631
  • Ukraine
Re: Text File in VLX application
« Reply #1 on: July 15, 2020, 09:30:55 AM »
i would wrap this matrix into a function and save it as .lsp

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Text File in VLX application
« Reply #2 on: July 15, 2020, 09:39:32 AM »
What VovKa said + Can the data be generated (not hard coded) on the fly, i.e. from code?
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

BIGAL

  • Swamp Rat
  • Posts: 1417
  • 40 + years of using Autocad
Re: Text File in VLX application
« Reply #3 on: July 15, 2020, 10:57:20 PM »
Did a Google  (vl-get-resource "data") reads a text file from vlx, but as a long string simplest may be make a list and save in vlx.

Have you used a Bundle can add support path for text file.
A man who never made a mistake never made anything