+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 15 of 15
  1. #11
    Full Member
    Using
    AutoCAD 2014
    Join Date
    Dec 2010
    Posts
    81

    Default

    Registered forum members do not see this ad.

    Thanks guys

  2. #12
    Full Member
    Using
    AutoCAD 2014
    Join Date
    Dec 2010
    Posts
    81

    Default

    When using csv as a data import/export, have you guys found a way for Excel to not turn entity handle 34E57 in 34*10^57, and not omit all the leading zeros, not turn things into dates, ...
    I know, it's not Autocad or LISP's fault, but maybe you found some obvious solution...
    I can't explain to my colleagues how to import it in excel, set the data formatting, (Meanwhile I use notedpad++ to adapt data in the csv) ...

  3. #13
    Super Member hanhphuc's Avatar
    Using
    AutoCAD 2007
    Join Date
    Apr 2013
    Location
    Happy Garden
    Posts
    710

    Default

    hi,
    do you notice command : ATTOUT , 'handles' output with quote mark, i.e: '34E57
    _$ ( apply 'equal "hp" "happy" "hạnh phúc" "ハッピー" "幸福" "행복" )
    ; error: too many arguments

  4. #14
    Super Member hanhphuc's Avatar
    Using
    AutoCAD 2007
    Join Date
    Apr 2013
    Location
    Happy Garden
    Posts
    710

    Default

    Quote Originally Posted by BIGAL View Post
    hahnphuc basicly the same as I suggested but csv style still loooking when you have so many hard to remember where you put the code some times.

    for fun the bla bla
    Code:
    (defun c:muloff(/ o s l)
    (setq o (entsel "\nSelect Object"))
    (setq pt (getpoint "\nPick Offset side"))
    (setq data (_getreal "\nEnter multiple offset distance," B ))
    (foreach i data
    (vl-cmdf "_.offset" i o pt "")
    )
    )
    sorry BIGAL i've changed the symbol _prompt to _getreal which naming is more relevant

    Although global variable is not preferable than csv , another suggestion - store as 'list' string
    Code:
    (setvar 'users1 (vl-princ-to-string '(1 2 3 4 5))) ; as default or (_getreal  "msg" nil)
    (setq B (read (getvar 'users1)))
    _$ ( apply 'equal "hp" "happy" "hạnh phúc" "ハッピー" "幸福" "행복" )
    ; error: too many arguments

  5. #15
    Full Member
    Using
    AutoCAD 2015
    Join Date
    Sep 2016
    Posts
    99

    Default

    Registered forum members do not see this ad.

    Thank you so much.. All of you for your code.
    Thank Emmanuel..... code was worked perfectly.

Similar Threads

  1. Repeat Data Entry in Routine
    By Arizona in forum AutoLISP, Visual LISP & DCL
    Replies: 9
    Last Post: 27th Dec 2016, 11:57 pm
  2. Wipeout Lisp That helps me avoid the manual typing.
    By SunnyTurtle in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 2nd Sep 2013, 04:25 pm
  3. [LISP] First time writing LISP routine... trying to rotate, move and scale
    By chiimayred in forum AutoLISP, Visual LISP & DCL
    Replies: 6
    Last Post: 18th Jul 2013, 06:02 pm
  4. Combine three lisp routine into one routine.
    By BrianTFC in forum AutoLISP, Visual LISP & DCL
    Replies: 0
    Last Post: 7th Feb 2012, 05:11 pm
  5. Plotting Routine - Allow word with spaces for text entry for paper size??
    By ILoveMadoka in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 21st Jun 2011, 01:09 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts