乐筑天下

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

[编程交流] Kill 'Select Font File�

[复制链接]

55

主题

243

帖子

188

银币

后起之秀

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

铜币
275
发表于 2022-7-6 14:13:57 | 显示全部楼层 |阅读模式
This is a question thats been asked a thousand times before.
The answers are not really that satisfactory - in my opinion.
First you have to find the linetype or shx font file and purge which can be hard to do. Other wise ask the originator for the shx file which can be impossible.
So is it possible to kill the 'Select Font File" dialog box as soon as it shows?
I know it's a work around but at least it will stop the extremely annoying dialog  box.
I thought adding some code to acaddoc.lsp so it is automatically loaded
Firstly how can I programatically identify  the 'Select Font file' dialog box?
Secondly how can I make it disappear?
Any ideas?
thanks
回复

使用道具 举报

55

主题

243

帖子

188

银币

后起之秀

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

铜币
275
发表于 2022-7-6 14:27:02 | 显示全部楼层
Thinking about it - I have a possible solution - set FILEDIA  = 0 then enter and enter then reset FILEDIA back to 1.
I am not sure whether this would be a good idea as it might also kill any other messages.
Also what happens when the Select Font File Dialog box doesn't show?
回复

使用道具 举报

8

主题

1647

帖子

1647

银币

初来乍到

Rank: 1

铜币
36
发表于 2022-7-6 14:44:50 | 显示全部楼层
If you automatically kill the dialog, then you will never know that you are missing shape files, which may actually be important to the drawing. The shx files are not just fonts, they are also used in custom linetypes. You should always try to obtain these files whenever possible, rather than just dismissing the warning without regard.
 
And, as I've said a thousand times already, if people would just use Etransmit when sending files, we wouldn't have problems like this.
回复

使用道具 举报

55

主题

243

帖子

188

银币

后起之秀

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

铜币
275
发表于 2022-7-6 14:50:50 | 显示全部楼层
I have an xref that originated from some outside drawing all other linetypes have been deleted - so I am left with just a simple drawing. I don't care about the warning because I just have one line type and no fonts exists. I know which font/linetype file is missing! Repeating the warning over and over is superfluous.  
 
Whether people use E-TRANSMIT is something I can not fix.
回复

使用道具 举报

8

主题

1647

帖子

1647

银币

初来乍到

Rank: 1

铜币
36
发表于 2022-7-6 15:05:33 | 显示全部楼层
If it's just this one file, then why not WBlock the drawing out to a new file?
That should get rid of the problem.
 
If you write some code into your acaddoc.lsp, then it will run every time you open a drawing and kill the dialog every time. So you will never know you are missing shape files in other drawings.
回复

使用道具 举报

55

主题

243

帖子

188

银币

后起之秀

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

铜币
275
发表于 2022-7-6 15:21:09 | 显示全部楼层
I could as you say just wblock the drawing - but that does really solve the over all problem.
 
Anyway cad64 - my question is not about the rights and wrongs of getting rid of the dialog box.
My question is how can I programatically kill the dialog box?
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-5 03:02 , Processed in 0.683216 second(s), 64 queries .

© 2020-2025 乐筑天下

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