明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4632|回复: 7

[求助]怎样将.odcl文件编译成.vlx文件?

[复制链接]
发表于 2009-7-5 12:23:00 | 显示全部楼层 |阅读模式
本人是opendcl新手,用opendcl和autolisp编了个小程序,但不知道怎样将.odcl和.lsp文件编成一个.vlx文件?
;----------------
按照OPENDCL的帮助文件提示:
将OpenDCL文件保存成LSP文件后,一起做成VLX文件,在VLISP编辑器出现
错误: 编译器发现致命错误 "**.odcl.lsp"
请教高手怎么生成带OPENDCL对话框的VLX?
"觉得好,就打赏"
还没有人打赏,支持一下
发表于 2012-2-9 20:59:01 | 显示全部楼层
非常感谢 学习了
回复 支持 1 反对 0

使用道具 举报

发表于 2011-8-14 20:30:44 | 显示全部楼层
我也遇到这个问题,,,,,求解
发表于 2011-11-27 14:44:06 | 显示全部楼层
To secure your source from prying eyes, you’ll want to encrypt it into a VLX file. Of course this isn’t 100% secure, as almost everything is hackable, but it will keep out the majority of the snoopers. Fortunately OpenDCL also gives us a means to embed our ODCL project file into our LSP source code so it will also be protected. Follow the steps below to securely embed your ODCL project into a VLX file.
Open your ODCL project in the Studio. Go to File-> Save As and change the file extension to good  A good naming convention to follow is FileName.odcl.lsp, this way you know the file was generated from an ODCL file and not a typical LSP file. The Studio will encode your project to Base64 and wrapping in LSP. You can now open the intermediate .odcl.lsp file in any text editor and copy it into your LSP source file. Add a (setq) around the copied encoded string
16
OpenDCL Tutorial: DCL Has Evolved!
and replace the (dcl_Project_Load) with (dcl_project_import). It should look something like this for our AU Block Tool example:
(defun C:AUBT ( / )
(command "OPENDCL")
(setq project
'("YWt6A+2rAADje5J3BuKT5SUSaplrubH8/59gNmIW3chwX9BPCPOTpj5WcWZWXLi/uMNmLXeH8JW7"
"aGmpnnnybszkZBSMfivXPG8Ub3Rb37bD//xef9drLKtpYFSbe3tfemZyK9XU1JzgDQiT50fF4I8G"
"+KO7QP2okueHmEmhAqGB4pHEDXnBYvqWGZhkhmDqPmak3nAknsWGAWUkX36GhUp+/ewzO32BISL9"
"Nyg8X6o+Q5o9b5rco3ZzznzBw/uZdR9nANW/TbsGQGmTJDIr8Wgj1RnVeHeClj9cqLwMMM9ikVEc"
"MH8AETpEb5WuXJx0gmAHIE9MdI5Rz2SOEl3YUL4Kl07t3uqVZ4b/ex76Hmw6ccJK3WLhYphpSyGs"
"hnWyYTRtMxIS/8rfLTpNxIZBQJAd4PMxHnQmcJ0tH7FJralcreZizI2AFiCZisFpiGH6o1mSSRLR"
"S/kUUb0sAWe9Ucl58sGkrPzvG8wguBG48ccYRxUCwy2m/byAIqZjSIWzRAZlnNUXRbpVgJPOZyQf"
"XQDkH1EAVjtNChy7ZEFpMURckgMI5VShpvpJkT8ud7yJ3yA2dlL46yxyzbNiwPUxo/cxYsSn5lPg"
"is/OUXaFXR+BKKafH0MPp2VTvKBHIlnfAe3ApLqLYXeFefyhXZLTvAC3GGkE0d3vtVQsAesGWHIV"
"OQ/1zOvTEhtVJae0KMjM6+NeSEZg17Vwji7IzLlJhYHgr3l9")
)
(dcl_project_import project nil nil)
(dcl_Form_Show AUBlockTool_PalBlkTool)
(princ)
)
Note, don’t copy the encoded string above, as it’s been truncated for readability and won’t work.
Now that you’ve copied the encoded string into your LSP file, you can delete the intermediate .odcl.lsp file if you wish. Now let’s build the VLX file. In the VLIDE, save your LSP then go to File->Make Application->New Application Wizard… On the first screen select “Simple”, then hit Next. Browse to a folder to save you application. You can save it anywhere you like. Then give you application a name. We’ll use “AUBT” for this example; therefore “AUBT.VLX” will be created. Hit Next. On the third screen, hit “Add” and select your LSP source file; “AUBlockTool.lsp” in this case. Hit next again, and then on the last screen ensure “Build Application” is checked and hit the Finish button. Your application has now been compiled into a VLX file and can be distributed to the public.
发表于 2011-11-27 14:49:50 | 显示全部楼层
大概的意思就是:打开odcl的文件——在odcl里选择文件另存为——另存的文件以*.lsp做后缀——会得到一个lsp文件,文件的内容是个list表——在你原来的lisp文件中把(dcl_Project_Load "**")这句话替换为(setq project aaaa)及(dcl_project_import project nil nil)这两句,其中aaaa是刚才通过odcl文件得到的lsp文件内的那个表——保存,接下去就是把这个lisp文件按照普通的lisp文件编译就好了,不需要管对话框的那个文件了
发表于 2011-11-27 22:44:33 | 显示全部楼层
非常感谢大侠们,这个问题也纠结了我好久
拜谢
发表于 2012-9-20 22:46:09 | 显示全部楼层
启动Vlisp编译器   文件——〉生成应用程序——〉新建应用程序——〉生成应用程序
OK
VLX 生成
发表于 2021-2-24 15:28:24 | 显示全部楼层

非常感谢 学习了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-5-16 21:10 , Processed in 0.203975 second(s), 27 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表