乐筑天下

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

[编程交流] 'Uber' Gatte

[复制链接]

55

主题

243

帖子

188

银币

后起之秀

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

铜币
275
发表于 2022-7-6 12:57:02 | 显示全部楼层
Alan
yes it works, although I will need to polish it up and make it more automated - get rid off annoying alert messages and selection of block for every tab.
 
However the immediate problem now is when I try it, I get in the command line for every tab:
 
  1. Reading the input file... Done._.UNDO Current settings: Auto = Off, Control = All, Combine = YesEnter the number of operations to undo or [Auto/Control/BEgin/End/Mark/Back] : _BEGINCommand: _.UNDO Current settings: Auto = Off, Control = All, Combine = YesEnter the number of operations to undo or [Auto/Control/BEgin/End/Mark/Back] : _ENDCommand: Regenerating layout.
 
I tried turning UNDO off but that does work. Not sure what that's about?
回复

使用道具 举报

54

主题

3755

帖子

3583

银币

后起之秀

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

铜币
438
发表于 2022-7-6 13:00:22 | 显示全部楼层
 
Well, keep me posted.
 
Try (setvar 'cmdecho 0)
回复

使用道具 举报

55

主题

243

帖子

188

银币

后起之秀

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

铜币
275
发表于 2022-7-6 13:04:05 | 显示全部楼层
I think its probably the (acet-undo-end) and (acet-undo-begin) express tools functions within bns_attin interfering, with my code. I think I may have to do a 'save as' on ATTIN and edit to suit what I am trying to do. Tomorrow I will look at it again, although the attin code is hard to understand.......
回复

使用道具 举报

55

主题

243

帖子

188

银币

后起之秀

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

铜币
275
发表于 2022-7-6 13:09:17 | 显示全部楼层
Okay here is what I have now. It works though not tested thoroughly.
If used on title blocks it's important to delete columns that don't need to be changed otherwise all attributes(eg dwg number) on different tabs will end up with the same value.
Additionally the handle value also needs to be deleted from the text file otherwise it does not work. Press 'Escape' to cancel and 'Enter' to skip tab.
Please try to improve it, if you have any ideas -thanks
 
cheers
S.F.
 

UberGatte.lsp
回复

使用道具 举报

54

主题

3755

帖子

3583

银币

后起之秀

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

铜币
438
发表于 2022-7-6 13:11:18 | 显示全部楼层
 
I'll look at it when I get home (after dinner and my little girl goes to sleep).
 
 
Post me an example DWG and txt file, so I can actually see what it does.
回复

使用道具 举报

55

主题

243

帖子

188

银币

后起之秀

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

铜币
275
发表于 2022-7-6 13:14:26 | 显示全部楼层
Okay try this. Attached  is a sample dwg and text file.
Its probably better to edit it as a csv file rather than just a text file so that it keeps some of its format.
Sample.dwg
Sample.txt
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-5 06:32 , Processed in 0.512816 second(s), 62 queries .

© 2020-2025 乐筑天下

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