Thanks for all the help..... I used the lisp from Mel and it worked perfectly, but have one more question for you. is it posiblre to get the square size of the part, e.g the x and y sizes. for the pricing of the laser cut part i need to know what the material use is. I have looked in autocad to see if i can get the square size but have had no luck.
Sure, the data could be appended to a .csv file to be opened later in Excel.
What format would you like the data in?
I would think you would also want to associate the drawing name with each line of data?
The info that needs to go as a csv file needs to be the word cutlength one rcolumn and the actual value in the next column, this needs to be for each of those values that is genarated in the pop up window. the "x" and "y" value need to be seperated so that each value is in a column. is there a way of getting the image into the same file so that when i open excel i can see both the info and the image.
I made some changes, the data is written (appended) to a .csv file.
I added many configuration options, they are listed at the top of the routine.
Let me know if you have any questions regarding them, or any other aspect of the code.
As for the image, I'm not aware of a way to place an image along with the data, if that's what you mean.
;;; data labels
;;; only modify the label
;;; do not modify the "v" value
;;; do not modify the list order
'((v1 . "Drawing Name")
(v2 . "Cut length")
(v3 . "Pierces")
(v4 . "Bounding Box X")
(v5 . "Bounding Box Y")
(v6 . "Bounding Box Area")
(v7 . "Actual Area")
;;; data to write to file
;;; based on above list from top down
;;; write data to file = 0
;;; omit data from file = 1
'(0 0 0 0 0 0 0)
;;; order data is to be written
;;; based on labels-list
'(v1 v2 v3 v4 v5 v6 v7)
Like RobinHutch I'm new to this thing. I'm after something very similar to what he wanted.
However, I'm only interested in the area of the objects, but I need to have both Sq m and Sq ft.
(I only need it as a pop up window, as it is only for checking visually).