乐筑天下

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

[编程交流] Can't understand why this

[复制链接]

6

主题

44

帖子

38

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-6 08:23:24 | 显示全部楼层 |阅读模式
ok I have a routine that its doing something I can't get
 
I have it set to load with every drawing.
 
but when I run it, after the first dialog box it prompts me this error
 
  1. ; error: bad argument type: (or stringp symbolp): nil
 
the routine will start working as I want it if I open it in VLIDE and choose "Load text in editor"
 
Why is this?
回复

使用道具 举报

6

主题

44

帖子

38

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-6 08:37:45 | 显示全部楼层
I already went here:
 
http://lee-mac.com/errormessages.html
 
but I can't make the vlisp to point me to the error.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 08:41:02 | 显示全部楼层
Follow this to determine the source of the error:
 
http://lee-mac.com/debugvlide.html
回复

使用道具 举报

6

主题

44

帖子

38

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-6 08:50:34 | 显示全部楼层
Hi lee I followed your tutorial some time ago and I did try that, but the vlide doesn't point me to the error when I select "last break source" it only shows a dialog box with the error I posted in the first post.
 
Truth be said I didn't follow the "watching variables" part. I will do that now.
回复

使用道具 举报

6

主题

44

帖子

38

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-6 08:54:12 | 显示全部楼层
Well this is weird for me.
 
I removed the routine from the startup suite and added it again, and now it is working
 
edit - by the way I'm sure it was the same routine
回复

使用道具 举报

6

主题

44

帖子

38

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-6 09:04:13 | 显示全部楼层
This is happening again  now in two routines, they will only work as I want them when I load them with "load text in editor".
 
The editor doesn't point me to the error but I check some variables which should be set with the dcl and they are nil.
回复

使用道具 举报

44

主题

3166

帖子

2803

银币

中流砥柱

Rank: 25

铜币
557
发表于 2022-7-6 09:14:25 | 显示全部楼层
More information is needed; consider posting your code to allow us to better assist you.
回复

使用道具 举报

6

主题

44

帖子

38

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-6 09:22:01 | 显示全部楼层
well this is very specific to a file:
 
You would have to change the directories I have in the lisp file with ones to test.
 
after that you need to open the Lista.dwg file I attached load the lisp and type "proc" to start. than in the dialog box you can put for example "pacheco" if everything goes well a new dialog box should appear with search results, otherwise it just gives an error.
 
Sorry about the messy code.
Lista.dwg
proc.lsp
proc.dcl
回复

使用道具 举报

6

主题

44

帖子

38

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-6 09:23:48 | 显示全部楼层
commented out a part and changed the name to a function, don't know why but now it works.
 
thanks
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-9 07:44 , Processed in 0.344806 second(s), 70 queries .

© 2020-2025 乐筑天下

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