本文整理汇总了C#中Space.GetBoundarySegments方法的典型用法代码示例。如果您正苦于以下问题:C# Space.GetBoundarySegments方法的具体用法?C# Space.GetBoundarySegments怎么用?C# Space.GetBoundarySegments使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Space
的用法示例。
在下文中一共展示了Space.GetBoundarySegments方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Stream
private void Stream( ArrayList data, Space space )
{
data.Add( new Snoop.Data.ClassSeparator( typeof( Space ) ) );
data.Add( new Snoop.Data.Double( "Actual exhaust air flow", space.ActualExhaustAirflow ) );
data.Add( new Snoop.Data.Double( "Actual HVAC load", space.ActualHVACLoad ) );
data.Add( new Snoop.Data.Double( "Actual lighting load", space.ActualLightingLoad ) );
data.Add( new Snoop.Data.Double( "Actual other load", space.ActualOtherLoad ) );
data.Add( new Snoop.Data.Double( "Actual power load", space.ActualPowerLoad ) );
data.Add( new Snoop.Data.Double( "Actual return airflow", space.ActualReturnAirflow ) );
data.Add( new Snoop.Data.Double( "Actual supply airflow", space.ActualSupplyAirflow ) );
data.Add( new Snoop.Data.Double( "Area", space.Area ) );
data.Add( new Snoop.Data.Double( "Perimeter", space.Perimeter ) );
data.Add( new Snoop.Data.Double( "Volume", space.Volume ) );
try
{
data.Add( new Snoop.Data.Double( "Area per person", space.AreaperPerson ) );
}
catch( System.Exception ex )
{
data.Add( new Snoop.Data.Exception( "Area per person", ex ) );
}
data.Add( new Snoop.Data.Double( "Average esitmated illumination", space.AverageEstimatedIllumination ) );
data.Add( new Snoop.Data.Double( "Base offset", space.BaseOffset ) );
data.Add( new Snoop.Data.Double( "Limit offset", space.LimitOffset ) );
data.Add( new Snoop.Data.Enumerable( "Boundary", space.GetBoundarySegments( new SpatialElementBoundaryOptions() ) ) );
try
{
data.Add( new Snoop.Data.Double( "Calculated cooling load", space.CalculatedCoolingLoad ) );
}
catch( System.Exception ex )
{
data.Add( new Snoop.Data.Exception( "Calculated cooling load", ex ) );
}
try
{
data.Add( new Snoop.Data.Double( "Calculated heating load", space.CalculatedHeatingLoad ) );
}
catch( System.Exception ex )
{
data.Add( new Snoop.Data.Exception( "Calculated heating load", ex ) );
}
try
{
data.Add( new Snoop.Data.Double( "Calculated supply airflow", space.CalculatedSupplyAirflow ) );
}
catch( System.Exception ex )
{
data.Add( new Snoop.Data.Exception( "Calculated supply airflow", ex ) );
}
data.Add( new Snoop.Data.Double( "Design exhaust airflow", space.DesignExhaustAirflow ) );
data.Add( new Snoop.Data.Double( "Design return airflow", space.DesignReturnAirflow ) );
data.Add( new Snoop.Data.Double( "Design supply airflow", space.DesignSupplyAirflow ) );
data.Add( new Snoop.Data.Double( "Design cooling load", space.DesignCoolingLoad ) );
data.Add( new Snoop.Data.Double( "Design heating load", space.DesignHeatingLoad ) );
data.Add( new Snoop.Data.Double( "Design HVAC load per area", space.DesignHVACLoadperArea ) );
data.Add( new Snoop.Data.Double( "Design other load per area", space.DesignOtherLoadperArea ) );
try
{
data.Add( new Snoop.Data.Double( "Design lighting load", space.DesignLightingLoad ) );
}
catch( System.Exception ex )
{
data.Add( new Snoop.Data.Exception( "Design lighting load", ex ) );
}
try
{
data.Add( new Snoop.Data.Double( "Design power load", space.DesignPowerLoad ) );
}
catch( System.Exception ex )
{
data.Add( new Snoop.Data.Exception( "Design power load", ex ) );
}
data.Add( new Snoop.Data.Double( "Ceiling reflectance", space.CeilingReflectance ) );
data.Add( new Snoop.Data.Double( "Floor reflectance", space.FloorReflectance ) );
data.Add( new Snoop.Data.Double( "Wall reflectance", space.WallReflectance ) );
data.Add( new Snoop.Data.Object( "Closed shell", space.ClosedShell ) );
data.Add( new Snoop.Data.String( "Condition type", space.ConditionType.ToString() ) );
try
{
data.Add( new Snoop.Data.Double( "Latent heat gain per person", space.LatentHeatGainperPerson ) );
}
catch( System.Exception ex )
{
data.Add( new Snoop.Data.Exception( "Latent heat gain per person", ex ) );
}
try
{
data.Add( new Snoop.Data.Double( "Sensible heat gain per person", space.SensibleHeatGainperPerson ) );
}
catch( System.Exception ex )
{
data.Add( new Snoop.Data.Exception( "Sensible heat gain per person", ex ) );
}
//.........这里部分代码省略.........
示例2: getVertexPointNums
private int getVertexPointNums(Space roomSpace)
{
SpatialElementBoundaryOptions opts = new SpatialElementBoundaryOptions();
try
{
IList<IList<Autodesk.Revit.DB.BoundarySegment>> bsa = roomSpace.GetBoundarySegments(opts);
return bsa[0].Count;
}
catch (Exception)
{
TaskDialog.Show("OOPS!", "Seems you have a Space in your view that is not in a properly enclosed region. \n\nPlease remove these Spaces or re-establish them inside of boundary walls and run the Exporter again.");
throw new IndexOutOfRangeException();
}
}
示例3: getVertexPoints
private List<string> getVertexPoints(Space roomSpace)
{
List<string> verticies = new List<string>();
SpatialElementBoundaryOptions opts = new SpatialElementBoundaryOptions();
IList<IList<Autodesk.Revit.DB.BoundarySegment>> bsa = roomSpace.GetBoundarySegments(opts);
if (bsa.Count > 0)
{
foreach (Autodesk.Revit.DB.BoundarySegment bs in bsa[0])
{
// For 2014
//var X = bs.Curve.get_EndPoint(0).X * meterMultiplier;
//var Y = bs.Curve.get_EndPoint(0).Y * meterMultiplier;
var X = bs.Curve.GetEndPoint(0).X * meterMultiplier;
var Y = bs.Curve.GetEndPoint(0).Y * meterMultiplier;
verticies.Add(X.ToDecimalString() + " " + Y.ToDecimalString());
}
}
else
{
verticies.Add("0 0");
}
return verticies;
}
示例4: GetBoundaries
private void GetBoundaries(
List<Segment> segments,
Space space)
{
//BoundarySegmentArrayArray boundaries = space.Boundary; // 2011
IList<IList<BoundarySegment>> boundaries // 2012
= space.GetBoundarySegments( // 2012
new SpatialElementBoundaryOptions() ); // 2012
//foreach( BoundarySegmentArray b in boundaries ) // 2011
foreach( IList<BoundarySegment> b in boundaries ) // 2012
{
foreach( BoundarySegment s in b )
{
Curve curve = s.Curve;
IList<XYZ> a = curve.Tessellate();
for( int i = 1; i < a.Count; ++i )
{
Segment segment = new Segment(
a[i - 1], a[i], space );
segments.Add( segment );
}
}
}
}