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

new type of script/lisp for attribute block request

21 REPLIES 21
Reply
Message 1 of 22
RocksterB
1464 Views, 21 Replies

new type of script/lisp for attribute block request

Yes, we've seen many request for a script or lisp to change attribute data in a block. Hopefully, my request will be different.

 

I often get titleblock files from various client, with many attributes. I'd like is a routine that will allow me to click on an attribute block and it gathers ALL of the attribute names and current value into a file. I could then modify the values in the file and use it to script the values back into the files attribute block. Can I get a hand with this?

21 REPLIES 21
Message 21 of 22
RocksterB
in reply to: pbejse

2. I believe files created by WriteToCSV.lsp routine already includes the block name (first line)
or are you pertaining to include the blockname as part of the CSV filename?

That appears toe correct.

3. ReadToCSV? or WriteToCSV ?
Yes
Add this line to (WriteTest) code before the (princ)) at the end
(princ "Attribute data gathering complete! Edit the CSV file located in same folder as current file.")

Yes, I thought a princ would take care of this.

4. Yes it can be done. test the variable AttribList for length if value is 3 the skip this TAG

Okay, I'll try adding a third notationh to column 3 to the attribute data line and let you know what happens.


Do you have a handle on this now? or you need assistance?

Okay, I"ll try to get it all going from here. Once again, I thank you for all of your help!

 

Message 22 of 22
pbejse
in reply to: RocksterB

I would suggest N/A instead of NA

 

C:WriteToCSV

Updates:

Overwrite if file is existing,

Add "Edit column \"B\" cells only" as first line

Alert box at completion

 

Command: WriteToCSV

 

(ReadEditFronCSV)

Updates:

Ignore Tag if "N/A" is present

 

Command: (ReadEditFronCSV)

 

See attached files

 

Hope this helps

 

 

 

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

Post to forums  

Autodesk Design & Make Report

”Boost