Class Export
Class containing Export functionality that is exposed in the scripting Toolbox
Namespace: Scripting
Syntax
public class Export
Methods
ExportSiteLayoutToGoogleEarth(String, SiteLayout, Boolean, Double, Double)
Exports the racks/tracks from a site layout to a Google Earth KMZ file.
Declaration
public void ExportSiteLayoutToGoogleEarth(string fullFilePath, SiteLayout siteLayoutToExport, bool openFileInGoogleEarthAfterExport, double eastOffset = 0, double northOffset = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | fullFilePath | The full file path to export. |
SiteLayout | siteLayoutToExport | The site layout to export. |
System.Boolean | openFileInGoogleEarthAfterExport | if set to |
System.Double | eastOffset | The optional offset to move the racks/trackers east (can be negative). |
System.Double | northOffset | The optional offset to move the racks/trackers north (can be negative). |
ExportSiteLayoutToShapefile(String, SiteLayout)
Exports the racks/tracks from a site layout to a shapefile.
Declaration
public void ExportSiteLayoutToShapefile(string fullFilePath, SiteLayout siteLayoutToExport)
Parameters
Type | Name | Description |
---|---|---|
System.String | fullFilePath | The full file path to export. |
SiteLayout | siteLayoutToExport | The site layout to export. |
ExportToPVsyst(String, String, SiteLayout, String, SolarResource, String)
Export the current workbook to a PVsyst project file.
Declaration
public void ExportToPVsyst(string projectName, string projectFileName, SiteLayout siteLayout, string variantName, SolarResource solarResource, string exportFolderPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | projectName | Name of the project. |
System.String | projectFileName | Name of the project file. |
SiteLayout | siteLayout | The site layout to export. |
System.String | variantName | Name of the variant. |
SolarResource | solarResource | The solar resource to export (must be 1 year hourly data). |
System.String | exportFolderPath | The export folder path. |
WriteXyzHeightFileFromTrackerInfos(String, IEnumerable<TrackerInfo>, Double, Double)
Writes an .XYZ DTM file. Two XYZ points (north and south) for each tracker instance.
Declaration
public void WriteXyzHeightFileFromTrackerInfos(string xyzHeightFilePathToWrite, IEnumerable<TrackerInfo> trackerInfos, double trackerHeightFromGround, double extraMarginAroundEdgeInMetres = 50)
Parameters
Type | Name | Description |
---|---|---|
System.String | xyzHeightFilePathToWrite | The file path of the XYZ file to write. |
System.Collections.Generic.IEnumerable<TrackerInfo> | trackerInfos | The tracker infos of the trackers. |
System.Double | trackerHeightFromGround | The height that the trackers are from the ground (in metres). |
System.Double | extraMarginAroundEdgeInMetres | The extra margin to add around the edge (in metres). |