Intersection of 2D objects

How to intersect a bunch of lines and 2d figures with one or many other closed figures with C# or VB script in DraftSight pro?