乐筑天下

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

[综合讨论] Script Issues: Not performing

[复制链接]

2

主题

7

帖子

5

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-7 00:53:23 | 显示全部楼层
After a lot of guess work, it appears the problem was that the script  was not finding the coordinates I was providing.  I had a few drawings  where "0,0" (as "0,0" were the coordinates I was providing to gatte) was  obscured by the bottom of the workspace screen. The simple fix was to  add a ZOOM and then EXTENTS command before GATTE.
 
I swear,  sometimes AutoCAD presents us with the most trivial and aggravating of  issues. Anyways, thanks you guys for your input.
回复

使用道具 举报

10

主题

8258

帖子

8335

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-7 00:56:57 | 显示全部楼层
Glad to hear you finally got it figured out and thanks for updating us.
回复

使用道具 举报

0

主题

34

帖子

18

银币

初来乍到

Rank: 1

铜币
18
发表于 2022-7-7 00:58:00 | 显示全部楼层
I think you answered your own question earlier: after adding a three second delay more files got processed and only later files started to fail.So try 4-5-6-7-8-9-10 second delays until the set is complete.
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-7 01:02:57 | 显示全部楼层
I have posted elsewhere the problem of zooming sometimes, in some lisps you do the same manually and it works because you have zoomed in, this has been a problem with Autocad for say 20+ years. Its a hidden bug its like if you can not see it I will not work, simple work around is use Z C 0,0 scale this way you control how much you can see, using Z E can bring other problems that  wrong objects will be picked.
 
You should not need any time delays. I have processed multi drawings and never needed time delay.
 
I would use a bit of lisp to get entries this stops any problems of autocad using  and continuing on rather than asking.
 
  1. PSPACE(setq ans (getstring "\n[here I enter the new text]'))GATTE0,0APPROVALDATEansY_QSAVECLOSE
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-9 23:02 , Processed in 0.680226 second(s), 59 queries .

© 2020-2025 乐筑天下

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