Multiple csv files from attributes

Multiple csv files from attributes

msmith_ncl
Enthusiast Enthusiast
3,708 Views
27 Replies
Message 1 of 28

Multiple csv files from attributes

msmith_ncl
Enthusiast
Enthusiast

Hope someone can help or point me in the right direction.  I need to create 3 different csv files from specific attributes selected on screen.  I would like 3 different csv files created in a specific folder with the same prefix on each filename - user prompted for file prefix.  Each csv file needs certain attributes, some are needed in all 3 csv files and others in only 1.   I tried using ATTEXT and this works ok using templates for each different csv, the problem is I need column headers in the csv files and couldn't work this out, I can do everything needed with EATTEXT but I'm hoping to find a way of creating all 3 files in 1 command as this is a task we are repeating multiple times every day in different drawings.  I've had a look at a few different lisp routines for exporting attributes to different formats and couldn't find anything suitable.  I have attached a sample drawing with some blocks and an excel with 3 tabs being the 3 different csv files I'm trying to get, sorted in the correct order, any help would be appreciated.

0 Likes
Accepted solutions (3)
3,709 Views
27 Replies
Replies (27)
Message 21 of 28

mail2kaleb
Explorer
Explorer

I am also very interested, thanks in advance.

0 Likes
Message 22 of 28

Nawaid
Enthusiast
Enthusiast

Dear 

Hi,

can you share this lisp file, TripleCSV.lsp, on this platform.

 

Thanks

Message 23 of 28

Nawaid
Enthusiast
Enthusiast

Dear

I had a look at the image, looks very useful, I'd be very interested in looking at this.

can you share this download link.

0 Likes
Message 24 of 28

Moshe-A
Mentor
Mentor

@Nawaid ,

 

yes tonight i'll post it here 😀

Message 25 of 28

Moshe-A
Mentor
Mentor

@Nawaid ,

 

the lisp is a vlx file base on OpenDCL if you still interested, write down your email.

 

Moshe

0 Likes
Message 26 of 28

Nawaid
Enthusiast
Enthusiast

Hi,

Thanks for your reply. This is my pesonal email id na11414@gmail.com.

Regads

0 Likes
Message 27 of 28

Nawaid
Enthusiast
Enthusiast
Moshe Avraham
Thanks, I downloaded.
Dear. I really appreciate it. Actually, I am not lisp guy like you people at this forum. I am just a user and I understand some coding. I just try download lisp as per my/friends requirements because I know little bit. so, they come to me and share the problems. Keep it up, by the grace of GOD. InshaAllah.
Thanks.
0 Likes
Message 28 of 28

Nawaid
Enthusiast
Enthusiast

Moshe Avraham

Thanks, I downloaded.
Dear. I really appreciate it. Actually, I am not lisp guy like you people at this forum. I am just a user and I understand some coding. I just try download lisp as per my/friends requirements because I know little bit. so, they come to me and share the problems. Keep it up, by the grace of GOD. InshaAllah.
Thanks.
0 Likes