找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 742|回复: 1

[求助]:线型问题

[复制链接]
发表于 2003-5-10 23:10:38 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
如果当前图纸没有加载这种线型,如何加载AutoCAD预定义的线型?
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!

已领礼包: 145个

财富等级: 日进斗金

发表于 2003-5-11 00:21:43 | 显示全部楼层

Re: [求助]:线型问题

最初由 ljhqfljhqf 发布
[B]如果当前图纸没有加载这种线型,如何加载AutoCAD预定义的线型? [/B]


你可以用 ads_command 调用 linetype 命令加载acad.lin 文件

如果不希望使用命令调用,你可以用纯ARX方法,这些在帮助文件里面都提供了,用 loadline.....就会出来的。需要记住的是,在ACAD下面,没有ARX做不了的,而所有方法都在帮助文件里面可以查到用法

  1. <normalfont>
  2. AcDbDatabase::loadLineTypeFile Function Acad::ErrorStatus

  3. loadLineTypeFile(

  4. const char * ltn,

  5. const char * filename);

  6. ltn Input linetype name string (wild cards may be used)
  7. filename Input path/filename or
  8. URL of linetype file to load from (path is optional)

  9. This function loads the linetype specified by ltname from
  10. the file specified by fname and
  11. stores it in the database on which this method is called.

  12. The ltname parameter may contain wild card characters (see the ads_wcmatch() documentation
  13. for more information on wild card usage). If wild cards are used, multiple linetypes may be loaded.

  14. If fname is not a URL and does not contain a path, then the AutoCAD
  15. library search path is searched for the file.

  16. Returns Acad::eOk if successful.

  17. Returns Acad::eNullObjectPointer if ltname or fname is NULL.

  18. Returns Acad::eFileSystemErr if the specified file cannot be opened.


  19. Returns Acad::eUndefinedLineType if the linetype name specified by
  20. ltname is not found in the file.

  21. Returns Acad::eBadLineTypeName if the file contains a malformed record, or a syntax error is encountered.

  22. Returns an appropriate Internet-specific Acad::ErrorStatus value if a URL
  23. is specified and the transfer is not successful
  24. </normalfont>
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-9-20 22:31 , Processed in 0.162757 second(s), 33 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表