乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 35|回复: 13

[编程交流] what's the difference?

[复制链接]

78

主题

207

帖子

129

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
395
发表于 2022-7-6 11:58:11 | 显示全部楼层 |阅读模式
Ok, so what exactly is the difference between AutoLisp and Visual Lisp? is it the same thing?
 
And what about VB.NET?
 
I'm not sure where to focus my learning efforts.  I'm currently lerning DCL and AutoLisp.  Not sure if i'm wasting my time.
回复

使用道具 举报

0

主题

148

帖子

151

银币

限制会员

铜币
-1
发表于 2022-7-6 12:03:43 | 显示全部楼层
Lisp is a programming language that Autodesk chose to include with Autocad early on because it was good at 3D (One of it's orgional uses was for ballistics) and it was free.
 
AutoLisp is Autocad's own version of Lisp, written to work with Autocad.
 
Visual lisp really refers to the Visual Lisp editor. Type 'VLIDE' at the command line to use the editor. The Visual Lisp editor helpfully colour codes your Lisp routines (amongst other things) which is a great help when it comes to debugging.
 
Visual Lisp also refers to the ObjectARX (C++) extensions to the Autolisp API. Adding 'vl-load-com' at the begining of your AutoLisp program allows you to use object orientated programming techniques which can really add a lot of ompf to your programmes.
 
AutoLisp is uncompiled, so you can type it in a the command line and it evaluates immediatly. It's great for writing short macro's, but it can become unweildy for writing complicated programes and creating dialogs can be a real struggle.
 
VB, VB.net, C# and C++ are all complied programming languages. They load and run a lot faster, the code is a lot easier to manage and creating dialogs is a doddle. But they can take longer to debug.
 
If your interested in working more efficiently, or you are a CAD manager, spending time learning Auto/Visual Lisp will not be wasted, but if you are interested in some more serious programing I would recommend going straight for VB.net or C#.net
 
This is a good place to start:
http://www.afralisp.net/
 
as is AU online:
http://au.autodesk.com/
回复

使用道具 举报

10

主题

973

帖子

909

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
118
发表于 2022-7-6 12:11:52 | 显示全部楼层
 
I don’t think leaning any programming language could be considered a waste of time.  
 
If it is more a matter of the most efficient use of limited time, however, then other factors may come into play.  AutoLisp/VisualLisp would likely get a programmer up and productive much more quickly.  
 
Conversely, if a move away from AutoCAD (to Inventor or Revit, perhaps) was expected near term, then .NET would be the more versatile choice.
回复

使用道具 举报

78

主题

207

帖子

129

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
395
发表于 2022-7-6 12:13:26 | 显示全部楼层
thanks for the info guys
回复

使用道具 举报

41

主题

301

帖子

265

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
209
发表于 2022-7-6 12:18:38 | 显示全部楼层
What is the difference in relation to autocad between C++ & C#
回复

使用道具 举报

0

主题

9

帖子

11

银币

限制会员

铜币
-1
发表于 2022-7-6 12:22:07 | 显示全部楼层
 
C# / .NET were created with C++. Programming gods use C++
回复

使用道具 举报

10

主题

973

帖子

909

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
118
发表于 2022-7-6 12:26:02 | 显示全部楼层
 
 
 
Yes, I’d say C++ is the “most” versatile choice.  As it relates to AutoCAD, C++ offers unlimited access to everything Autodesk is willing to expose (though, I imagine .NET not too far behind in that regard).   Fastest code execution, and true “Custom Objects” are a couple of the benefits I’ve heard attributed to C++.  
 
I also understand it to be the most complex to learn and compose code.  Not an issue for a professional, necessarily, but may be a poor return on investment for the more casual programmer.
 
Daniel, familiar as you are with several Languages/APIs, what is your estimation of relative time to proficiency for the languages mentioned in this thread?
回复

使用道具 举报

55

主题

133

帖子

78

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
280
发表于 2022-7-6 12:30:47 | 显示全部楼层
Better you learn dcl and Vlisp it will help lot when you start other languages.
回复

使用道具 举报

0

主题

9

帖子

11

银币

限制会员

铜币
-1
发表于 2022-7-6 12:38:39 | 显示全部楼层
 
Ha! I'm hardly the one to ask, I'm still working on my 'learn C++ in 21 days' after two years
Actually when I first set out to learn programming, I found the learning curve of C++ a little too steep. Working through Visual lisp -> C# then C++ made things more manageable. This would be the progression I would recommended to padawan learners, although most would probably feel that C# does all they need. I made the jump to C++ because I wanted to target other CAD platforms such as Bricscad/Intellicad that don't yet have a .NET APIs. For the most part making the move to C++ from C# was relatively painless..
@guitarguy, drop the DCL and go with the VLisp - OpenDCL combo
回复

使用道具 举报

41

主题

301

帖子

265

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
209
发表于 2022-7-6 12:42:25 | 显示全部楼层
Edited dude to drunken responce
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-5 10:08 , Processed in 0.456356 second(s), 72 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表