laptopz 发表于 2022-7-6 07:15:22

LISP - Gaskets Drawing from co

Hello,
 
I need to draw thousands of gaskets/concentric circles/ in order to cut them with a plotter. I am drawing them automatically with autocad from the coordinates of the concentric circles and their radius/multiple, circle command/ which I got from an excel table. Using them I am making two concentric circles, but I would like to autoname them and convert every single gasket to a block.
I can do it by hand but the count of the gaskets is very big.
 
Can you write a LISP program which writes a block from every 2 concentric circles and generates it's name in order to export every block to a single DWG file.
 
Thank you!

BIGAL 发表于 2022-7-6 07:46:00

You could write a script using the excel data and do it that way. To do in a lisp you could export a csv file, cen1xy, rad1, cen2xy, rad2 then read line by line creating block.
 
Any body seen that guy "Can you" lately he is really in demand.

laptopz 发表于 2022-7-6 07:59:33

YesI've met only "I can't" lately. I am able tocreate the conentric circles from an excel file and draw them. The whole problem is that they every two concentric circles are not a block but single objects. Is it possible to create such script. I am very new to LISP.
 
Please help!

BIGAL 发表于 2022-7-6 08:30:22

Look into dynamic blocks with rad1 rad2 an area I have not dabbled in.
页: [1]
查看完整版本: LISP - Gaskets Drawing from co