示例#1
0
        /*static void decode_geom(STEPNCLib.Finder Find, StringBuilder builder, long crv_count, long tp_id) {
        for(int i = 0; i < crv_count; i++) {
            bool isArc;
            long crv_id = Find.GetPathCurveNext(tp_id, i, out isArc);
            String type = Find.GetPathCurveType(crv_id);

            Console.WriteLine("Curve type: " + type);
        }
        }*/
        static void Mark_pieces(STEPNCLib.Finder Find, STEPNCLib.AptStepMaker APT, StringBuilder builder)
        {
            long count = Find.GetWorkpieceCount();

            for (long i = 0; i < count; i++){
            long wp_id = Find.GetWorkpieceNext(i);
            String uu = APT.SetUUID_if_not_set(wp_id);
            //System.Console.WriteLine("Workpiece at " + wp_id + " has UUID: " + uu);
            }
        }