Jump to content

Macro - Copy & Paste Block


JWhelp

Recommended Posts

Hello Fellow Cadists,

 

Can some please let me know where I’m going wrong with this macro.

 

I thought it would be simple but it doesn’t quite work.

The macro attempts to orientate the UCS to the face of an object, copy the object based on the origin of the face, delete the object and replace it with a block containing the object. It would be good to then place a duplicate block on 0,0,0, of the world ucs.

Sounds pretty straightforward:

 

Command line Summary

 

USC, ENTER, F, ENTER,

COPYWITH BASEPOINT, ENTER, 0,0,0, ENTER

ERASE, ENTER, P ENTER

PLASTEBLOCK, ENTER, 0,0,0, ENTER

UCS, ENTER, W, ENTER

PLASTEBLOCK, ENTER, 0,0,0, ENTER

 

Macro

^C^C_ucs;f;\;

_copybase;0,0,0;\;

_ERASE;p;

_pasteblock;0,0,0;

_ucs;w;

_pasteblock;0,0,0;

 

Can anyone shed light on this issue please?

 

Cheers

Link to comment
Share on other sites

Have you tried this macro? Where does it fail?

 

When using Erase, Previous, you need to enter twice to accept the selection set, otherwide it is waiting in case you want to add more than only the previous.

 

^C^C_ucs;f;\;_copybase;0,0,0;\;[b]_ERASE;p;;[/b]_pasteblock;0,0,0;_ucs;w;_pasteblock;0,0,0;

Link to comment
Share on other sites

  • 1 month later...

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