马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
 - (vl-load-com)
- (defun _kpblc-get-ent-name (ent)
- (cond ((vlax-property-available-p ent 'effectivename)
- (vla-get-effectivename ent)
- )
- ((vlax-property-available-p ent 'name) (vla-get-name ent))
- ) ;_ end of cond
- ) ;_ end of defun
- (setq sysvar (vl-remove-if-not
- (function cdr)
- (mapcar (function (lambda (x) (cons x (getvar x))) ;_ end of lambda
- ) ;_ end of function
- '("frame" "imageframe" "pdfframe"
- "dwfframe" "dgnframe" "oleframe"
- )
- ) ;_ end of mapcar
- ) ;_ end of vl-remove-if-not
- ) ;_ end of setq
- (vlax-for item (vla-get-dictionaries
- (vla-get-activedocument (vlax-get-acad-object))
- )
- (if
- (not
- (or (and (not (_kpblc-get-ent-name item))
- (= (cdr (assoc 0 (entget (vlax-vla-object->ename item))))
- "RASTERVARIABLES"
- )
- ) ;_ end of and
- (and (_kpblc-get-ent-name item)
- (wcmatch (strcase (_kpblc-get-ent-name item))
- "ACAD_*,JOBDICT_*"
- )
- ) ;_ end of and
- ) ;_ end of or
- ) ;_ end of not
- (vl-catch-all-apply
- (function (lambda () (vla-delete item)) ;_ end of lambda
- ) ;_ end of function
- ) ;_ end of vl-catch-all-apply
- ) ;_ end of if
- ) ;_ end of vlax-for
- (foreach item sysvar (setvar (car item) (cdr item))) ;_ end of foreach
|