script - how complete my script

script - how complete my script

emadelbatran
Enthusiast Enthusiast
889 Views
3 Replies
Message 1 of 4

script - how complete my script

emadelbatran
Enthusiast
Enthusiast

Dear friends 

My follow sentence it's my script which's I made to edit some attribute values to write new text

 

OPEN
"P:\Projects 2016\16002 WEDIAN\Elec\Government Zone\SHEETS\DETAILS\P023-CC-EL-09-00-055-C"
_ATTIPEDIT
1155.32805302,309.30755333

 

as you see i wrote the pass and everything go well , no how I can to insert my text . if somebody help I'll be thanks so much 

 

 Emad

0 Likes
Accepted solutions (1)
890 Views
3 Replies
Replies (3)
Message 2 of 4

SeeMSixty7
Advisor
Advisor
Accepted solution

Please note the following solution will work for what you want to do, but there are far more elegant ways to do this.

 

Try this instead

OPEN

"P:\Projects 2016\16002 WEDIAN\Elec\Government Zone\SHEETS\DETAILS\P023-CC-EL-09-00-055-C"

(command "-attedit" "y" "" "" "" "1155.32805302,309.30755333" "" "V" "R" "Here is my new value" "")

 

 

The above will change your attribute using attedit rather than a dynamic editor method like attipedit.

The benefit of encompassing it in the "Command" is so that you can see where the returns are. I fyou want to understand what each of the prompts are go through the -attedit command manually.

 

I would recommend using autolisp to locate the block by name, parse through to the actual attribute then change the attribute at the entity level and then update the inserted block.

 

Good luck

Message 3 of 4

emadelbatran
Enthusiast
Enthusiast
thanks a lot for your help SeeMsixty7
0 Likes
Message 4 of 4

SeeMSixty7
Advisor
Advisor

You are welcome. I'm glad I could help.

0 Likes