Copy _from automation

Copy _from automation

UltimateDS
Contributor Contributor
456 Views
6 Replies
Message 1 of 7

Copy _from automation

UltimateDS
Contributor
Contributor

Hi There,

I hope you could help me with this easy task. I am sure you will. It's an easy one.

 

As part of our design process, we copy very often the same item, along the same axis, but in different increments. 

This is an easy task that can be achieved with the command Copy and then _from so you can input the increment distances. 

 

We have our mouse set with macros for a range of commands and I would like to implement this into one of them but as it requires to first use "Copy", then select the base point, then the modifier "_from" and select again the reference point, It would require the use of two buttons of the mouse. 

 

Is there any way of creating a shortcut for Copy+_From with one single command line so I can asing it to a macro in my mouse?

 

Thank you very much and best regards

 

457 Views
6 Replies
Replies (6)
Message 2 of 7

Moshe-A
Mentor
Mentor

@UltimateDS ,

 

Some thing like this?

 

^C^CCopy \\_from

 

Moshe

 

0 Likes
Message 3 of 7

UltimateDS
Contributor
Contributor

Hi @Moshe-A,

 

Thank you very much for your reply. Could you specify how to use this? 

I tried to copy the line on the command bar but it would not work, please see below.

I have pasted the whole line but it splits it automatically as shown.

 

kalilbfd_0-1683712478548.png

Thank you very much and best regards.

0 Likes
Message 4 of 7

Moshe-A
Mentor
Mentor

@UltimateDS ,

 


 

We have our mouse set with macros for a range of commands and I would like to implement this into one of them but as it requires to first use "Copy", then select the base point, then the modifier "_from" and select again the reference point, It would require the use of two buttons of the mouse. 

You say we have our mouse set with macros?  do you know where they are defined or installed? post a sample?

 

 

0 Likes
Message 5 of 7

UltimateDS
Contributor
Contributor

Thank for your answer @Moshe-A 

 

We use XMouse for that. 

Right after I wrote the question, I did set a macro on the tool that would replicate the same and does actually work.

 

kalilbfd_0-1683721075658.png

 

I was hoping to get this straight into CAD so I can add to the PGP file and prompt it with a simple shortcut assign to it. 

This way, all the team including those that does not use the mouse macro capabilities, can use the shortcut.  

 

I hope this makes sense.  

 

Best regards 

 

0 Likes
Message 6 of 7

Moshe-A
Mentor
Mentor

@UltimateDS ,

 

The macro i post you is for the CUI (command) interface. you need to explore it a bit, it's not that hard as it looks.

then you create a new macro command, copy & paste the macro i post in the macro field than you will have to link\drag it to toolbar or ribbon panel or even to the mouse 2 or 3 buttons.

 

good luck

Moshe

 

 

 

0 Likes
Message 7 of 7

johnyDFFXO
Advocate
Advocate

Maybe a lisp that with a command name?

(defun c:CopyFrom ( / s p) (and (setq s (ssget "_:L")) (setq p (getpoint "Base point: ")) (initcommandversion) (command-s "_.copy" s "" "_non" p "_from" p)) (princ))

0 Likes