Class SiteLayout
A site layout
Namespace: Scripting
Syntax
public class SiteLayout
Constructors
SiteLayout()
Creates an instance of the SiteLayout class.
Declaration
public SiteLayout()
Properties
InverterInstances
Gets all the inverter instances in this site layout.
Declaration
public IEnumerable<InverterInstance> InverterInstances { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<InverterInstance> |
LayoutBoundaries
Gets all the layout boundaries in this site layout.
Declaration
public IEnumerable<LayoutBoundary> LayoutBoundaries { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<LayoutBoundary> |
Name
Name of the site layout
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RackInstanceInfos
Gets the rack instance infos for the SiteLayout.
Declaration
public IEnumerable<RackInstanceInfo> RackInstanceInfos { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<RackInstanceInfo> |
SiteLayoutType
The site layout type
Declaration
public SiteLayoutType SiteLayoutType { get; set; }
Property Value
Type | Description |
---|---|
SiteLayoutType |
Statistics
TODO
Declaration
public SiteLayoutStatistics Statistics { get; set; }
Property Value
Type | Description |
---|---|
SiteLayoutStatistics |
TransformerInstances
Gets all the transformer instances in this site layout.
Declaration
public IEnumerable<TransformerInstance> TransformerInstances { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TransformerInstance> |
Methods
AddExclusionRegion(String, IEnumerable<I2DLocation>)
Add an exclusion region to the site layout with the specified name and boundary points.
Declaration
public void AddExclusionRegion(string name, IEnumerable<I2DLocation> points)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name to give the exclusion region. |
System.Collections.Generic.IEnumerable<I2DLocation> | points | The points that will make up the exclusion region's boundary. |
AddTrackerLayoutRegion(IEnumerable<I2DLocation>, Boolean, TrackerPlacementModeType)
Add a new layout region to the site layout with the specified boundary points.
Declaration
public LayoutBoundary AddTrackerLayoutRegion(IEnumerable<I2DLocation> points, bool autoFillAutomatically = true, TrackerPlacementModeType trackerPlacementMode = TrackerPlacementModeType.InPlane)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<I2DLocation> | points | The points that will make up the layout region's boundary. |
System.Boolean | autoFillAutomatically | Sets the 'AutoFill' flag on the new layout region. |
TrackerPlacementModeType | trackerPlacementMode | The tracker placement mode. |
Returns
Type | Description |
---|---|
LayoutBoundary | The newly created layout region. |
AddTransformerInstance(I2DLocation, TransformerSpecification)
Adds a new transformer instance at the specified location, using the specified transformer specification.
Declaration
public void AddTransformerInstance(I2DLocation location, TransformerSpecification transformerSpecification)
Parameters
Type | Name | Description |
---|---|---|
I2DLocation | location | The location (in workbook projection). |
TransformerSpecification | transformerSpecification | The transformer specification to use for the transformer instance. |
Equals(SiteLayout)
Tests a SiteLayout against this current SiteLayout for equality.
Declaration
public bool Equals(SiteLayout val)
Parameters
Type | Name | Description |
---|---|---|
SiteLayout | val |
Returns
Type | Description |
---|---|
System.Boolean | True if equal otherwise false is returned. |
Equals(Object)
Tests a System.Object against this current SiteLayout for equality.
Declaration
public override bool Equals(object toCompare)
Parameters
Type | Name | Description |
---|---|---|
System.Object | toCompare |
Returns
Type | Description |
---|---|
System.Boolean | True if object is equal otherwise false is returned. |
Overrides
GetHashCode()
Gets the hash code for this object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for this object. |
Overrides
RemoveAllInverterInstances()
Removes all inverter instances in this site layout.
Declaration
public void RemoveAllInverterInstances()
RemoveAllLayoutRegions()
Removes all the layout regions in this site layout.
Declaration
public void RemoveAllLayoutRegions()
RemoveAllRacks()
Removes all racks in the site layout.
Declaration
public void RemoveAllRacks()
RemoveAllTransformerInstances()
Removes all transformer instances in this site layout.
Declaration
public void RemoveAllTransformerInstances()
UpdateCache()
Updates the cache for this SiteLayout.
Declaration
public void UpdateCache()
Operators
Equality(SiteLayout, SiteLayout)
Tests a SiteLayout against this current SiteLayout for equality.
Declaration
public static bool operator ==(SiteLayout a, SiteLayout b)
Parameters
Type | Name | Description |
---|---|---|
SiteLayout | a | |
SiteLayout | b |
Returns
Type | Description |
---|---|
System.Boolean | True if equal otherwise false is returned. |
Inequality(SiteLayout, SiteLayout)
Tests a SiteLayout against this current SiteLayout for inequality.
Declaration
public static bool operator !=(SiteLayout a, SiteLayout b)
Parameters
Type | Name | Description |
---|---|---|
SiteLayout | a | |
SiteLayout | b |
Returns
Type | Description |
---|---|
System.Boolean | True if not equal otherwise false is returned. |