(setq ExtDic (vla-GetExtensionDictionary (vla-get-ModelSpace (vla-get-ActiveDocument (vlax-get-acad-object))))) (setq SreTbl (vla-AddObject ExtDic "ACAD_SORTENTS" "AcDbSortentsTable")) ACAD2004执行结果 命令: (setq ExtDic (vla-GetExtensionDictionary (vla-get-ModelSpace (vla-get-ActiveDocument (vlax-get-acad-object))))) #<VLA-OBJECT IAcadDictionary 038e08a4> 命令: (setq SreTbl (vla-AddObject ExtDic "ACAD_SORTENTS" "AcDbSortentsTable")) ; 错误: Automation 错误。 系统注册表中不存在 AcRxClassName 项 ACAD2006执行结果 命令: (setq ExtDic (vla-GetExtensionDictionary (vla-get-ModelSpace (vla-get-ActiveDocument (vlax-get-acad-object))))) #<VLA-OBJECT IAcadDictionary 061ef0e4> 命令: (setq SreTbl (vla-AddObject ExtDic "ACAD_SORTENTS" "AcDbSortentsTable")) #<VLA-OBJECT IAcadSortentsTable 061ef664>
想问一下在ACAD2004里面执行的时候错误出在哪里? |