Recorded Macro Issues

Recorded Macro Issues

JohnC_ISM
Collaborator Collaborator
3,648 Views
14 Replies
Message 1 of 15

Recorded Macro Issues

JohnC_ISM
Collaborator
Collaborator

does someone know what this error means? i have plenty of Action Macros that ive done and theyve all worked fine. im thinking its something to do with it being a feature line command? im not sure. 

 

so my steps for this 

 

(START RECORDER)

*hot-key for line label OR click the Annotate>Add Labels>Line and Curve>Add Single Segment Label*

(end of command)

SELECT -> C (for created - it selects the labels created)

(end of command)

EXPLODE (end of command)

EXPLODE (yes i know lol. again? because they went from features to blocks, needs one more time to be MText) - > PREVIOUS -> ENTER ENTER 

(end of command)

 

(END RECORDER)

 

 

 

 

after its done the message pops up, i hit continue and it does exactly what i wanted. but im not sure what it means (see images for error and macro record)

 

 

 

 

0 Likes
3,649 Views
14 Replies
Replies (14)
Message 2 of 15

VincentSheehan
Advisor
Advisor

Nevermind, I was thinking of a Civil 3D command.

Vincent Sheehan

Sr. Civil Designer
Poly In 3D Blog

0 Likes
Message 3 of 15

JohnC_ISM
Collaborator
Collaborator
I think that's the command though without the S right??
0 Likes
Message 4 of 15

JohnC_ISM
Collaborator
Collaborator

i am in civil and i tried it both ways and neither work. i had a similar issue with a break-first macro but when i removed the inputs except the main one it works  but this i cant get 

0 Likes
Message 5 of 15

JohnC_ISM
Collaborator
Collaborator

so i just tried it again and noticed its not picking up me typing L for last but its picking up the selections  (pound signs are commands i never hit i didnt accidently hit space or anything) 

 

_ACTRECORD
Command: ADDALIGNSEGLBLS
Adds labels for all segments of polylines, feature lines, lines, and arcs, parcels and alignments.
Labels are placed at mid point of each segment.
Select Alignment:
Select Alignment:
###Command:
###ADDALIGNSEGLBLS
###Adds labels for all segments of polylines, feature lines, lines, and arcs, ###parcels and alignments.
###Labels are placed at mid point of each segment.
###Select Alignment:
Command: SELECT
Select objects: l
1 found
Select objects:
Command: EXPLODE
1 found
Command: SELECT
Select objects: l
1 found
Select objects:
Command: EXPLODE
1 found

 

 

and it seems at the end no matter what i click it wants another entity

 

Command: _AeccAddAlignSegLbl
Select point on entity:
Select point on entity: 
0 Likes
Message 6 of 15

dmfrazier
Advisor
Advisor

It looks like the AddAlignSegLbls command (maybe a sub-routine) wants two points to set the alignment.

Are you prompted for and selecting two points to set the alignment when you record the macro?

0 Likes
Message 7 of 15

JohnC_ISM
Collaborator
Collaborator
No. never have either. Go to annotate and click add single line label in the line and curve side menu when you hover over it, and that's the command it gives me and you just click on the line you're looking to label.
0 Likes
Message 8 of 15

dmfrazier
Advisor
Advisor

dmfrazier_0-1685028573593.png

 

In the macro, after starting the "Add Single Segment Label" routine, where are you selecting the object to which the label will be added? The only "select" I see appears to be to select the created object in order to explode it.

0 Likes
Message 9 of 15

JohnC_ISM
Collaborator
Collaborator
I'm just clicking on the line.
The SELECT command is only used because if you click on it during the action macro it will resort back to that exact label instead of the future ones i plan to be incorporating into the macro.
I have done this exact way for about 10 macro actions now and this is the first time its come up, let me try it without select and just using EXPLODE and LAST, but the problem seems to be hung up on the select and entity. I'm not sure.

0 Likes
Message 10 of 15

dmfrazier
Advisor
Advisor

BTW, this command that you are trying to automate is not a "vanilla" AutoCAD command.

In any case, it might be helpful if you were to show us what the command looks like on the command line when you run it normally.

It may be that you have to insert one or more "pauses for user input" into the recorded macro

0 Likes
Message 11 of 15

JohnC_ISM
Collaborator
Collaborator

alrighty. if you say so. so each way i get to it gives the initial selection and then adds an extra at the end for some reason. so heres what happens:

###USING KEYBOARD SHORTCUTS
Command: _AeccAddAlignSegLbl
Select point on entity:
Select point on entity:
Command: X EXPLODE
Select objects: l 1 found
Select objects:
Command: X EXPLODE
Select objects: p 1 found
Select objects:

 

 

###USING RIBBON MENUS
Command: _AeccAddSegmentLabel
Adds label for lines, arcs, polylines, and feature lines at point selected on the entity.
Select point on entity:
Select point on entity:
Command: X EXPLODE
Select objects: L
1 found
Select objects:
Command: X EXPLODE
Select objects: P
1 found
Select objects:

 

###USING THE TYPED IN "ADDALIGNSECLBL"
Command: ADDALIGNSEGLBL
Select point on entity:
Select point on entity:
Command: X EXPLODE
Select objects: L 1 found
Select objects:
Command: X EXPLODE
Select objects: P 1 found
Select objects:

 

 

0 Likes
Message 12 of 15

dmfrazier
Advisor
Advisor

"...then adds an extra at the end for some reason."

 

The extra "Select objects:" at the end is because the Explode command normally continues to ask for more objects until you hit Enter.

 

In all three of these scenarios, what do you do when prompted to "Select point on entity:"

 

And why is it now prompting you to select a point on an entity when previously (in your original post) it appeared to be asking you to select an alignment (twice)?

 

dmfrazier_0-1685037812913.png

 

Perhaps we all need to know a little more about how the ADDALIGNSEGLBLS command works. It seems that it changes its behavior based on what you do after executing the command. I think when the recorded macro runs, things that are echoed to the command line are being interpreted by the macro as options or additional commands.

 

0 Likes
Message 13 of 15

JohnC_ISM
Collaborator
Collaborator

I mean i agree with you but entity isn’t from explode that’s from the labeling command. This is just the command itself, using enter, esc, and space.  They all give two options.

 

Command: _AeccAddSegmentLabel

Adds label for lines, arcs, polylines, and feature lines at point selected on the entity.

Select point on entity:

Select point on entity:



Command: _AeccAddAlignSegLbl

Select point on entity:

Select point on entity: *Cancel*



Command: _AeccAddAlignSegLbl

Select point on entity:

Select point on entity:
0 Likes
Message 14 of 15

dmfrazier
Advisor
Advisor

The ADDALIGNSEGLBLS "command" (and probably the other variations you've posted here) appears to be some sort of "macro" itself.

 

From the command line sequences you posted earlier, you can clearly see that when "X" is entered, the EXPLODE command is being invoked, which then prompts you to select an object (or objects), as it normally does in AutoCAD:

 

Command: EXPLODE

Select objects: 1 found

Select objects:

 

Hitting Enter finishes the command.

 

With my "plain" AutoCAD, I don't have access to the Aecc stuff you're working with, so as much as I'd like to help you solve this, I don't think I can help any further.

 

 

0 Likes
Message 15 of 15

JohnC_ISM
Collaborator
Collaborator
Its all good man thanks tho
0 Likes