明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1798|回复: 3

[求助]用以下程序,用不了

[复制链接]
发表于 2009-9-5 23:58:00 | 显示全部楼层 |阅读模式

(setq en(entmake  '((0 . "LAYER") (2 . "axis1") (70 . 0) (62 . 1) (6 . "CENTER"))))(ENTMOD EN)
(setq en(entmake  '((0 . "LAYER") (2 . "Zaxis1") (70 . 0) (62 . 3) (6 . "Continuous"))))(ENTMOD EN)
(setq en(entmake  '((0 . "LAYER") (2 . "Defpoints") (70 . 0) (62 . 7) (6 . "Continuous"))))(ENTMOD EN)
(setq en(entmake  '((0 . "LAYER") (2 . "axis2") (70 . 0) (62 . 1) (6 . "CENTER"))))(ENTMOD EN)
(setq en(entmake  '((0 . "LAYER") (2 . "Zaxis2") (70 . 0) (62 . 3) (6 . "Continuous"))))(ENTMOD EN)
(setq en(entmake  '((0 . "LAYER") (2 . "axis3") (70 . 0) (62 . 1) (6 . "CENTER"))))(ENTMOD EN)
(setq en(entmake  '((0 . "LAYER") (2 . "Zaxis3") (70 . 0) (62 . 3) (6 . "Continuous"))))(ENTMOD EN)
(setq en(entmake  '((0 . "LAYER") (2 . "axis4") (70 . 0) (62 . 1) (6 . "CENTER"))))(ENTMOD EN)
(setq en(entmake  '((0 . "LAYER") (2 . "Zaxis4") (70 . 0) (62 . 3) (6 . "Continuous"))))(ENTMOD EN)
(setq en(entmake  '((0 . "LAYER") (2 . "axis5") (70 . 0) (62 . 1) (6 . "CENTER"))))(ENTMOD EN)

 

(entmake  '((0 . "LAYER") (2 . "axis1") (70 . 0) (62 . 1) (6 . "CENTER")))
(entmake  '((0 . "LAYER") (2 . "Zaxis1") (70 . 0) (62 . 3) (6 . "Continuous")))
(entmake  '((0 . "LAYER") (2 . "Defpoints") (70 . 0) (62 . 7) (6 . "Continuous")))
(entmake  '((0 . "LAYER") (2 . "axis2") (70 . 0) (62 . 1) (6 . "CENTER")))
(entmake  '((0 . "LAYER") (2 . "Zaxis2") (70 . 0) (62 . 3) (6 . "Continuous")))
(entmake  '((0 . "LAYER") (2 . "axis3") (70 . 0) (62 . 1) (6 . "CENTER")))
(entmake  '((0 . "LAYER") (2 . "Zaxis3") (70 . 0) (62 . 3) (6 . "Continuous")))
(entmake  '((0 . "LAYER") (2 . "axis4") (70 . 0) (62 . 1) (6 . "CENTER")))
(entmake  '((0 . "LAYER") (2 . "Zaxis4") (70 . 0) (62 . 3) (6 . "Continuous")))
(entmake  '((0 . "LAYER") (2 . "axis5") (70 . 0) (62 . 1) (6 . "CENTER")))

 

(entmake  '((0 . "DIMENSION") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "Zaxis1") (100 . "AcDbDimension") (10 18000.0 -4000.0 0.0) (11 16500.0 -4000.0 0.0) (12 0.0 0.0 0.0) (70 . 32) (1 . "") (71 . 5) (72 . 1) (41 . 1.0) (42 . 3000.0) (52 . 0.0) (53 . 0.0) (54 . 0.0) (51 . 0.0) (210 0.0 0.0 1.0) (3 . "Standard") (100 . "AcDbAlignedDimension") (13 15000.0 -1500.0 0.0) (14 18000.0 -1500.0 0.0) (15 0.0 0.0 0.0) (16 0.0 0.0 0.0) (40 . 0.0) (50 . 0.0) (100 . "AcDbRotatedDimension")))
(entmake  '((0 . "DIMENSION") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "Zaxis1") (100 . "AcDbDimension") (10 15000.0 -4000.0 0.0) (11 13500.0 -4000.0 0.0) (12 0.0 0.0 0.0) (70 . 32) (1 . "") (71 . 5) (72 . 1) (41 . 1.0) (42 . 3000.0) (52 . 0.0) (53 . 0.0) (54 . 0.0) (51 . 0.0) (210 0.0 0.0 1.0) (3 . "Standard") (100 . "AcDbAlignedDimension") (13 12000.0 -1500.0 0.0) (14 15000.0 -1500.0 0.0) (15 0.0 0.0 0.0) (16 0.0 0.0 0.0) (40 . 0.0) (50 . 0.0) (100 . "AcDbRotatedDimension")))
(entmake  '((0 . "DIMENSION") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "Zaxis1") (100 . "AcDbDimension") (10 12000.0 -4000.0 0.0) (11 10500.0 -4000.0 0.0) (12 0.0 0.0 0.0) (70 . 32) (1 . "") (71 . 5) (72 . 1) (41 . 1.0) (42 . 3000.0) (52 . 0.0) (53 . 0.0) (54 . 0.0) (51 . 0.0) (210 0.0 0.0 1.0) (3 . "Standard") (100 . "AcDbAlignedDimension") (13 9000.0 -1500.0 0.0) (14 12000.0 -1500.0 0.0) (15 0.0 0.0 0.0) (16 0.0 0.0 0.0) (40 . 0.0) (50 . 0.0) (100 . "AcDbRotatedDimension")))
(entmake  '((0 . "DIMENSION") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "Zaxis1") (100 . "AcDbDimension") (10 9000.0 -4000.0 0.0) (11 7500.0 -4000.0 0.0) (12 0.0 0.0 0.0) (70 . 32) (1 . "") (71 . 5) (72 . 1) (41 . 1.0) (42 . 3000.0) (52 . 0.0) (53 . 0.0) (54 . 0.0) (51 . 0.0) (210 0.0 0.0 1.0) (3 . "Standard") (100 . "AcDbAlignedDimension") (13 6000.0 -1500.0 0.0) (14 9000.0 -1500.0 0.0) (15 0.0 0.0 0.0) (16 0.0 0.0 0.0) (40 . 0.0) (50 . 0.0) (100 . "AcDbRotatedDimension")))
(entmake  '((0 . "DIMENSION") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "Zaxis1") (100 . "AcDbDimension") (10 6000.0 -4000.0 0.0) (11 4500.0 -4000.0 0.0) (12 0.0 0.0 0.0) (70 . 32) (1 . "") (71 . 5) (72 . 1) (41 . 1.0) (42 . 3000.000000000000) (52 . 0.0) (53 . 0.0) (54 . 0.0) (51 . 0.0) (210 0.0 0.0 1.0) (3 . "Standard") (100 . "AcDbAlignedDimension") (13 3000.000000000000 -1500.0 0.0) (14 6000.0 -1500.0 0.0) (15 0.0 0.0 0.0) (16 0.0 0.0 0.0) (40 . 0.0) (50 . 0.0) (100 . "AcDbRotatedDimension")))
(entmake  '((0 . "DIMENSION") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "Zaxis1") (100 . "AcDbDimension") (10 3000.000000000000 -4000.0 0.0) (11 1499.999999999999 -4000.0 0.0) (12 0.0 0.0 0.0) (70 . 32) (1 . "") (71 . 5) (72 . 1) (41 . 1.0) (42 . 3000.0) (52 . 0.0) (53 . 0.0) (54 . 0.0) (51 . 0.0) (210 0.0 0.0 1.0) (3 . "Standard") (100 . "AcDbAlignedDimension") (13 -0.000000000000276 -1500.0 0.0) (14 3000.000000000000 -1500.0 0.0) (15 0.0 0.0 0.0) (16 0.0 0.0 0.0) (40 . 0.0) (50 . 0.0) (100 . "AcDbRotatedDimension")))
;;以上不可用

;以下可用

(entmake  '((0 . "LINE") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "axis1") (100 . "AcDbLine") (10 -1499.999999999998 23100.0 0.0) (11 19500.0 23100.0 0.0) (210 0.0 0.0 1.0)))
(entmake  '((0 . "LINE") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "axis1") (100 . "AcDbLine") (10 -1499.999999999999 19800.0 0.0) (11 19500.0 19800.0 0.0) (210 0.0 0.0 1.0)))
(entmake  '((0 . "LINE") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "axis1") (100 . "AcDbLine") (10 -1499.999999999999 16500.0 0.0) (11 19500.0 16500.0 0.0) (210 0.0 0.0 1.0)))
(entmake  '((0 . "LINE") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "axis1") (100 . "AcDbLine") (10 -1499.999999999999 13200.0 0.0) (11 19500.0 13200.0 0.0) (210 0.0 0.0 1.0)))
(entmake  '((0 . "LINE") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "axis1") (100 . "AcDbLine") (10 -1499.999999999999 9900.0 0.0) (11 19500.0 9900.0 0.0) (210 0.0 0.0 1.0)))

发表于 2009-9-6 01:21:00 | 显示全部楼层

以下来自 http://bbs.mjtd.com/forum.php?mod=viewthread&tid=70098 

(defun c:f4 ()
(setq name (getstring "\n请输入图层名:"))
(entmake (list '(0 . "LAYER")
        '(100 . "AcDbSymbolTableRecord")
        '(100 . "AcDbLayerTableRecord")
        '(70 . 0)
        '(6 . "Continuous")
        (cons 2 name)
        )
  )
)

请参考修改你的代码

 楼主| 发表于 2009-9-6 12:15:00 | 显示全部楼层

(entmake  '((0 . "LAYER") (2 . "axis5") (70 . 0) (62 . 1) (6 . "CENTER")))

(entmake  '((0 . "DIMENSION") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "Zaxis1") (100 . "AcDbDimension") (10 3000.000000000000 -4000.0 0.0) (11 1499.999999999999 -4000.0 0.0) (12 0.0 0.0 0.0) (70 . 32) (1 . "") (71 . 5) (72 . 1) (41 . 1.0) (42 . 3000.0) (52 . 0.0) (53 . 0.0) (54 . 0.0) (51 . 0.0) (210 0.0 0.0 1.0) (3 . "Standard") (100 . "AcDbAlignedDimension") (13 -0.000000000000276 -1500.0 0.0) (14 3000.000000000000 -1500.0 0.0) (15 0.0 0.0 0.0) (16 0.0 0.0 0.0) (40 . 0.0) (50 . 0.0) (100 . "AcDbRotatedDimension")))

 这类写法有错吗???

一顶这类写法要怎样写才行

发表于 2009-9-7 00:26:00 | 显示全部楼层
关于图层等符号表类用ENTMAKE生成在楼上已经给出例子,你应该看出你的组码里少了些东西,更多的符号表类例子请见
http://hi.baidu.com/123523058/blog/item/d30581f8ecf0f309d8f9fd61.html
用ENTMAKE尺寸标注在晓东那边有人讨论过
http://www.xdcad.net/forum/showthread.php?postid=3307536
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-6 09:40 , Processed in 0.164475 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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