Class SiteLayout
Namespace: Scripting
Syntax
public class 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> |
RackInstanceInfos
Gets the rack instance infos for the SiteLayout.
Declaration
public IEnumerable<RackInstanceInfo> RackInstanceInfos { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<RackInstanceInfo> |
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 = null)
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. |
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()