vuxvix Posted December 22, 2021 Posted December 22, 2021 Hi! I want to create a text with warning content in dwg file. When drawings are opened on other PC into my office. It will appear in the text position even if the previous save of the drawing displayed in a screen's other location . Is this possible? Ps: The text warning can be in the drawing file itself, in an xref or block, etc. Thanks Quote
mhupp Posted December 22, 2021 Posted December 22, 2021 (edited) Guessing This is on a network drive? run whohas will look for DWL files of the same name. and display user (computer name) and time the file was opened. Some times dwl files don't get deleted when closing. If you dont have whohas this will try an open a file in append mode if it can its not currently open and then will open the drawing on your computer. If it is open it will display an alert message. Set FP to a default location you want to start in like project folder. (defun C:OpenFile (/ FP filename f) (setq FP "C:\\Project folder\\") (setq filename (getfiled "Select Drawing" FP "*" 8)) (if (setq f (open filename "a")) (progn (close f) (command "open" filename "") ) (alert "\nFile Is Already Open") ) ) lightly tested Edited December 22, 2021 by mhupp 1 Quote
exceed Posted December 22, 2021 Posted December 22, 2021 (edited) does that mean, even if you save with focus (zoom) somewhere else, and when someone else opens the drawing should be zoom to a special location on the screen? It seems to be possible to install Lisp on everyone else's pc, or easiest way is install Lisp on your pc, which will automatically zoom to a special location when you save. like purge - zoom e - qsave lisp Edited December 22, 2021 by exceed Quote
vuxvix Posted December 22, 2021 Author Posted December 22, 2021 Hi! yes, i am working on a network drive. The drawings are edited by many people. There are notes that should be seen every time the file is opened. You can offer many solutions (notice, training, or communication ..) but it is not suitable at present. So I hope the topic revolves around a technical solution like in the topic or similar. Because many people edit the same file, when saving the file the zoom positions may be different, but I am looking for a solution so that when opening the file it will appear in one coordinate. That's where the warning content is created. Ps: In revit there is a function to specify the layout that will appear when opening the file. that's an example. Quote
mhupp Posted December 22, 2021 Posted December 22, 2021 (edited) I misunderstood what you where wanting to do. When making the notes saves that view and when opening the file recall the view. (command "-View" "S" "Notes") ;save view locaiton (command "-View" "R" "Notes") ;Restore view locaiton or have them on their own layer. when a drawing is opened zoom to object on that layer. (if (setq SS (ssget "_X" '((0 . "*TEXT") (8 . "Notes")))) (command "_.Zoom" "OB" SS "") (prompt "\nDrawing Notes not found") ) Edited December 22, 2021 by mhupp 1 Quote
Recommended Posts
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.