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

convert attribute texts to single text object

5 REPLIES 5
Reply
Message 1 of 6
E.S.7.9
1272 Views, 5 Replies

convert attribute texts to single text object

hi

 

i need a lisp which can convert to attribute text strings to text..

 

example :

 

A / B attribute text to A / B text

 

A : 1st text string of att block

/ : 2nd text string of att block

B : 3th text string of att block

 

5 REPLIES 5
Message 2 of 6
braudpat
in reply to: E.S.7.9

 

Hello from France

 

Not sure to well understand that you need !?

 

Have you tried the BURST command of the Express Tools ?

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 3 of 6
E.S.7.9
in reply to: braudpat

hello

 

my english is not so good that is why i couldnt explain more specificly ,

 

Not exactly BURST command because each tag strings became separetly text objects after this command , what i want to do is all attribute text strings values will be include in one text object with the same rows not seperatly

 

 

i dont know i could explain well but i hope you can understand of my not good enough english 😃

Message 4 of 6
braudpat
in reply to: E.S.7.9

 

Hello

 

So (if I understand well) you need a Lisp/Vlisp routine to "burst" all attributes :

- in ONE MText ?

or

- in ONE Text with all values separated by a "special" chraracter ?

Please remind that the maximum length is something like 255 chars ...

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 5 of 6
E.S.7.9
in reply to: braudpat

yes i need a routine to burst all tag text strings ( in one block ) to one Mtext or Text

 

i wanna explain with an example which i wrote before

 

my block name is  INF-TEXT and there are 3 tag text string in this block

 

1st tag string text value is "A"

2nd tag string text value is "-" or "/"

3th tag string text value is "B"

 

routine will take values of this block and will be write to text " A-B" or "A/B"

 

😃

Message 6 of 6
3wood
in reply to: E.S.7.9

This is my way:

1. Change the block definition by adding one more attribute to the block, let's say it is Attribute No. 4. Remember put this attribute on a new layer.

2. Use BATTMAN to SYNC all block inserts.

3. Save following code as a lsp file in your disk:

;;; Combine textstring in Att 1 ~ Att 3
(defun ALTEXT_FORMULA ()
 (strcat ALTEXT_ATT_1 ALTEXT_ATT_2 ALTEXT_ATT_3)
)

4. Use ALTEXT.vlx, modify Attribute No.4 when it prompts "Which attribute to be changed (Enter 0 to search attribute tag name): Attribute No.<1>: 4"

 tick "Formula" in the settings dialogue box to load the formula in Step 3

5. It will fill in Attribute No. 4 with text in the format of "A/B" as you described.

6. Use BURST or EXPLODEALL.vlx to explode the blocks.

7. Isolate the layer of Attribute No. 4

Now you get all combined texts.

 

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

Post to forums  

Autodesk Design & Make Report

”Boost