Hide Table of Contents
Getting Started

Glossary Item Box

Writing a SolidWorks Sustainability API application typically involves:

  1. Adding a reference to either the SolidWorks Sustainability API type library or primary interop assembly:
    • VBA: sustainability version Type Library or install_dir\sustainability.tlb.
    • C# or VB.NET: SolidWorks.Interop.sustainability or install_dir\api\redist\CLR2\SolidWorks.Interop.sustainability.dll.
      NOTE: install_dir is typically C:\Program Files\SolidWorks Corp\SolidWorks.
  2. Opening a part or assembly document.
  3. Getting the model document object, IModelDoc2.
  4. Calling IModelDocExtension::GetSustainability to get the entry point to the SolidWorks Sustainability API, ISustainabilityApp.
  5. Getting and setting environmental impact factors:
    For document type... To get or set this environmental impact factor... Call...
    Parts Material ISustainabilityApp::GetSustainabilityMaterial
    Manufacture ISustainabilityApp::GetSustainabilityManufacturing
    Region of use ISustainabilityApp::GetSustainabilityPartUse
    Transportation ISustainabilityApp::GetSustainabilityTransportation
    End of Life ISustainabilityApp::GetSustainabilityEndOfLife
    Assemblies Material of components ISustainabilityApp::GetSustainabilityMaterial
    Manufacture of components ISustainabilityApp::GetSustainabilityManufacturing
    Assembly ISustainabilityApp::GetSustainabilityAssemblyProcess
    Region of use and energy consumption ISustainabilityApp::GetSustainabilityAssemblyUse
    Transportation ISustainabilityApp::GetSustainabilityTransportation
    End of Life ISustainabilityApp::GetSustainabilityEndOfLife
  6. Specifying the amount of product use time over which to evaluate environmental impact.
  7. Specifying the units of time over which to evaluate environmental impact.
  8. Updating the environmental impact results.
  9. Obtaining the environmental impact of a part or assembly in terms of air acidification, carbon footprint, energy consumption, and water eutrophication.

For more information about SolidWorks Sustainability, see the SolidWorks Help.



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Getting Started
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:



x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2013 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.