Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help updating Multi-Line Attributes via Lisp

9 REPLIES 9
Reply
Message 1 of 10
Anonymous
947 Views, 9 Replies

Help updating Multi-Line Attributes via Lisp

I use a Lisp Routine to update station tags information from a .csv file. I'm wanting to add a multi-line attribute to the station tag but can not figure out how to update the multi-line attribute. Below is the attribute entity information and the multi-line text that I want to update by the Lisp routine is shown after the (101 . Embedded Object). I'm trying to update the dotted pair (1 . \W0.8000;This is a test Multi-line attribute) but since this is the second (1. I haven't been able to figure out how to update it.

((-1 . ) (0 . ATTRIB) (330 . ) (5 . 279C) (100 . AcDbEntity) (67 . 0) (410 . Model) (8 . tag-text) (100 . AcDbText) (10 914.375 813.565 0.0) (40 . 0.0742188) (1 . ) (50 . 0.0) (41 . 0.8) (51 . 0.0) (7 . TILE-TEXT) (71 . 0) (72 . 1) (11 914.375 813.602 0.0) (210 0.0 0.0 1.0) (100 . AcDbAttribute) (2 . DESC) (70 . 0) (73 . 0) (74 . 2) (280 . 1) (71 . 2) (72 . 1) (11 914.375 813.602 0.0) (101 . Embedded Object) (10 914.375 813.602 0.0) (40 . 0.0742188) (41 . 1.0) (46 . 0.0) (71 . 5) (72 . 5) (1 . \W0.8000;This is a test Multi-line attribute) (7 . TILE-TEXT) (210 0.0 0.0 1.0) (11 1.0 0.0 0.0) (42 . 0.856696) (43 . 0.197917) (50 . 0.0) (73 . 1) (44 . 1.0))


Thanks,
Marshall
9 REPLIES 9
Message 2 of 10
Anonymous
in reply to: Anonymous

Just to let the powers that be know. When I see the following nonsense on the
newsreader side I ignore it.

If you don't fix this mess soon, I will not waste my time with this forum in the
future.

Joe Burke


wrote in message news:6052421@discussion.autodesk.com...
I use a Lisp Routine to update station tags information from a .csv file. I'm wanting
to add a multi-line attribute to the station tag but can not figure out how to update
the multi-line attribute. Below is the attribute entity information and the
multi-line text that I want to update by the Lisp routine is shown after the (101 .
Embedded Object). I'm trying to update the dotted pair (1 . \W0.8000;This is a test
Multi-line attribute) but since this is the second (1. I haven't been able to figure
out how to update it. ((-1 . ) (0 . ATTRIB) (330 . ) (5 . 279C) (100 . AcDbEntity)
(67 . 0) (410 . Model) (8 . tag-text) (100 . AcDbText) (10 914.375 813.565 0.0) (40 .
0.0742188) (1 . ) (50 . 0.0) (41 . 0.8) (51 . 0.0) (7 . TILE-TEXT) (71 . 0) (72 . 1)
(11 914.375 813.602 0.0) (210 0.0 0.0 1.0) (100 . AcDbAttribute) (2 . DESC) (70 . 0)
(73 . 0) (74 . 2) (280 . 1) (71 . 2) (72 . 1) (11 914.375 813.602 0.0) (101 .
Embedded Object) (10 914.375 813.602 0.0) (40 . 0.0742188) (41 . 1.0) (46 . 0.0) (71
. 5) (72 . 5) (1 . \W0.8000;This is a test Multi-line attribute) (7 . TILE-TEXT) (210
0.0 0.0 1.0) (11 1.0 0.0 0.0) (42 . 0.856696) (43 . 0.197917) (50 . 0.0) (73 . 1) (44
. 1.0))
Thanks, Marshall
Message 3 of 10
Anonymous
in reply to: Anonymous

I'm just as frustrated as you, Joe. I've sent several comments to
Autodesk about the condition of these forums. Perhaps you can
also? Something tells me they are not reading about the problems
here.

http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=3710077


"Joe Burke" wrote in message
news:6052612@discussion.autodesk.com...
Just to let the powers that be know. When I see the following nonsense on
the
newsreader side I ignore it.

If you don't fix this mess soon, I will not waste my time with this forum in
the
future.

Joe Burke
Message 4 of 10
Anonymous
in reply to: Anonymous

Joe, Jason,
I agree totally. They really messed up this Web interface.
Maybe (IF) they would just 'default' the Post (window) to 'Rich Text', it
would at least be readable. I don't use the OE side at all, so I cannot
speak to that.

Bob Shaw
EC-CAD
http://www.bobscadshop.com
Message 5 of 10
Anonymous
in reply to: Anonymous

> Perhaps you can
also?

Done.
Message 6 of 10
Anonymous
in reply to: Anonymous

Bob, Jason, Herman,

I guess what bothers me the most is I haven't seen any messages from the folks who
run this stuff saying they are working on the problems.

If they are stonewalling until things return to normal, I may be gone by then. Given
little patience for idiots who break thing which worked as expected in the past.

This also shakes my confidence in Autodesk. If they can't do something simple like
manage newsgroups, why should I trust anything else they do?

Joe
Message 7 of 10
Anonymous
in reply to: Anonymous

Hi Joe,

Agreed on all points. I certainly would have expected some
type of public announcement from Autodesk about what they
are doing to fix this mess. It appears they are not concerned
about it at all.


"Joe Burke" wrote in message
news:6053535@discussion.autodesk.com...
Bob, Jason, Herman,

I guess what bothers me the most is I haven't seen any messages from the
folks who
run this stuff saying they are working on the problems.

If they are stonewalling until things return to normal, I may be gone by
then. Given
little patience for idiots who break thing which worked as expected in the
past.

This also shakes my confidence in Autodesk. If they can't do something
simple like
manage newsgroups, why should I trust anything else they do?

Joe
Message 8 of 10
Anonymous
in reply to: Anonymous

Sorry Guys this was the first time I posted and didn't realize that I wasn't in RT mode.

Can anyone give me tip on updating Multi-Line Attributes with a Lisp Routine?

Thanks,
Marshall
Message 9 of 10
Anonymous
in reply to: Anonymous

You will need to walk through each (assoc .... of the entity, and check for 1, then,
modify the 2nd occurance.. something like:
(foreach pair entity_list
(if (= 1 (car pair))
... will pick up on the 1 bit.

Bob
Message 10 of 10
Anonymous
in reply to: Anonymous

You will need to walk through each (assoc .... of the entity, and check for 1, then,

modify the 2nd occurance.. something like:

(setq count 0)
(foreach pair entity_list

(if (= 1 (car pair))

(setq count (+ count 1))

(if (= count 2)
... will pick up on the (2nd) 1 bit.




Bob Edited by: EC-CAD on Oct 19, 2008 7:02 PM

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

Post to forums  

Autodesk Design & Make Report

”Boost