乐筑天下

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

HELP

[复制链接]

16

主题

909

帖子

8

银币

中流砥柱

Rank: 25

铜币
973
发表于 2004-2-20 06:58:00 | 显示全部楼层 |阅读模式
(if (/= (vla-get-configname (setq layout (objsel layoutsel "Paper"))) "\\\\CCICAUDIRS2A\\Drawings Printer PS")
                                                                                 (progn
                                         (alert "Current plotter configuration name is not \"Drawings Printer PS\", press ENTER to change...")
                                                                                                 (vla-put-configname layout "\\\\CCICAUDIRS2A\\Drawings Printer PS")
                         );progn
                 );end-if
That's part of my routine. The problem is sometimes it returns
error: Automation Error. Invalid input
The printer "\\\\CCICAUDIRS2A\\Drawings Printer PS" is definitely in the list
Anybody can tell me what causes the problem and how to traps the error. Many thanks
回复

使用道具 举报

29

主题

1152

帖子

10

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1268
发表于 2004-2-20 07:58:00 | 显示全部楼层
Specifies the plotter configuration name.
       
Signature
       
object.ConfigName
       
object                                                 Layout, PlotConfiguration
The object or objects this property applies to.
ConfigName                                 String; read-write
The name of the PC3 file or print device to be used by the layout or plot configuration.
       
Remarks
       
This property does not take a fully qualified path, only the file name for the configuration file. Use the PrinterConfigPath property to specify the path for printer configuration files.
       
       
       
Specifies the location for printer configuration files.
       
Signature
       
object.PrinterConfigPath
       
object                                                 PreferencesFiles
The object or objects this property applies to.
PrinterConfigPath                                 String; read-write
The drive and path for printer configuration files.
       
Remarks
       
Use a semicolon (;) to separate multiple directories; however, do not end the string with a semicolon.
回复

使用道具 举报

16

主题

909

帖子

8

银币

中流砥柱

Rank: 25

铜币
973
发表于 2004-2-20 08:22:00 | 显示全部楼层
I am quite sure the following sentence cause the problem
(vla-put-configname layout "\\\\CCICAUDIRS2A\\Drawings Printer PS")
It do work properly in many cases. And it also failed sometimes.
The printer "\\\\CCICAUDIRS2A\\Drawings Printer PS" is in the plot device list. But just can not be indentified.
Can you help me catch the error and prompt the user to change the plot device manually?
回复

使用道具 举报

16

主题

909

帖子

8

银币

中流砥柱

Rank: 25

铜币
973
发表于 2004-2-20 08:40:00 | 显示全部楼层
请点击此处下载

请先注册会员后在进行下载

已注册会员,请先登录后下载

文件名称:cmjqrnryfd3.lsp 
下载次数:0  文件大小:1.52 KB  售价:2银币 [记录]
下载权限: 不限 以上或 Vip会员   [开通Vip]   [签到领银币]  [免费赚银币]

I would like to dicribe the error in more detail
Please get my complete LISP file...
This error only happens when I just start a new AutoCAD session and before the first actually plotting opertion
It seems the first plotting operation will load something that make the vla-put-configname applicable.
回复

使用道具 举报

26

主题

3072

帖子

10

银币

社区元老

Rank: 75Rank: 75Rank: 75

铜币
3177
发表于 2004-2-20 09:19:00 | 显示全部楼层
you can use (vl-catch-all-apply) to catch the error
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-7-8 23:32 , Processed in 0.756202 second(s), 68 queries .

© 2020-2025 乐筑天下

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