0 Members and 1 Guest are viewing this topic.
(defun drop()(vl-load-com)(setq acadObj (vlax-get-acad-object))(setq acDoc (vlax-get-property acadObj 'ActiveDocument))(setq acDocSumInfo (vlax-get-property acDoc 'SummaryInfo)) ;; Get the number of Custom properties (setq nCustomProps (vlax-invoke-method acDocSumInfo 'NumCustomInfo)) ;; Print Custom Properties if there are any (if (= nCustomProps 0) (prompt (strcat "\n\nNo Custom Properties\n")) (progn (setq loopCnt 0) (prompt (strcat "\n\nCustom Properties")) (repeat nCustomProps (vlax-invoke-method acDocSumInfo 'RemoveCustomByKey loopCnt 'customFieldName 'fieldValue) (prompt (strcat "\n " customFieldName ": " fieldValue)) (setq loopCnt (1+ loopCnt)) ) ) ) )