TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: pedroantonio on April 21, 2019, 04:21:34 PM

Title: Help with a lisp
Post by: pedroantonio on April 21, 2019, 04:21:34 PM
Hi . I use when i draw cross sections  an attribiute block .This block contains the name of the cross section , the chainage, Fill area ,Cut Area

The idea is to export this data to a csv file (the chainage must be in the correct position ,not random )  and then with Excel Help to calculate the Volume

The data in the csv file mast have this possition

Name of the cross section , the chainage, Fill area ,Cut Area for example

Code: [Select]
D1,0+000.00,48.52,58.62
D2,0+020.00,32.25,42.59

Can any one help with a lisp

Thanks
Title: Re: Help with a lisp
Post by: pedroantonio on April 21, 2019, 05:00:12 PM
Sorry i forget something.  in the export csv fiile the data of each cross section must have an empty row between for example

Code: [Select]
D1,0+000.00,48.52,58.62

D2,0+020.00,32.25,42.59

D3,0+040.00,52.20,49.80

Thanks
Title: Re: Help with a lisp
Post by: BIGAL on April 21, 2019, 07:14:08 PM
Why not just do it in autocad ? You have the chainage the end area therom is pretty simple.
Title: Re: Help with a lisp
Post by: pedroantonio on April 21, 2019, 07:21:15 PM
if you have 50 cross sections how to do it?
Title: Re: Help with a lisp
Post by: Dlanor on April 22, 2019, 07:08:03 AM
Type "export block attribute" into the search at the top right of the page for a list of solutions
Title: Re: Help with a lisp
Post by: BIGAL on April 23, 2019, 06:14:51 AM
Like dlanor you make a "LIST" of the block values and just do the maths involved. You would just pick all the blocks but do a sort on the chainage so the "LIST" is in correct order.
Title: Re: Help with a lisp
Post by: pedroantonio on April 23, 2019, 06:56:02 AM
I FIND IT THANKS  :-D