Message 1 of 13

Not applicable
05-28-2018
03:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi.
Can anyone help me with this problem:
(defun c:txt2tab1 ( ) (txt2tab:main '("^\\d+" "\\d+" "%%C\\d+" "C=" "\\d+\\.?\\d*") "MYDWGLAYER") ) ;;----------------------------------------------------------------------;; (defun txt2tab:main ( pat lay / *error* idx ins itm lst mlt obj rgx sel str tmp ) (setq mlt '( ("5" . 0.154) ("6.3" . 0.245) ("8" . 0.395) ("10" . 0.617) ("12.5". 0.963) ("16" . 1.578) ("20" . 2.466) ("25" . 3.853) ("32" . 6.313) ) ) (defun *error* ( msg ) (if (and (= 'vla-object (type rgx)) (not (vlax-object-released-p rgx)) ) (vlax-release-object rgx) ) (if (and (= 'vla-object (type obj)) (vlax-read-enabled-p obj) (= "AcDbTable" (vla-get-objectname obj)) (vlax-write-enabled-p obj) ) (vla-put-regeneratetablesuppressed obj :vlax-false) ) (txt2tab:endundo (txt2tab:acdoc)) (if (and msg (not (wcmatch (strcase msg t) "*break,*cancel*,*exit*"))) (princ (strcat "\nError: " msg)) ) (princ) )
I cant multiply values like 6.3 and 12.5. The other ones works well.
Solved! Go to Solution.