Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/28/2025 in Posts

  1. I would do a sort on Y then X makes sure the values are read from left to right, else may for some odd reason left and right are mixed. ; sorts on 1st two items (vl-sort lst '(lambda (a b) (cond ((< (cadr a) (cadr b))) ((= (cadr a) (cadr b)) (< (car a) (car b))) ) ) )
    2 points
  2. Regarding your question about additional filters after (-4 . ">") The answer is that you must repeat the filter (-4 . ">") as many times as necessary to achieve the expected result. For example: .... (-4 . ">") (62 . 1) (90 . 3)... will not return the expected result. But... (-4 . ">") (62 . 1) (-4 . ">") (90 . 3)... YES This is true at least in AutoCAD. I don't know if this works the same way in BricsCAD.
    1 point
  3. That is correct, I didn't quite get what you were after. I do believe LibreOffice can be made to automatically create csv from .ods and vice versa. Maybe within a LISP? We should be able to use LibreOffice's UNO API (Universal Network Objects) via macros or a small script? (setq cmd (strcat "soffice --headless --convert-to ods \"" csvfile "\" --outdir \"" tempfolder "\"")) (startapp "cmd.exe" (strcat "/C " cmd) Open the .ODS file after a few seconds (give LibreOffice time) (vl-cmdf "delay" 500) ;; small wait (startapp "soffice" (strcat "\"" odsfile "\"")) ) Off and on several years now trying to use AutoCAD and OpenOffice/LibreOffice, unfortunately some of my old links are dead now and some I forgot or lost the links. After researching my errors here lately, seems AutoCAD 2000i could have had me reworking what potentially could be good code. Fortunately, seems there are several asking these questions now, maybe get better answers.
    1 point
×
×
  • Create New...