乐筑天下

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

[综合讨论] Script Issues: Not performing

[复制链接]

2

主题

7

帖子

5

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-7 00:02:35 | 显示全部楼层 |阅读模式
I have searched around for a similar problem, but did not seem to find  it. If anyone can point me to where this has been discussed, this thread  can be closed.
 
Anyways, I am about to pull my hair out. I have  used a program called Script Maker v. 1.0.4 to create simple batch  scripts to update attributes in my title blocks that exist in multiple  drawings.
 
This is the essence of the command:
 
PSPACE
GATTE
0,0
APPROVALDATE
[here I enter the new text]
Y
_QSAVE
CLOSE
 
When  those commands are generated on with a script containing the desired  files, for some reason the script malfunctions around the 7th drawing.
 
Today, I downloaded a demo of Hurricane for AutoCAD, which is a more user friendly program that does just about the same thing.
 
This is the script it generates:
 
(LOAD "C:/PROGRAM FILES (X86)/HURRICANE/LISP/TB_WIZ1.LSP")
;-------------
TB_WIZ1
"title-sheet"
approvaldate
09/19/12
REGEN
;-------------
 
Again, it works first few drawings (in this case the first three drawings), but malfunctions on the fourth drawing.
 
This  is very frustrating because I had no problems with this on my previous  computer. Now, on a new faster computer, I having these problems. I am  even having them on the exact same drawing files that had no issues on  the previous computer.
 
I have attached the text as it is executed in both versions.
 
Thanks!
 
Script1.txt
Script2.txt
回复

使用道具 举报

10

主题

8258

帖子

8335

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-7 00:11:22 | 显示全部楼层
Is it your feeling that the script is running too fast?  Can a "pause" be built into a script?
回复

使用道具 举报

2

主题

7

帖子

5

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-7 00:12:34 | 显示全部楼层
I have tried entering a 3 second delay after each set of related commands, it didn't seem to fix the issue. As a matter of fact, it just push off the problem to drawings later on in the sequence. It is so bizarre.
回复

使用道具 举报

10

主题

8258

帖子

8335

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-7 00:17:34 | 显示全部楼层
What version of AutoCAD were you running previously?
回复

使用道具 举报

2

主题

7

帖子

5

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-7 00:25:30 | 显示全部楼层
The previous version was 2013. I am just using it on a new computer. But this script was also successful on 2009 and 2011.
回复

使用道具 举报

10

主题

8258

帖子

8335

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-7 00:27:06 | 显示全部楼层
Makes one wonder why then a new computer would have any influence over a script file.  Weird.
 
You got me puzzled.
回复

使用道具 举报

2

主题

7

帖子

5

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-7 00:32:55 | 显示全部楼层
I am thinking about just trying to reinstall AutoCAD, but that is such a pain.
回复

使用道具 举报

0

主题

96

帖子

97

银币

限制会员

铜币
-1
发表于 2022-7-7 00:37:21 | 显示全部楼层
It might be "crashing" if the drawing does not have the attribute in the drawing. Have you looked to see if the offending drawings do have it?
回复

使用道具 举报

2

主题

7

帖子

5

银币

初来乍到

Rank: 1

铜币
10
发表于 2022-7-7 00:43:59 | 显示全部楼层
Yeah, they all have the attribute. I confirmed this by going in manually and performing the commands and it worked fine.
 
I  am trying it now with Autodesk Script pro, and I am having better luck  because it uses a timeout feature when a drawing is not responding. From  the 16 drawings in this set, #7 through #10 do not update. Oddly  enough, script pro shows a status of "failed" for the successful  updates, and a status of "done" for the unsuccessful updates. Therefore,  I think I have been able to narrow the problem down to this hookup:
 
I am certain that there is a block located at 0,0. Because when I going in manually and perform GATTE, and enter 0,0, it shows me all the attributes available for modification.
回复

使用道具 举报

10

主题

8258

帖子

8335

银币

初来乍到

Rank: 1

铜币
31
发表于 2022-7-7 00:45:03 | 显示全部楼层
It sounds like you are making some progress at least.  I hope it gets better.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-9 20:48 , Processed in 0.353146 second(s), 72 queries .

© 2020-2025 乐筑天下

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