明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1259|回复: 2

AutoCAD 2006 如何实现lisp调用带参数的.net命令?

[复制链接]
发表于 2015-10-9 13:58 | 显示全部楼层 |阅读模式
如题,如果在.net 中定义一个函数fuc1(int a,intb),中间以c=a+b做为返回值,如何在lisp程序中调用此函数?希望能在AutoCAD 2006中解决,LispDataType一使用就出现如下错误:
命名空间“Autodesk.AutoCAD.Runtime”中不存在类型或命名空间名称“LispDataType”。是否缺少程序集引用?


发表于 2015-10-9 17:39 | 显示全部楼层
........
  1. using Autodesk.AutoCAD.ApplicationServices;
  2. using AcadApp = Autodesk.AutoCAD.ApplicationServices.Application;
  3. using Autodesk.AutoCAD.DatabaseServices;
  4. using Autodesk.AutoCAD.Windows;
  5. using Autodesk.AutoCAD.EditorInput;
  6. using Autodesk.AutoCAD.Runtime;
  7. using Autodesk.AutoCAD.Geometry;
  8. using Autodesk.AutoCAD.GraphicsSystem;
记得引用Dll库.  然后Using.
 楼主| 发表于 2015-10-10 14:01 | 显示全部楼层
鱼与熊掌 发表于 2015-10-9 17:39
........记得引用Dll库.  然后Using.

能给出一个简单的例子吗?包括平台。刚开始学习C#,当前CAD2008 VS2010
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-2 10:26 , Processed in 0.195604 second(s), 27 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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