乐筑天下

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

[编程交流] TRIM COMMAND - Drawing vs Usin

[复制链接]

180

主题

639

帖子

463

银币

中流砥柱

Rank: 25

铜币
897
发表于 2022-7-6 07:02:55 | 显示全部楼层 |阅读模式
As most of you know, for the last year now I have been working on a totally automated drawing process which does not allow for any user input. For the most part this has been working but I have now taken on a new product line with this client which has many different materials and configurations. Drawing the assembly is not a problem, however, trimming the lines has now become a major issue. I have tried several different methods but each method sooner or later runs into something that just cannot be trimmed using LISP. I would love to show some examples but I'm limited by confidentiality agreements so if I show anything it would have to be only a facsimile not the real parts.
 
So this morning I thought ok, why not draw a block for each condition, couldn't be that hard right... OK there are 5 different items in the area to be drawn, and each one has a number of different variations. So just doing the math on the number of different combinations of conditions I end up with 385 different blocks. And that's just for this one corner.
 
I was wondering what others have done in a similar situation. I have tried using the WIPEOUT command and it has some real merits as a problem solver for some trimming situations, but not all. And even if it was, there are too many AutoCAD 2005 users in this group who are unable to use WIPEOUTS...and asking for a department wide upgrade of AutoCAD will be next to impossible.
 
OK, I've included a small schematic sketch which may help to clarify the complexity of this task. As you can see, some of the areas to be trimmed are no problem. Others are difficult and still others are impossible to do with code. I've even tried inserting a mask with all the shapes but that has proven to be hit or miss and is not reliable.
B4-After.pdf
回复

使用道具 举报

0

主题

269

帖子

279

银币

限制会员

铜币
-4
发表于 2022-7-6 07:23:21 | 显示全部楼层
Could you have a "fence line" associated with each geometric shape, this line/path would be used to trim out objects "below". This fence line would move along with the object.  It could be actual linework on a hidden layer, or be geometry included in the code.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 07:33:54 | 显示全部楼层
Could you not use a prebuilt block library, rather than attempting to construct the objects programmatically?
回复

使用道具 举报

10

主题

895

帖子

887

银币

初来乍到

Rank: 1

铜币
49
发表于 2022-7-6 07:44:40 | 显示全部楼层
Regions or solids at different elevations, visual style set to hidden will get you there.  Or draw it to true size in 3D with solids.
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-6 07:54:06 | 显示全部楼层
Using elevations has worked for me inconjunction with pface this was available in 2005, earlier than wipeout. like rkent you only need 1 unit thick if you have plines pretty easy to do multiples. Either move 0,0,0 0,0,Z or use Elev.
回复

使用道具 举报

10

主题

895

帖子

887

银币

初来乍到

Rank: 1

铜币
49
发表于 2022-7-6 08:03:53 | 显示全部楼层
 
To move objects 1 unit in the Z direction you can use...
 
move
0,0,1
enter
enter.
 
Rather than entering a base point reference and then the displacement.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-10 11:06 , Processed in 0.707579 second(s), 75 queries .

© 2020-2025 乐筑天下

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