Code Red > AutoLISP (Vanilla / Visual)
How to get plot style names from STB file?
Lee Mac:
Glad you got it sorted Roy :-)
roy_043:
Well, not all sorted of course. My code still has to parse the text file. This very doable, but I will leave that for now.
One "burning" question remains:
Can you actually write a binary file using Lisp?
(LM:WriteBinaryStream) seems to require a variant of the type 8209 which I was unable to create. MP's (_WriteStream) will work. But if the "ascii-index-list" contains a zero value, that value and everything after will be skipped (see my second post).
Lee Mac:
--- Quote from: roy_043 on May 06, 2012, 11:15:20 am ---One "burning" question remains:
Can you actually write a binary file using Lisp?
(LM:WriteBinaryStream) seems to require a variant of the type 8209 which I was unable to create. MP's (_WriteStream) will work. But if the "ascii-index-list" contains a zero value, that value and everything after will be skipped (see my second post).
--- End quote ---
To directly answer your question: you can write a binary stream using LISP by interfacing with the ADODB.Stream Object (as per my LM:WriteBinaryStream function), however, to do so requires that you do not convert to a list the Variant returned by a similar function used to read a binary stream, as this variant cannot be created using LISP (as you have already discovered).
roy_043:
Lee, thank you for that clarification.
Lee Mac:
--- Quote from: roy_043 on May 07, 2012, 02:20:53 pm ---Lee, thank you for that clarification.
--- End quote ---
You're very welcome, though unfortunately it doesn't help you toward a solution :-(
Navigation
[0] Message Index
[*] Previous page
Go to full version