What is the function of (princ count)

Discussion in 'AutoCAD' started by Adesu, Jul 21, 2004.

  1. Adesu

    Adesu Guest

    Hi Alls,I 'm not yet understood to interpretation of (princ count),what is
    the function it,is it ?
    1. As store data to collect next step
    2.or to print data.
    Can you add comment it,I want clear that,thanks a lot for your reply
    Best regards
    Ade Suharna

    (defun c:loop3 ()
    (setq count 0)
    (while (< count 10)
    (princ count) >>>>>>>>>>>>What is this function !!
    (setq count (1+ count))
    )
    (princ)
    )
    ********sample w/ (princ count)*******
    1_$ (defun c:loop3 ()
    (setq count 0)
    (while (< count 10)
    (princ count)
    (setq count (1+ count))
    )
    (princ)
    )C:LOOP3
    _1_$ (c:loop3)
    0123456789 >>>>this result******sample w/o (princ count)******
    _1_$ (setq count 0)
    (while (< count 10)
    (setq count (1+ count))
    )
    (princ)0
    10 >>>> this result only end of ...
    _1_$
     
    Adesu, Jul 21, 2004
    #1
  2. Adesu

    Jürg Menzi Guest

    Ade

    My recommendation:
    Use the help -> AutoLISP Reference and search for princ.
    It's very interesting what you can find there all...

    Like a teacher said to me a long time ago:
    First read, after that ask...

    Cheers
     
    Jürg Menzi, Jul 21, 2004
    #2
  3. Adesu

    favline Guest

    <<Like a teacher said to me a long time ago:
    <<First read, after that ask...

    Should be - First ask, then ask again!! :)
     
    favline, Jul 21, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.