Author Topic: Howto cutting all out or in a rectangle ?  (Read 1141 times)

0 Members and 1 Guest are viewing this topic.


  • Newt
  • Posts: 64
Howto cutting all out or in a rectangle ?
« on: May 23, 2014, 12:42:40 AM »

i have an complex drawing and now i must cut all out of an rectangle (i have min-max-box).
On manual work i use the Civil/Map-command "MAPTRIM".
But i will cut the entities in c# code.
Exist a function for this or must i use the intersection for all entities?

regards Mario


  • Swamp Rat
  • Posts: 912
  • Certified Prof C3D
Re: Howto cutting all out or in a rectangle ?
« Reply #1 on: May 23, 2014, 02:57:54 AM »
If you want to write a function like that you must indeed find the intersection of all the objects you select. Not all entities in the drawing because you can make a selection of your rectangle.

Be aware you need to create functions to explde blocks and blocks inside blocks, dimensions, circles (that become polylines after trimming), etc.

There is a lisp by Joe Burke that does this trick. It is lisp but works well (except 3D polylines I remember).

See here:;all

The conclusion is justified that the initialization of the development of critical subsystem optimizes the probability of success to the development of the technical behavior over a given period.