Author Topic: Autocad 2020 - No new lisp  (Read 11962 times)

0 Members and 1 Guest are viewing this topic.

Rod

  • Newt
  • Posts: 185
Autocad 2020 - No new lisp
« on: March 26, 2019, 10:53:51 PM »
Expected nothing new.
Expectations met.
"All models are wrong, some models are useful" - George Box

ChrisCarlson

  • Guest
Re: Autocad 2020 - No new lisp
« Reply #1 on: March 27, 2019, 08:56:19 AM »
I wouldn't except anything new on the Lisp front anytime soon. If AutoDesk didn't have to support it and fix large issues, I'm sure they wouldn't.

VovKa

  • Water Moccasin
  • Posts: 1626
  • Ukraine
Re: Autocad 2020 - No new lisp
« Reply #2 on: March 27, 2019, 09:10:20 AM »
have they ever mentioned that they've broken strcase in 2007 and tblobjname in 2010?
i wish they've never made any changes to vlisp

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: Autocad 2020 - No new lisp
« Reply #3 on: March 27, 2019, 09:57:52 AM »
Given that's a 10 - 15 year time frame, that's not too shabby for things that were "broken".

And really, what "new" things would be added to LISP?
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

hmspe

  • Bull Frog
  • Posts: 362
Re: Autocad 2020 - No new lisp
« Reply #4 on: March 27, 2019, 12:08:51 PM »
Bricscad has several additions to lisp[ that are quite useful.  They also respond to bug reports, and they generally fix things in a few weeks, rather than maybe in a few decades.
"Science is the belief in the ignorance of experts." - Richard Feynman

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Autocad 2020 - No new lisp
« Reply #5 on: March 27, 2019, 12:23:05 PM »
Totally unfair to make note of this, Bricsys cares about customers that leverage LISP, Autodesk does not. :-P
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

ribarm

  • Gator
  • Posts: 3225
  • Marko Ribar, architect
Re: Autocad 2020 - No new lisp
« Reply #6 on: March 27, 2019, 12:27:47 PM »
have they ever mentioned that they've broken strcase in 2007 and tblobjname in 2010?
i wish they've never made any changes to vlisp

I haven't noticed this... Are these bugs still present?
If you can, can you explain what were those issues about if you still remember?
Thanks...
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

VovKa

  • Water Moccasin
  • Posts: 1626
  • Ukraine
Re: Autocad 2020 - No new lisp
« Reply #7 on: March 27, 2019, 12:54:28 PM »
have they ever mentioned that they've broken strcase in 2007 and tblobjname in 2010?
i wish they've never made any changes to vlisp
I haven't noticed this... Are these bugs still present?
If you can, can you explain what were those issues about if you still remember?
they are still present in ver 2018

- some Ukrainian characters are not 'lowered'
(strcase "ЙЦУКЕНГШЩЗХҐФИВАПРОЛДЖЄЯЧСМІТЬБЮЇ" t) -> "йцукенгшщзхҐфивапролджЄЯЧсмІтьбюЇ"

- tblobjname returns nil and tblsearch is case sensitive if there is Ukrainian letter 'ь' (chr 252) in table's name

ribarm

  • Gator
  • Posts: 3225
  • Marko Ribar, architect
Re: Autocad 2020 - No new lisp
« Reply #8 on: March 27, 2019, 01:22:15 PM »
Just tested on my A2018 :

Command: (strcase "ЙЦУКЕНГШЩЗХҐФИВАПРОЛДЖЄЯЧСМІТЬБЮЇ" t)
"ЙЦУКЕНГШЩЗХҐФИВАПРОЛДЖЄЯЧСМІТЬБЮЇ"
Command: (strcase "ABCDEFGHIJKLMNOPQRSTUVWXYZ" t)
"abcdefghijklmnopqrstuvwxyz"

It seems CAD don't like other letters than English...

[EDIT : Serbian Cyrillic]
Command: (strcase "АБВГДЂЕЖЗИЈКЛЉМНЊОПРСТЋУФХЦЧЏШ" t)
"АБВГДЂЕЖЗИЈКЛЉМНЊОПРСТЋУФХЦЧЏШ"
« Last Edit: March 27, 2019, 02:28:17 PM by ribarm »
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

VovKa

  • Water Moccasin
  • Posts: 1626
  • Ukraine
Re: Autocad 2020 - No new lisp
« Reply #9 on: March 27, 2019, 02:56:56 PM »
It seems CAD don't like other letters than English...
i tried Serbian alphabet

_$ (strcase "АБВГДЂЕЖЗИЈКЛЉМНЊОПРСТЋУФХЦЧЏШ" t)
"абвгдЂежзиЈклЉмнЊопрстЋуфхцЧЏш"


this is just crazy :)
we both use windows-1251 code page but got different results


Grrr1337

  • Swamp Rat
  • Posts: 812
Re: Autocad 2020 - No new lisp
« Reply #10 on: March 27, 2019, 05:03:41 PM »
almost fine with the Bulgarian -
Code: [Select]
_$ (strcase "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЬЮЯ" t)
"абвгдежзийклмнопрстуфхцЧшщъьюЯ"

Ontopic: what new to expect?
I think one could do something "new" by himself with .NET.

If I was about to suggest, why don't integrate ODCL into the ACAD installation package - IMO that would be something major! :)
(apply ''((a b c)(a b c))
  '(
    (( f L ) (apply 'strcat (f L)))
    (( L ) (if L (cons (chr (car L)) (f (cdr L)))))
    (72 101 108 108 111 32 87 111 114 108 100)
  )
)
vevo.bg

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Autocad 2020 - No new lisp
« Reply #11 on: March 27, 2019, 05:39:23 PM »
... why don't integrate ODCL into the ACAD installation package - IMO that would be something major! :)

So Autodesk could abandon yet another acquired software product? Nooooo! Nooooo! & Nooooo!

On the other hand, if Brycsys were to acquire OpenDCL that would be welcomed, awesome & exciting!
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

VovKa

  • Water Moccasin
  • Posts: 1626
  • Ukraine
Re: Autocad 2020 - No new lisp
« Reply #12 on: March 27, 2019, 05:46:47 PM »
almost fine with the Bulgarian -
Code: [Select]
_$ (strcase "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЬЮЯ" t)
"абвгдежзийклмнопрстуфхцЧшщъьюЯ"
can you please test this code?
Code: [Select]
(setq n (chr 252)) ;"ь"
(entmakex (list (cons 0 "STYLE")
(cons 100 "AcDbSymbolTableRecord")
(cons 100 "AcDbTextStyleTableRecord")
(cons 2 n)
(cons 70 0)
(cons 40 0.0)
(cons 41 1.0)
(cons 50 0.0)
(cons 71 0)
(cons 42 2.5)
(cons 3 "arial.ttf")
(cons 4 "")
  )
)
(TBLOBJNAME "STYLE" n)
(TBLOBJNAME "STYLE" (strcase n))
(TBLSEARCH "STYLE" n)
(TBLSEARCH "STYLE" (strcase n))

Rod

  • Newt
  • Posts: 185
Re: Autocad 2020 - No new lisp
« Reply #13 on: March 27, 2019, 05:55:26 PM »
Looked on a whim. Had a good idea what was new in Autocad already (beta) thought I'd check lisp while I was there.
Quick post pretty busy, was interested in what others thought. Like i said wasn't expecting anything.

If I was going to add/suggest anything
Functions similar to Doslib, opendcl, vlide improvements, open up more properties/methods to activex.

I'm really interested in Bricscad and I'm looking forward to some time to check it out more.

Feel free to treat it as a throw away comment/mindless rant.

Cheers, Rod.
"All models are wrong, some models are useful" - George Box

Grrr1337

  • Swamp Rat
  • Posts: 812
Re: Autocad 2020 - No new lisp
« Reply #14 on: March 27, 2019, 06:01:29 PM »
@Vovka -
Code: [Select]
_$ (setq n (chr 252)) ;"ь"
"ь"
_$ (entmakex (list (cons 0 "STYLE")
(cons 100 "AcDbSymbolTableRecord")
(cons 100 "AcDbTextStyleTableRecord")
(cons 2 n)
(cons 70 0)
(cons 40 0.0)
(cons 41 1.0)
(cons 50 0.0)
(cons 71 0)
(cons 42 2.5)
(cons 3 "arial.ttf")
(cons 4 "")
  )
)
<Entity name: de3d1c8f10>
_$ (TBLOBJNAME "STYLE" n)
<Entity name: de3d1c8f10>
_$ (TBLOBJNAME "STYLE" (strcase n))
<Entity name: de3d1c8f10>
_$ (TBLSEARCH "STYLE" n)
((0 . "STYLE") (2 . "ь") (70 . 0) (40 . 0.0) (41 . 1.0) (50 . 0.0) (71 . 0) (42 . 2.5) (3 . "arial.ttf") (4 . ""))
_$ (TBLSEARCH "STYLE" (strcase n))
((0 . "STYLE") (2 . "ь") (70 . 0) (40 . 0.0) (41 . 1.0) (50 . 0.0) (71 . 0) (42 . 2.5) (3 . "arial.ttf") (4 . ""))
(apply ''((a b c)(a b c))
  '(
    (( f L ) (apply 'strcat (f L)))
    (( L ) (if L (cons (chr (car L)) (f (cdr L)))))
    (72 101 108 108 111 32 87 111 114 108 100)
  )
)
vevo.bg