Author Topic: AutoLISP with Microstation  (Read 9557 times)

0 Members and 2 Guests are viewing this topic.

Lee Mac

  • Seagull
  • Posts: 12904
  • London, England
Re: AutoLISP with Microstation
« Reply #30 on: April 07, 2021, 03:42:50 PM »
To John is this backwards ?

"C is a low level language so if you know C you can usually use/learn a higher level language like Lisp, VB(A), etc fairly easily."

Like lisp 4 lines of code C is like 10 lines of code.

Backwards in what sense?

Languages such as LISP/VBA are considered high level because many operations are abstracted away and instead performed by the interpreter/compiler; consequently, programs may be written far more succinctly using relatively readable 'natural' language rather than machine code, generally at the sacrifice of power and performance; whereas low level languages (such as Assembly) are 'closer to the metal', and consequently written in language more readable to a machine than a human, with far fewer operations abstracted, consequently requiring significantly more code to perform the same operation as a high-level language (in which the equivalent machine code is implemented through the design of the language itself, rather than the programmer).
« Last Edit: April 07, 2021, 03:46:39 PM by Lee Mac »

d2010

  • Bull Frog
  • Posts: 322
Re: AutoLISP with Microstation
« Reply #31 on: April 10, 2021, 04:53:38 AM »
Coder VL often refers to the VBA help so it is very similar syntax
Like Vla-get-layer is object.layer loops are more friendly you use arrays for lists that is pt(0) is x pt(1) is y pt(2) is z
Post a lisp if some one has time will convert to VBA. On Autodesk Help lots of examples have VBA and Lisp code so can see the same result.

I  hack from  Autodesk.com
"While there is no established release in which VBA will no longer be supported in AutoCAD"
.
Code: [Select]
While there is no established release in which VBA will no longer be supported in AutoCAD,
we recommend that you begin migrating your existing VBA projects to ensure that you are
ready when VBA support is dropped. We recommend that you develop any new applications
with Microsoft Visual Studio and the AutoCAD .NET API, AutoLISP, or C++ and ObjectARX.
« Last Edit: April 10, 2021, 06:10:23 AM by d2010 »

BIGAL

  • Swamp Rat
  • Posts: 1392
  • 40 + years of using Autocad
Re: AutoLISP with Microstation
« Reply #32 on: April 10, 2021, 09:05:28 PM »
There certainly is public announcements about Autodesk dropping VBA but its about 5 years old now and we still see VBA being supported, maybe Bill had a chat with Autodesk, think Word and Excel are they going to drop VBA ?

The question is will Microstation support VBA in future after all that is what this post is about.

2022
https://knowledge.autodesk.com/support/autocad/downloads/caas/downloads/content/download-the-microsoft-vba-module-for-autocad.html
« Last Edit: April 10, 2021, 09:09:35 PM by BIGAL »
A man who never made a mistake never made anything

JohnK

  • Administrator
  • Seagull
  • Posts: 10595
Re: AutoLISP with Microstation
« Reply #33 on: April 12, 2021, 12:42:18 PM »
I doubt microsoft will remove VBA from office products (or autodesk from autocad) but overall VB is sort of dead; from what I heard (not that I care all that much so it was only a brief read) VB will not be developed further in future .NET versions. -i.e. so it sits where AutoLisp currently sits and has sat for years, and years; in limbo. No real progress on the language.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

domenicomaria

  • Swamp Rat
  • Posts: 722
Re: AutoLISP with Microstation
« Reply #34 on: April 13, 2021, 01:25:28 PM »
Quote
. . . so it sits where AutoLisp currently sits and has sat for years, and years;
in limbo.
No real progress on the language.

Maybe the answer could be BricsCAD, BLADE and OpenDCL.

JohnK

  • Administrator
  • Seagull
  • Posts: 10595
Re: AutoLISP with Microstation
« Reply #35 on: April 13, 2021, 07:30:09 PM »
Microstation will not adopt AutoLisp (or any variant). Besides there are far more powerful embedded languages--like lua--they could adopt (but they won't) for far less overhead. Microstation, Autodesk, Microsoft, etc. are--and have been for years now--shifting towards compiled languages like C# and C++.

BricsCAD adopted lisp because it is what the current CAD user base uses.

Quote
. . . so it sits where AutoLisp currently sits and has sat for years, and years;
in limbo.
No real progress on the language.

Maybe the answer could be BricsCAD, BLADE and OpenDCL.

TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

domenicomaria

  • Swamp Rat
  • Posts: 722
Re: AutoLISP with Microstation
« Reply #36 on: April 14, 2021, 12:09:20 PM »
Quote
Maybe the answer could be BricsCAD, BLADE and OpenDCL.

I want mean that BricsCAD, BLADE and OpenDCL
could be a solution for Visual(?)Lispers
because Blade and the Lisp of BricsCAD and OpenDCL
are slowly growing . . .

And they haven't stopped for many years like Acad's Lisp.

This has nothing to do with MicroStation, of course.


JohnK

  • Administrator
  • Seagull
  • Posts: 10595
Re: AutoLISP with Microstation
« Reply #37 on: April 14, 2021, 12:55:07 PM »
Oh, of course.
Quote
Maybe the answer could be BricsCAD, BLADE and OpenDCL.

I want mean that BricsCAD, BLADE and OpenDCL
could be a solution for Visual(?)Lispers
because Blade and the Lisp of BricsCAD and OpenDCL
are slowly growing . . .

And they haven't stopped for many years like Acad's Lisp.

This has nothing to do with MicroStation, of course.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

d2010

  • Bull Frog
  • Posts: 322
Re: AutoLISP with Microstation
« Reply #38 on: April 14, 2021, 03:00:38 PM »
Perhaps, we need increase the speed of LISP with dot.Net.
We need research, how to increase the speed of VLISP inside Bri?Cad or Aut?Cad.
How to execute VLISP -function/s totally  isInside C#?
 :embarrassed:
Oh, of course.
Quote
Maybe the answer could be BricsCAD, BLADE and OpenDCL.
I want mean that BricsCAD, BLADE and OpenDCL
could be a solution for Visual(?)Lispers
because Blade and the Lisp of BricsCAD and OpenDCL
are slowly growing . . .
And they haven't stopped for many years like Acad's Lisp.
This has nothing to do with MicroStation, of course.

« Last Edit: April 14, 2021, 07:25:24 PM by d2010 »

domenicomaria

  • Swamp Rat
  • Posts: 722
Re: AutoLISP with Microstation
« Reply #39 on: April 15, 2021, 09:41:19 AM »
Quote
How to execute VLISP -function/s totally  isInside C#?

Maybe it is better to execute C# functions inside VLISP !

This is the work that can be done !

C# library functions for VLISP.

« Last Edit: April 16, 2021, 12:27:38 AM by domenicomaria »

domenicomaria

  • Swamp Rat
  • Posts: 722
Re: AutoLISP with Microstation
« Reply #40 on: April 16, 2021, 12:29:44 AM »
it would be very interesting if
there was a blog where people collaborate
to create (open source) functions written in C#,
for VLISP

This could be the best evolution for VLISP at the moment.
« Last Edit: April 16, 2021, 01:04:49 AM by domenicomaria »

BIGAL

  • Swamp Rat
  • Posts: 1392
  • 40 + years of using Autocad
Re: AutoLISP with Microstation
« Reply #41 on: April 16, 2021, 03:46:10 AM »
Dont you mean just replace VL commands with c#

There is already people out there offering .net library routines. I tried out some of the excel routines and work well.

« Last Edit: April 16, 2021, 03:49:58 AM by BIGAL »
A man who never made a mistake never made anything

domenicomaria

  • Swamp Rat
  • Posts: 722
Re: AutoLISP with Microstation
« Reply #42 on: April 16, 2021, 05:57:10 AM »
Quote
Dont you mean just replace VL commands with c#
I mean anything that can implement the VLISP language. . .

(in the past at the time of AutoLISP with a friend of mine
we wrote a small library of functions in ANSI C for ACAD 12,
when there was the ADS (Advanced Development System) . . .)

I mean something like this.
But it is important that it is OPEN SOURCE.

There are many Open Source software . . .

We can at least create an open source VLISP implementation . . .


Jeremy Dunn

  • Newt
  • Posts: 31
Re: AutoLISP with Microstation
« Reply #43 on: April 18, 2021, 07:17:28 PM »
Dont you mean just replace VL commands with c#

There is already people out there offering .net library routines. I tried out some of the excel routines and work well.



Tried loading these functions with no luck. Unblocked the file and have it in the Support directory. No function error when I type (alx-help)

BIGAL

  • Swamp Rat
  • Posts: 1392
  • 40 + years of using Autocad
Re: AutoLISP with Microstation
« Reply #44 on: April 18, 2021, 10:36:13 PM »
i took me a couple of goes to unblock the file I think i had to do it to the one that was original download then copied to support directory.
A man who never made a mistake never made anything