DriveWorks

All the Applications, Scripts, Plug-ins, and Add-Ons listed here are completely FREE to use or modify as covered under the:

PolyForm Noncommercial License 1.0.0

Contact me at for a commercial license.

If you have an idea or specific request for a new DriveWorks (DW), SolidWorks (SW), EspritCAM Add-in, Rhino Script/Addin/Plug-in or any other sort of automatization, do not hesitate to contact me at the email listed at the bottom of the page.

DWSortBy

Sorting projects on the main Projects page in the Integration Theme, corporate example. This functionality is available in the DW18.1 and up in the getProjects call. If you are using version lower than that the below could help.


const sortby_MD = (field, reverse, primer) => {
  
const key = primer ?
    
function(x) {
      
return primer(x[field])
    } :
    
function(x) {
      
return x[field]
    };

  
reverse = !reverse ? 1 : -1;
  
return function(a, b) {
    
return a = key(a), b = key(b), reverse * ((a > b) - (b > a));
  }
}


then in the "Get Project on load" function add the line:
projects.sort(sortby_MD('alias',false,(a)=> a.toUpperCase()));
In this case "alias" is the field/object/keyword to sort by!

/**
 * Get projects on load
 */

(async function () {    // After short delay, show loading state (skip loading state entirely if very quick loading)

    const loadingTimeout = setTimeout(function(){
        
projectsList.style.opacity = "";
    }, 
1000); 

    try {
        
// Get projects
        
const projects = await client.getProjects(GROUP_ALIAS) ;
        
projects.sort(sortby_MD('alias', false, (a) => a.toUpperCase())); //> Added line 

        clearTimeout(loadingTimeout); 

        // Logout if projects is undefined (due to no connection)
        
// If no Projects are available for the User's Team, an empty Array [] is returned.
        
if (!projects){
            
handleUnauthorizedUser("No connection found.");
            
return;
        }

        // Render
        
renderProjects(projects); 

    } catch (error) {
        
handleGenericError(error);
        
handleUnauthorizedUser();
    }

})();


Downloads

 

 


 

 



C# / C++ / VB / CAD / CAM / Esprit / Rhino3D / SQL / SOLIDWORKS /DriveWorks / SolidEdge programming & 3D Solid Design

 
To contact me, I am available through the below listed e-mail address. If you are interested in any of the above, just drop me an email and I can make what needs to be done.

e-mail:   








keywords: on line on-line online esprit esprit CAM nesting E-Nesting.com 2D vector web software asp on line optimization layout xml shoe glass sheet metal free placing cutting strategy case before waste dot .net minimal waste algorithm industry yield material cost save reduce true nesting IGS IGES interactive automatic true rhino3d rhino CAD CAM DXF DWG 3DM convert free layout algorithm shear nest true browser industry on line on-line online nesting E-Nesting.com 2D vector web software asp optimization layout xml shoe glass sheet metal free placing cutting strategy case before waste dot .net minimal waste algorithm industry yield material cost save reduce true nesting IGS IGES interactive automatic true rhino3d rhino CAD CAM DXF DWG 3DM convert free layout algorithm shear nest true browser industry on line nesting on-line nesting online nesting "on line nesting" "on-line nesting" "online nesting" nesting software linear nesting rectangular nesting nesting optimization sheet nesting length nesting automatic nesting nesting part nesting on line on-line online E-Nesting.com 2D vector web software asp optimization layout xml shoe glass sheet metal free placing cutting strategy case before waste dot .net minimal waste algorithm industry yield material cost save reduce true nesting IGS IGES interactive automatic true rhino3d rhino CAD CAM DXF DWG 3DM convert free layout algorithm shear nest true browser industry convert dwg dgn convert dwg to dgn plant layout solidworks cam dwg viewer layout software dwg java viewer cad drawing cad drawing software cad drawing services cad drawing viewer cad drawing programs electrical cad drawing auto cad freeware auto cad auto cad software auto cad viewer auto cad courses cad cutting cad dxf rhino cad cad dwg rhino cad software cad freeware cad viewer freeware cad solidworks cad autocad freeware ad software cad viewer software cad cae cad viewer cad cad software cad linux medusa cad cad file viewer cad reader graphite cad cad library cad design cad interoperability cad translators cad translator ring cad cad sales cad equipment cad pdf cutting optimizer cutting diagram cutting software automatic cutting cutting edge cutting edge solutions metal cutting sheet metal cutting cardboard cutting dwg dxf viewer dxf file viewer dxf freeware open source dxf dxf convert to dxf convert convert dxf to pdf dxf mac java dxf dxf pdf cad cam cad cam freeware cad cam software cad cam solutions unigraphics cad cam cad cam cae cad cam companies auto cad cam dolphin cad cam cad cam jewellery cad cam jewelry cad cam pictures cad cam pdf sheet metal cad cam