Action Macro Playback Failure

Action Macro Playback Failure

robw
Advocate Advocate
1,768 Views
11 Replies
Message 1 of 12

Action Macro Playback Failure

robw
Advocate
Advocate

Hi, I've been tasked with standardizing much of our AutoCAD content, i.e. line styles and symbols.

In order to insert blocks from a library drawing, I firstly added them to a tool palette, and then created a Action Macro to insert them into the drawing. I then create a button on the ribbon that referenced the Action Macro name, and viola, an inserted block.

It all works perfectly on my machine, however when I try to replicate it on another, I get a playback error.

 

I exported/imported the tool palettes, and the ribbon.

The .actm files are in a common network folder, and it's added to the path and trusted locations in Options. As are the library files.

Also, the Action Recorder Settings are pointing to the correct folder.

 

When it fails it says:

    Action Macro Playback Error

    EXECUTETOOL. - I don't know what this means.

 

Any ideas?

Am I going about this the right way?

Is there another, simpler way to achieve the same results?

 

I looked into using Lisp to insert blocks from another drawing, but that looks insanely complicated - and we have a fair few blocks, so the OFE (opportunity-for-error), is high.

 

Thanks


Civil 2018

 

0 Likes
Accepted solutions (1)
1,769 Views
11 Replies
Replies (11)
Message 2 of 12

ВeekeeCZ
Consultant
Consultant

I thought that you can insert blocks right from the tool palettes. What are you setting with Action Marco that cannot be done by Tool Palette directly?

0 Likes
Message 3 of 12

robw
Advocate
Advocate

I wanted to add blocks to the ribbon as I can then use it to place a block in the same place every time, since the insert coordinate is part of the macro - if it's done from the tool palette the user has to enter it.

That was all.

 

0 Likes
Message 4 of 12

ВeekeeCZ
Consultant
Consultant

Can't help you with Action Marcos. Not many people use that.

 

I suggest using a menu-macro. This expression:

 

^C^C(command "_.insert" "c:/DataBoom/Zijkant met rijboring basis.dwg" "_scale" 1 "_rotate" 0 "_non" '(0 0))

All block export using WBLOCK to its own file named as a block.

In macro use your own path. Note a different type of flash: /.

Change the coords fror 0 0 to yours. Keep the "_non" in there, it turns osnaps off.

HTH

0 Likes
Message 5 of 12

robw
Advocate
Advocate

Thanks for this.

 

I have to admit I've never used Action Macro's before either.

I only did this time, as I was just playing around for myself, to insert blocks into the drawing from the ribbon and it worked easy enough. It's only when I tried to replicate that on someone else's machine and it didn't work that I stopped.

 

I'll test this method 🙂

0 Likes
Message 6 of 12

robw
Advocate
Advocate

Also, what would I change if I wanted to prompt the user to input insert coordinates (pick a point on screen)?

0 Likes
Message 7 of 12

ВeekeeCZ
Consultant
Consultant

@robw wrote:

Also, what would I change if I wanted to prompt the user to input insert coordinates (pick a point on screen)?


^C^C(command-s "_.insert" "c:/DataBoom/Zijkant met rijboring basis.dwg" "_scale" 1 "_rotate" 0)
0 Likes
Message 8 of 12

robw
Advocate
Advocate

Sorry, I apologize for the piecemeal questions.

Since most of my blocks are dynamic, how I explode it after I add it?

 

I got it to work with the original code, but can't seem to get it this time. I had....

^C^C(command-s "_.insert" "c:/DataBoom/Zijkant met rijboring basis.dwg" "_scale" 1 "_rotate" 0 "_non" '(0 0) "_.explode" "_l")

 

Thanks again

0 Likes
Message 9 of 12

ВeekeeCZ
Consultant
Consultant
Accepted solution

@robw wrote:

Sorry, I apologize for the piecemeal questions.

Since most of my blocks are dynamic, how I explode it after I add it?

 

I got it to work with the original code, but can't seem to get it this time. I had....

^C^C(command "_.insert" "c:/DataBoom/Zijkant met rijboring basis.dwg" "_scale" 1 "_rotate" 0 pause "_.explode" "_l")

 

Thanks again


 

No -s this time. PAUSE for single user input.

0 Likes
Message 10 of 12

robw
Advocate
Advocate

Thank a lot - that's exactly what I'm after

0 Likes
Message 11 of 12

MHerbert!
Explorer
Explorer

I've had the same Macro playback failure.  Here is the problem:

When you insert a block from a palette, the "executetool" comes up and I type in

the insertion point at 0,0.  Since I use dynamic blocks the executetool has a visibility

attached to it.  I have made 452 action macros, currently, each having three blocks

associated with each of them.  I, also, have them programmed into VBA codes.  So,  making a block drawing for each is not an option.  Please tell me how to fix the playback failure.  Your

help will be greatly appreciated.

 

mherbert

0 Likes
Message 12 of 12

ВeekeeCZ
Consultant
Consultant

Hi, and welcome to the forums! You seem a real fan of Action Macros!

 

Unfortunately, I can't help with action macros. Never used them.

I can only recommend you to post this in the general AutoCAD forum, where someone could have experience with it.

0 Likes