本帖最后由 muwind 于 2020-8-25 22:18 编辑
以前收集的应该能用,调用方式(addkey "名称" "值")
- (setq fyInf (vlax-get-property (vlax-get-property (vlax-get-acad-object) 'ActiveDocument) 'SummaryInfo))
- (defun Iskey(K / V)
- (null(vl-catch-all-apply 'vlax-invoke-method (list fyInf 'GetCustomByKey K 'V)))
- );是否存在
- (defun addkey(K V)
- (if(Iskey K)
- (vlax-invoke-method fyInf 'setCustomByKey K V);修改
- (vlax-invoke-method fyInf 'addCustomInfo K V);增加
- )
- )
|