Extracting Attribute Value from Title Block

Extracting Attribute Value from Title Block

Anonymous
Not applicable
556 Views
4 Replies
Message 1 of 5

Extracting Attribute Value from Title Block

Anonymous
Not applicable

Hi,

 

I'm trying to edit a lisp file and not having much luck.

 

I need to extract an attribute value from a block and recall it later in the lisp.

 

The block is called DAA-Title-Rev, the attibute tag is called REV and the value should be called lat_rev.

 

I'd be reallygrateful if someone could point me in the right direction with this.

 

May thanks in advance.

0 Likes
557 Views
4 Replies
Replies (4)
Message 2 of 5

rkmcswain
Mentor
Mentor

Pointing away....

 

 

;;Use the MeGetAtts function found at: ;;http://www.menziengineering.ch/Downloads/Download.htm#2

;;Start with this to get "obj"

(setq sel (entsel))
(setq ent (car sel))
(setq obj (vlax-ename->vla-object ent))
(MeGetAtts obj)
R.K. McSwain     | CADpanacea | on twitter
0 Likes
Message 3 of 5

Anonymous
Not applicable

Thanks for the reply. I've looked at the link but sorry I don't understand.

Could you possibly elaborate a bit please?

0 Likes
Message 4 of 5

rkmcswain
Mentor
Mentor
Please elaborate for us.

Are you trying to "edit a lisp file" as your original post says, or are you looking for someone to write you some code for a specific task? If the former, then post the code you have so far please.

The code I posted is very simple autolisp and if that doesn't make sense, we need to know in order to better help you.

R.K. McSwain     | CADpanacea | on twitter
0 Likes
Message 5 of 5

ahmed.abdelmotey
Advocate
Advocate
can you explain more what you need?
Ahmed Abd-Elmotey
Landscape Architect & beginner lisp programmer
0 Likes