• Home
  • User Guide
  • Automation
  • API
  • Calculation
  • Validation
  • Contact Us
Search Results for

    Show / Hide Table of Contents
    • Scripting
      • AcWiring
      • AddableCollection<T>
      • AddCentralInverterAndAssignStringsParameters
      • Angle
      • AngularModelEnum
      • AnnualEnergyYieldResults
      • AreaLimitation
      • AreaLimitationType
      • Azimuth
      • AzimuthVsAltitude
      • BackgroundImage
      • BuildingBoundaryType
      • BuildingRegion
      • CalculationSettings
      • CellTempModelParameters
      • CentralInverterLocationParameters
      • CircumsolarType
      • Climate
      • ComponentLibrary
      • ComponentStatistic
      • CustomDateTimeTrackerPositionAlgorithmBase
      • DiffuseMultipliers
      • DiffuseShadingScheme
      • DiffuseTranspositionModel
      • DigitalTerrainResultsSummary
      • DiodeModel
      • DisabledModels
      • DistanceType
      • DistributionType
      • Domain
      • Efficiency
      • EfficiencyBase
      • EfficiencyCurve
      • EfficiencyCurveType
      • ElectricalLimitation
      • ElectricalLimitationType
      • ElectricalPower
      • Elevation
      • ElevationContours
      • ElevationGrid
      • ElevationProfileSamplePoint
      • ElevationProfileStatistics
      • EnergyYieldCalculationScenario
      • EnergyYieldCalculationType
      • EnergyYieldEffects
      • EnumTechnology
      • ExceedanceLevel
      • ExclusionRegion
      • Export
      • FillOptionComponentOptions
      • FillOptionIndividualComponentsOptions
      • FillOptionInverterBlockOptions
      • FillOptionRackLayoutOptions
      • FillOptionsSpacingType
      • FillOptionsType
      • FillOptionTrackerLayoutOptions
      • FillOptionUseExistingLayoutOptions
      • FlatTerrainParameters
      • GenericLayout
      • GenericLayoutFillOption
      • GenericLayoutSettings
      • Geography
      • HorizonData
      • I2DLocation
      • I3DLocation
      • IAddableEnumerable<T>
      • IAddableKeyedEnumerable<TKey, TValue>
      • IClearableCollection<T>
      • IEditableKeyedCollection<tKeyType, tContainedType>
      • IEditableKeyedEnumerable<TKeyType, TContainedType>
      • IElevationSource
      • Import
      • INamedItem
      • InstantaneousCondition
      • InverterBlockSpecification
      • InverterEfficiencyType
      • InverterInputInstance
      • InverterInputSpecification
      • InverterInstance
      • InverterSpecification
      • InverterSpecificationDocumentType
      • InverterTemperatureCurveEntry
      • InverterType
      • IReadable2DLocation
      • IReadable3DLocation
      • IReadableKeyedCollection<tKeyType, tContainedType>
      • IReadableKeyedEnumerable<TKey, TValue>
      • IRemovableKeyedEnumerable<TKey, TValue>
      • IResolution
      • Irradiance
      • ISpeed
      • IvCurve
      • KeyedCollection<TKeyType, TContainedType>
      • LayoutBoundary
      • LayoutBoundaryMarginParameter
      • LayoutBoundaryMarginParameters
      • LayoutChoiceType
      • LayoutParamsPitchModel
      • LayoutStatistic
      • Location
      • Location3D
      • LogLevel
      • MarginType
      • ModuleCellLayoutType
      • ModuleIndex
      • ModuleOrientation
      • ModuleSpecification
      • ModuleSpecificationDocumentType
      • ModuleString
      • MonteCarloSettings
      • MonthlyAlbedo
      • MonthlyEnergyYieldEffects
      • MonthlyEnergyYieldResults
      • MonthlySoilingValue
      • PerformanceStatistics
      • PowerOptimiserElectricalData
      • PowerOptimiserInputSpecification
      • PowerOptimiserMechanicalData
      • PowerOptimiserOperationType
      • PowerOptimiserOutputSpecification
      • PowerOptimiserSpecification
      • Projection
      • ProjectionInformation
      • PvsystCellTempModelParameters
      • PvsystInputIrradianceType
      • PVsystModelParameters
      • Quad
      • RackInstanceInfo
      • RackLayoutDefinition
      • RackLayoutParameters
      • RackSpecification
      • RackSystemSpecification
      • ReadOnly3DLocation
      • ReadOnlyLocation
      • Rectangle
      • Region
      • ReportCategory
      • Reporting
      • Resolution
      • RoadLocationParameters
      • RoughnessContours
      • RowPositionParameters
      • ScenarioAlbedoData
      • ScenarioMonthlyAlbedo
      • ScriptingException
      • ShadingBoundaryType
      • ShadingRegion
      • ShadingTargetPointPattern
      • SiteLayout
      • SiteLayoutStatistics
      • SiteLayoutType
      • SiteReferencePoint
      • SoilingEffectData
      • SolarResource
      • SpacingZone
      • SpecifySiteConfiguration
      • SpecifySiteDefinition
      • SpecifySiteLayoutRegionFillChoice
      • Speed
      • StringPatternType
      • SubArray
      • SunGeography
      • SunPosition
      • SunriseSunset
      • Temperature
      • TimeStepCalculation
      • Toolbox
      • TrackerGroup
      • TrackerImport
      • TrackerInfo
      • TrackerLayoutDefinition
      • TrackerLayoutParameters
      • TrackerPlacementModeType
      • TrackerPositionAlgorithmBase
      • TrackerRotations
      • TrackerRotationsTimeStep
      • TrackerSystemSpecification
      • TrackerTemplateSpecification
      • TransformerInstance
      • TransformerModelType
      • TransformerSpecification
      • TransformerSpecificationDocumentType
      • TwoDiodeParameters
      • Uncertainty
      • UncertaintyAnnualVariabilities
      • Workbook
      • WorkbookSettings
      • WorkbookSpecificModuleSpecification
      • YearRange
      • YieldResult
      • YieldResults

    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 true open the KMZ file in Google Earth after the export.

    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).

    In This Article
    Back to top DNV SolarFarmer Home