Jump to content

Recommended Posts

Posted

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

Posted (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 by mhupp
  • Like 1
Posted (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 by exceed
Posted

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.

Posted (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 by mhupp
  • Like 1

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...