乐筑天下

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

[编程交流] LISP Routines misbehaving (see

[复制链接]

77

主题

298

帖子

232

银币

后起之秀

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

铜币
394
发表于 2022-7-5 20:09:16 | 显示全部楼层 |阅读模式
Hi guys,
 
I am just getting some weird behavior with some of my LISP routines, the best way to explain it would be - they don't work like they usually do.
 
For example, I have a routine with part code as below:
 
  
  1. (command "copybase" rvpt1 sset "" "ucs" "w" "pasteblock" rvpt2 "explode" "L" "move" "p" "" rvpt2 pause)
   
  Which had been working fine for years, until today.  Now I must change the code to:
   
  
  1. (command "copybase" rvpt1 sset "" "ucs" "w" "pasteblock" rvpt2 "explode" [b][u]"L" ""[/u][/b] "move" "p" "" rvpt2 pause)
   
  ..in order for the routine to work.
   
  Has anyone else every had this type of thing happen?  I can't help but think there may be some system variable that controls how commands behave within LISP routines, and I have accidently changed it.
   
  Thanks a lot for any help, looking forward to hearing back.
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-5 20:23:08 | 显示全部楼层
This I would consider to be correct as Explode like lots of others you can pick multiple entities so must use a "" to say all done, the variable will be something to do with pick singular or multiple.  Try Pickadd 0 1 2
回复

使用道具 举报

77

主题

298

帖子

232

银币

后起之秀

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

铜币
394
发表于 2022-7-5 20:36:42 | 显示全部楼层
Hi BigAl,
 
Thanks for the reply.  I have managed to correct the  issue by running a system restore.  This unfortunately makes it hard to  experiment with other possible solutions, but I really needed the  instant fix.
 
 
I tend to agree that I would expect to need to enter  the "" after feeding the selection set to the EXPLODE command.  I hate  to be argumentative, but I had noticed in the past that executing  EXPLODE through a LISP routine doesn't require the "" in order for it to  work (which I find strange, but perhaps there is some explanation).   For example, if I draw a polyline, then enter (command "explode" "L") at the command line, the polyline will happily be exploded down to a line, but if I enter (command "explode" "L" "") after drawing a polyine - the polyline will be exploded, and then the PLINE command will be initiated.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 20:46:21 | 显示全部楼层
Ensure QAFLAGS is set to 0
回复

使用道具 举报

77

主题

298

帖子

232

银币

后起之秀

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

铜币
394
发表于 2022-7-5 21:00:14 | 显示全部楼层
Hi Lee,
 
Thanks for the reply.
 
Yep, that did it. Those undocumented system variables... Get me every time.
 
Thanks again.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 21:15:16 | 显示全部楼层
You're welcome!
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-11 09:10 , Processed in 0.503740 second(s), 64 queries .

© 2020-2025 乐筑天下

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