Jump to content

Recommended Posts

Posted

does anyone have a construction note lisp routine?

Posted

Could you be alot more specific, there is a large varity of construction notes

Posted

well you would create a list of construction notes in notepad with a space between each note example

 

install 10 pvc per std

 

install 18" pvc per std

 

and so on, you would save the list go into your drawing and run a lisp routine that would place a callout bubble on your drawing and from the list of note you created you would put note 1, 2, 3 and so on on your drawing and if there was a note not needed on that drawing but you needed on the next drawing in your set of plans it would only place the notes being used in the drawing and you could update these at any time.

 

i have an avi file that explains and shows how it works but i can not upload it because it is to large.

Posted

This will perhaps start you off:

 

(defun c:note (/ fpath doc spc iPt file nStr)
 (vl-load-com)

 (setq fpath "C:\\" ) ;; filename of notes.txt

 (setq doc (vla-get-ActiveDocument
             (vlax-get-acad-object))
       spc (if (zerop (vla-get-activespace doc))
             (if (= (vla-get-mspace doc) :vlax-true)
               (vla-get-modelspace doc)
               (vla-get-paperspace doc))
             (vla-get-modelspace doc)))

 (cond ((not (findfile fpath))
        (princ "\n** Notes File could not be Found **"))

       ((not (setq iPt (getpoint "\nSpecify Point for Note: "))))         

       (t

        (vla-StartUndomark doc)
        (setq file (open (findfile fpath) "r") nStr "")
        (while (setq nl (read-line file))
          (setq nStr (strcat nStr nl "\\P")))
        (close file)

        (vla-AddMText spc (vlax-3D-point iPt) 0 nStr)
        (vla-EndUndoMark doc)))

 (princ))
        

Posted

not only do i need to ba able to create a list of notes, but i need to be able to place my call outs on the drawing and from those callouts it will generate a list of construction notes i would have set up for that particular set of plans.

Posted

i loaded it but have not really got into it yet, i ran it, but it looks like i have to creat a text file then whever i place that file i need to make sure that i change it to look into the right directory.

i need it to ask me where the file is i want to load kind of like using a browser to look through your directories.

Posted
i loaded it but have not really got into it yet, i ran it, but it looks like i have to creat a text file then whever i place that file i need to make sure that i change it to look into the right directory.

i need it to ask me where the file is i want to load kind of like using a browser to look through your directories.

 

I wondered whether a prompt on every use would get annoying :geek:

Posted
does anyone have a construction note lisp routine?

 

Didn't CAB have a textinsert lisp posted somewhere? Can't seem to locate it quickly now. However it should be a great start.

Posted
Didn't CAB have a textinsert lisp posted somewhere? Can't seem to locate it quickly now. However it should be a great start.

 

Its already been posted o:)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...