乐筑天下

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

[编程交流] Entmake / Vla-insert Which one

[复制链接]

43

主题

136

帖子

92

银币

后起之秀

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

铜币
217
发表于 2022-7-6 07:14:41 | 显示全部楼层 |阅读模式
Hi All,
 
I have a routine which imports block with attributes from text file (XYZ file) with the standard autocad command (eg. "command "_insert" ...).
I have been given a text file to import which is very huge around 2lacs points in it and the above method was taking ages so I modified the code and used the vla-insert method function written by Alan J. Thompson.
The first method took 5 hours and the second one took around 2-2.5 hours.
I doubt if entmake make me of any help.
I need help if anyone can tell any other way to import blocks faster.
 
Thanks and Best Regards
Aaryan
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 08:21:07 | 显示全部楼层
entmake is generally the fastest method when generating new entities in the drawing, since you are directly modifying the drawing database. However, where attributed blocks are concerned, note that you will need to create the ATTRIB entities separately following creation of the INSERT entity (furthermore, you would also need to calculate the position of each ATTRIB entity relative to the position, scale, rotation and orientation of the INSERT entity, based on the relative position of the ATTDEF entity in the block definition), and then finally creating the terminating SEQEND entity; so these extra steps may detract from performance.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-10 10:06 , Processed in 0.391713 second(s), 56 queries .

© 2020-2025 乐筑天下

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