Author Topic: Storing notes in a dwg  (Read 12889 times)

0 Members and 1 Guest are viewing this topic.

nivuahc

  • Guest
Storing notes in a dwg
« Reply #30 on: July 09, 2004, 08:17:08 AM »
Mine went from about 27,000K to about 28,500K with usage.

Snappy routine!  :)

nivuahc

  • Guest
Storing notes in a dwg
« Reply #31 on: July 09, 2004, 08:42:30 AM »
Mark, the terminology on the command line is a bit confusing. I'm used to seeing something like

Quote
Specify start point of text or [Justify/Style]:


Yours says

Quote
Read / Write xNotes [Add View]:


When I first ran it I typed W to write a note... perhaps it would be better presented like this:

Quote
Read and write xNotes for this drawing [Add/View]:


Or something like that with the default being Add if the user should press enter.

Just a suggestion.

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Storing notes in a dwg
« Reply #32 on: July 09, 2004, 08:55:40 AM »
good point. I just through that in there for a test, I want to make _one_ dialog box for the whole thing.
TheSwamp.org  (serving the CAD community since 2003)

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Storing notes in a dwg
« Reply #33 on: July 13, 2004, 07:42:27 AM »
new version. one dialog box. start with 'myxnotes'

http://www.theswamp.org/swamp.files/mark/MyxNotes.lsp

the code is still messy!
TheSwamp.org  (serving the CAD community since 2003)

MSTG007

  • Gator
  • Posts: 2601
  • I can't remeber what I already asked! I need help!
Storing notes in a dwg
« Reply #34 on: July 13, 2004, 08:01:50 AM »
NOT TO SHABBY
Civil3D 2020

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Storing notes in a dwg
« Reply #35 on: July 13, 2004, 09:26:10 AM »
Neat-o Mark,
Just tried it out.
One thing, when you type a long note the note scrolls in the entry window
but when you retrieve the notes the note in the view window doesn't wrap.
Did you have plans to high lite the existing note and have it appear in the
entry window so you can edit & or view the entire note?
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

nivuahc

  • Guest
Storing notes in a dwg
« Reply #36 on: July 13, 2004, 09:44:06 AM »
Ditto what CAB just said ^^

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Storing notes in a dwg
« Reply #37 on: July 13, 2004, 10:40:18 AM »
Quote from: CAB
Neat-o Mark,
Just tried it out.
One thing, when you type a long note the note scrolls in the entry window
but when you retrieve the notes the note in the view window doesn't wrap.
Did you have plans to high lite the existing note and have it appear in the
entry window so you can edit & or view the entire note?

haven't got that far yet! good idea though. right now if you just select an existing note and click OK it will print to the command line.
TheSwamp.org  (serving the CAD community since 2003)

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Storing notes in a dwg
« Reply #38 on: July 13, 2004, 11:14:47 AM »
Something like this? I'm sure you can do better.
It messed up your return string at the command line though.

Code: [Select]
 (defun build-xnotes-lst (lst / notes_lst notes)
    (foreach item lst
      (setq notes (cdr (assoc 301 item)))
      (setq notes_lst
             (append
               (list
                 (strcat
                   (cdr (assoc 2 item))
                   "  "
                   (cdr (assoc 300 item))
                   "  "
                   (substr notes 1 40)
                 )
               )
               notes_lst
             )
      ); set
      (if (> (strlen notes) 40)
        (progn
          (setq idx 41)
          (while (< idx (strlen notes))
            (setq notes_lst
             (append
               (list
                 (strcat
                   "                  "
                   (substr notes idx 40)
                 )
               )
               notes_lst
             )
           ); set
           (setq idx (+ idx 40))
          ); while
        )        
      ); endif
   
    ); foreach
    (reverse notes_lst)
  )


PS i know you are buisy, so don't mess with this now, if you are Swamped. 8)
Couldn't resist.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.