Yeh sounds like youd need VB scripts to run at start up,god knows how,just starting to learn VB myself.Don't the users just have a title block they insert and fill in their relevant attributes?Thats what we tend to do.
Registered forum members do not see this ad.
Help! Does anyone know how to prompt a user upon opening a new drawing?
i'm looking for something along the same lines as the dialog box you get when you insert a block with attributes but without having to get the user to insert a block (which they would undoubtedly forget to do).
the idea is that when a new drawing is started key details such as an order number, reference, date and draftsmen's name etc. and then this information will be inserted into the layout in paper space.
any thoughts?
Perhaps, using VB to insert a worldblock of the standard layout which would then prompt for attributes or something?
Or am i missing something really simple?



Yeh sounds like youd need VB scripts to run at start up,god knows how,just starting to learn VB myself.Don't the users just have a title block they insert and fill in their relevant attributes?Thats what we tend to do.
How about a date stamp? You mai insert the "loginname" and the plot date and time using diesel expressions. Just make a search in this Forum for "date stamp".
It's nice to be nice, but sometimes is nicer to be evil!.
![]()
Tip: Please do not PM or email me with CAD questions - use the forums, you'll get an answer sooner.
i'm fairly conversant with VB so i'll try that, not sure if the datestamp will have enough info - any more ideas anyone??
Registered forum members do not see this ad.
Here is a short lisp routine to insert in a new drawing some information. Place the routine in the startup suite so it will start with every drawing. It will ask the needed information just once in a drawing.
You should modify the way the data is displayed to meet your needs, I presented just a sample.
Code:(defun starting( / today name ins tx) (if (zerop (getvar "useri1")) (progn (setq today (menucmd "M=$(edtime, $(getvar, date),MO/DD/YY)")) (textpage) (setq name (getstring "\nHello drafter! Who are you? ")) (setvar "useri1" (getint "\nproject number please...")) (graphscr) (setq ins (getpoint "\ntext insertion point ...") tx (list (cons 0 "TEXT") (cons 1 (strcat ">>> date:" today " project: " (itoa (getvar "useri1")) " drafter: " name " <<<")) (list 10 (car ins) (cadr ins) (caddr ins)) (cons 40 2.5)) ) (entmake tx))) (princ) ) (starting)
It's nice to be nice, but sometimes is nicer to be evil!.
![]()
Tip: Please do not PM or email me with CAD questions - use the forums, you'll get an answer sooner.
Bookmarks