Batch modeling operations

 From:  Michael Gibson
8193.14 In reply to 8193.13 
Hi J-P, no problem! For your modified version, insert the following code just below the object rotations inside the ProcessFile() function:

code:
	// Duplicate edges of any remaining surfaces and delete the surface.
	var RemainingSurfaces = gd.getObjects().getFaces();
	for ( var i = 0; i < RemainingSurfaces.length; ++i )
	{
		var Srf = RemainingSurfaces.item(i);
		var Edges = Srf.getEdges();
		for ( var j = 0; j < Edges.length; ++j )
		{
			var Edge = Edges.item(j);
			var DupEdge = Edge.clone();
			gd.addObject( DupEdge );
		}
		
		gd.removeObject( Srf.getParentBRep() );
	}


- Michael