Bill Tillman 发表于 2022-7-6 07:02:55

TRIM COMMAND - Drawing vs Usin

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

CarlB 发表于 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.

Lee Mac 发表于 2022-7-6 07:33:54

Could you not use a prebuilt block library, rather than attempting to construct the objects programmatically?

rkent 发表于 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.

BIGAL 发表于 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.

rkent 发表于 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.
页: [1]
查看完整版本: TRIM COMMAND - Drawing vs Usin