Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/19/2022 in all areas

  1. Hi, You described your csv file into your first post here differently than the attached csv file ! Anyway, here is my go with it which is untested so please test it and let me know. I am sure that you can learn from the following codes since you were able to come up with working method. (defun c:Test ( / *error* csv opn ins str pos qty bkn ) ;;------------------------------------------------------------;; ;; Author: Tharwat Al Choufi - Date: 19.Apr.2022 ;; ;; website: https://autolispprograms.wordpress.com ;; ;;------------------------------------------------------------;; (defun *error* (msg) (and opn (= (type opn) 'FILE) (close opn)) (princ "\n*Cancelled*") ) (and (setq csv (getfiled "" (getvar 'dwgprefix) "csv" 16)) (setq opn (open csv "r")) (setq ins '(5.0 0.0 0.0)) (or (while (setq str (read-line opn)) (and (setq pos (vl-string-search "," str 9)) (setq qty (atoi (substr str 1 (vl-string-search "," str)))) (tblsearch "BLOCK" (setq bkn (substr str 1 pos))) (repeat qty (command "_.-INSERT" bkn "_non" ins "1" "1" "0") (setq ins (polar ins 0.0 5.0)) ) ) ) t ) (setq opn (close opn)) ) (princ) ) (vl-load-com)
    1 point
  2. No need to make multiple posts in multiple forums.
    1 point
  3. Since you are liking Lee Mac and his work, try this: http://lee-mac.com/stringtolist.html
    1 point
  4. You could try contacting Autodesk and see if they can help you over the phone, but you're attempting to activate an old version that they no longer support, on a computer that's not connected to the internet. So unfortunately, you may be out of luck. Why don't you connect to the internet? Just because updates are available doesn't mean you have to install them. Just go into your settings and deactivate the automatic update option.
    1 point
×
×
  • Create New...