乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 51|回复: 3

[编程交流] LISP - Gaskets Drawing from co

[复制链接]

1

主题

2

帖子

1

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-6 07:15:22 | 显示全部楼层 |阅读模式
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!
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 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.
回复

使用道具 举报

1

主题

2

帖子

1

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-6 07:59:33 | 显示全部楼层
Yes  I've met only "I can't" lately. I am able to  create 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!
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-6 08:30:22 | 显示全部楼层
Look into dynamic blocks with rad1 rad2 an area I have not dabbled in.
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-10 10:18 , Processed in 0.490069 second(s), 60 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表