Jump to content

Recommended Posts

Posted

I made a stupid mistake and now I would like to find a way to avoid it: I copied a portion of a drawing (using CTRL+C) and pasted it into another (CTRL+V). The problem is that the copied part contained blocks that were already present with the same name in the new drawing. However, the blocks in the new drawing were slightly different.
Is it possible to create a lisp or something that warns: 'Attention: the drawing already contains blocks named XXXX'?

Posted

Perhaps someone knows a better way.
In my opinion, this could be done with reactors.
That is, in your AutoCAD session, there should be two latent reactors: one that activates after "copyclip" is executed and looks for the most recent DWG in the "temp" folder and saves its name in a global variable; and another that activates just before "pasteclip" is executed (:vlr-commandWillStart) and tracks the blocks of the DWG where the "copyclip" was created and the blocks of the current drawing.
There may already be a Lisp published in this forum that does this job, and some veteran can help you locate it.

Posted
3 hours ago, X11start said:

Is it possible to create a lisp or something that warns: 'Attention: the drawing already contains blocks named XXXX'?

Good question. Such situations are common. It would be good, along with the warning, 
to add index 1 to the names of the inserted blocks, for example.

Posted

Thank you very much, I also thought that the solution was to use Reactors... but creating a Lisp of this kind is way beyond my abilities! I hope that someone among the 'gurus' of this forum can help me. Thank you.

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