乐筑天下

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

[编程交流] 打开组合框中的dwg文件

[复制链接]

1

主题

1069

帖子

1050

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
69
发表于 2022-7-6 23:30:05 | 显示全部楼层
我没有这台电脑的工作,但我使用了第1页上的编码
回复

使用道具 举报

3

主题

24

帖子

21

银币

初来乍到

Rank: 1

铜币
15
发表于 2022-7-6 23:34:16 | 显示全部楼层
回复

使用道具 举报

1

主题

1069

帖子

1050

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
69
发表于 2022-7-6 23:39:06 | 显示全部楼层
After his block was inserted you could be to store its handle, say in Textbox field, that is easiest
in the current program
  1. Set myBlock = ThisDrawing.PaperSpace.InsertBlock(blockInsert, dwgName, 1, 1, 1, 0)dim handStr as stringhandStr=myBlock.HandleTextBox1.Text=handStr
Then if you need to insert new one instead
you could be able to rich at old block using
HandleToObject method (see Help)
 
Don't remember exactly maybe something like
  1. Dim oldObj as AcadObject ' or AcadEntity perhapsSet oldObj=Thisdrawing.HandleToObject(Trim(TextBox1.Text))oldObj.DeleteSet oldObj=Nothing
 
~'J'~
回复

使用道具 举报

3

主题

24

帖子

21

银币

初来乍到

Rank: 1

铜币
15
发表于 2022-7-6 23:39:36 | 显示全部楼层
I used this bit of code to auto show layout1
 
With ThisDrawing
.ActiveLayout = .Layouts.Item("Layout1")
.Application.Application.GetAcadState
End With
 
However im struggling with the update code.
回复

使用道具 举报

0

主题

3

帖子

3

银币

初来乍到

Rank: 1

铜币
0
发表于 2022-7-6 23:47:01 | 显示全部楼层
I am new to this and have exactly the same application. Can you show your complete work here, starting with creating your combobox to inserting seletion to the drawing.
 
 
Thanks
 
回复

使用道具 举报

3

主题

24

帖子

21

银币

初来乍到

Rank: 1

铜币
15
发表于 2022-7-6 23:47:21 | 显示全部楼层
i dont have the work on this computer, but i used the coding on page 1
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-4 06:22 , Processed in 0.752361 second(s), 62 queries .

© 2020-2025 乐筑天下

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