AutoCAD Mechanical Forum
Welcome to Autodesk’s AutoCAD Mechanical Forums. Share your knowledge, ask questions, and explore popular AutoCAD Mechanical topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Regarding AutoLISP and the -Attedit command

1 REPLY 1
Reply
Message 1 of 2
xchrisgrassx
1122 Views, 1 Reply

Regarding AutoLISP and the -Attedit command

Hello everyone, I have a batch file and an autolisp file ready to automate mass drawing changes.

I am having problems with the scripting though..

 

My plan is to use -attedit to edit the value of a predefined tag in a predefined block.

The issue I'm having though is that my command line errors with the following message.
"0 attributes selected.*Invalid*"

This is odd because I have selected, and gone through the process of changing values in the selected tags.

I havn't got into the actual script writing yet, I have been trying to troubleshoot this just using the command line.

No point in jumping to script if the regular command doesnt work -_-

 

My process:

 

open drawing, clear command line.

press F2

command: -attedit

command: Y

command: EPLFRAME            ;(This is the name of my block)

command: TITLE                     ;(This is the name of the tag within the block)

Command: GenV                    ;(New Value for that tag)

Error: 0 attributes selected.*Invalid*

 

 

Am I using the wrong command for this?
The task is to change a tag value in a block

 

Your input is much appreciated.

-Chris 

 

 

1 REPLY 1
Message 2 of 2
xchrisgrassx
in reply to: xchrisgrassx

I am always so quick to jump on these forums.

I found the solution after playing around with some settings.

 

If anyone googles this:

 

Command: -attedit
Edit attributes one at a time? [Yes/No] <Y>: n
Performing global editing of attribute values.
Edit only attributes visible on screen? [Yes/No] <Y>: n
Drawing must be regenerated afterwards.
Enter block name specification <*>: EPLFRAME
Enter attribute tag specification <*>: TITLE
Enter attribute value specification <*>:
1 attributes selected.
Enter string to change: KITTING WORK STATION
Enter new string: GenV KWS

 

 

 

Yay!

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost