Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VLR-DWG-Reactor :vlr-beginSave fires when objrects are copied to the clipboard?

2 REPLIES 2
Reply
Message 1 of 3
MyCADDie
381 Views, 2 Replies

VLR-DWG-Reactor :vlr-beginSave fires when objrects are copied to the clipboard?

Is there a way to prevent copy to the clipboard from fireing the begin Save event?

2 REPLIES 2
Message 2 of 3
BlackBox_
in reply to: MyCADDie


@MyCADDie wrote:

Is there a way to prevent copy to the clipboard from fireing the begin Save event?


You seem to have created several threads about the same, or related tasks involving reactors... Perhaps it would be prudent to instead post a single thread, which includes sufficient description of exactly what it is you're attempting to do, and where you're experiencing issues (during debug).

 

Also, you're more likely to receive useful repsonses, if you post your code.

 

Cheers



"How we think determines what we do, and what we do determines what we get."

Message 3 of 3

No.

 

In addition to the Save, Save As and QSave the event Save is also triggered by

AutoSave, ClipBoardCopy and who knows what else.

To avoid this "false event" you need check what kind of file is being saved.

If it contains a dollar sign, something like this \\AppData\\Local\\Temp\\A$C27775C12.DWG" it means it is a temporary file, don't call your function.

 

 (if (not(vl-string-search "$"(cadr args)))
    (your-triger-function)
  )

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost