乐筑天下

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

[编程交流] Linking blocks between DWG

[复制链接]

24

主题

109

帖子

85

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
120
发表于 2022-7-6 15:22:56 | 显示全部楼层 |阅读模式
Everyone, does anyone know if its possible to link certain attributes in a block between DWG's? IE: we have a floor plan xref where we have a column block with the attributes of: size and number. We then have a column schedule, which also has the column size. Occasionally we will change the size on plan but forget to change it on schedule. Is there a way we can make it so if we change the block on plan, it changes automatically on the schedule? our schedule doesnt actually use a block but if what i has suggested is plausible i can make it a block. Also if it is possible i will upload a sample, but theres no point yet if its not possible.
回复

使用道具 举报

52

主题

156

帖子

104

银币

后起之秀

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

铜币
260
发表于 2022-7-6 15:49:49 | 显示全部楼层
It is kind of possible. One way to do this is using Excel. Create your schedule in Excel then in AutoCAD, goto TOOLS > DATA LINKS > DATA LINK MANAGER. Then click on Create a New Excel Data Link, name it whatever you like. Then BROWSE for the Excel spreadsheet you created as your schedule. Select a range for sheet and set properties as required.
 
To insert a table goto DRAW > TABLE and select Data Link we created earlier.
 
We now have a table of the schedule. Following the same process as previouslt mentioned you could create a Data Link for each block inserting the data link into seperate blocks. Not the best solution as you need seperate blocks for every instance but is a way to do it.
回复

使用道具 举报

24

主题

109

帖子

85

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
120
发表于 2022-7-6 16:06:17 | 显示全部楼层
Thanks for your help. Im not sure if theres a better way to go about it, but i think im going to have to learn VBA anyway so i might hold off and do it in that. Thanks again
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-6 16:11:32 | 显示全部楼层
You can definately look up a block and then change another blocks attributes automatically.
 
To explain more I pick a block its used as a text label and read out 1 of its attribute its a unique id, I then pick points etc  and write these answers to another block (different name but has an attribute with the same unique IDMore tommorrow battrey dying
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-6 16:29:30 | 显示全部楼层
Sorry about that battery died
 
The code I wrote just works inside one drawing but it should work across drawings you would get the answers from one drawing and then jump into the other drawing and update. It does what you are talking about picking one object but upadting something else within the drawing, my case model space pick but schedule in a layout space is updated. let me know will paste if you think usefull.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-4 18:25 , Processed in 0.441938 second(s), 73 queries .

© 2020-2025 乐筑天下

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