Jump to content

Macro doesn't work with different UCS


DS-precast

Recommended Posts

I have a macro attached to a button to make duplicate copies of a dynamic block at regular spacings.

 

(See http://www.cadtutor.net/forum/showthread.php?66102-How-do-I-get-copy-macro-to-end-by-selecting-the-newly-copied-item)

 

It works fine when using the World co-ordinate systems and copying in the Y direction.

 

However when the initial block is at an angle, I change the UCS to align with this object, and then try to copy blocks using the macro.

 

The results baffle me, because it works ok sometimes, but most of the time the spacings do not correspond to the macro.

 

Is there an easier way to do this, or are there any settings that I need to check to make it work?

 

Macro below :

 

^C^C_.Copymode;1;_.Copy;P;;D;0,525;select;L;;_.Copymode;0

 

Can anyone help please?

Edited by SLW210
CODE TAGS!
Link to comment
Share on other sites

When you change the UCs are you introducing a z into the new UCS ? we had problem with UCS OB on 3d lines.

 

else maybe

copy;select;0,0 0,525

Edited by SLW210
Link to comment
Share on other sites

BigAL - Thanks for your reply

 

There is no Z element in the UCS.

 

I need to be able to repeatedly put in copies of the dynamic block at three standard spacings (three buttons) without re-selecting the block each time.

Link to comment
Share on other sites

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