prodromosm 发表于 2022-7-5 19:11:49

您好,问题出在grlabel_注释中。图纸‎ . 你能帮我做这个吗。

iconeo 发表于 2022-7-5 19:15:11

该块是否已存在于图形中,或者是否已将其保存在某个位置?

prodromosm 发表于 2022-7-5 19:18:35

我想将块保存在文件中。

iconeo 发表于 2022-7-5 19:21:02

(command "insert" "C:/BLAH/BLAH/grlabel_annotation" dt1 scl1 scl1 "0")
 
这应该行得通。。。

prodromosm 发表于 2022-7-5 19:25:57

 
我可以用这个代码插入块
 
(Defun c:Annotgrlabel ()
(setvar "OSMODE" 32)
(setq scl1 1)
(setq dt1 (getpoint "\n Insert Point :"))
(command "insert" "grlabel_annotation" dt1 scl1 scl1 "0")
;(command "_.explode" "_L")
(setvar "OSMODE"
)
 
但块不是注释。问题出在模块中,而不是代码中

iconeo 发表于 2022-7-5 19:28:06

你的意思是块不是注释性的?图形中定义的当前块是否为注释性块?如果不是,则需要先重新定义此块。

prodromosm 发表于 2022-7-5 19:29:39

我需要重新定义这个区块,我尝试了,但我做不到。你能修好吗?

iconeo 发表于 2022-7-5 19:32:58

http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS1a9193826455f5ffa23ce210c4a30acaf-htm,主题编号=d0e82532

prodromosm 发表于 2022-7-5 19:37:14

这一切我都读过了,但我修不好

iconeo 发表于 2022-7-5 19:41:27

http://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/Redefine-Block-in-Current-Drawing-Using-Design-Center.html
 
???
页: 1 [2]
查看完整版本: 注释块帮助