Example #1
0
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(AxisOfRevolution));
     parameters.Add(binder.GetEntityId(Generatrix));
     parameters.Add(StartAngle);
     parameters.Add(EndAngle);
 }
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(FirstCurve));
     parameters.Add(binder.GetEntityId(SecondCurve));
     parameters.Add((int)Direction);
     parameters.Add(IsDevelopable ? 1 : 0);
 }
Example #3
0
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(GeneralNote));
     parameters.Add(binder.GetEntityId(FirstLeader));
     parameters.Add(binder.GetEntityId(SecondLeader));
     parameters.Add(ArcCenter.X);
     parameters.Add(ArcCenter.Y);
 }
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(Surface));
     parameters.Add(!IsOuterBoundaryD);
     parameters.Add(BoundaryEntities.Count);
     parameters.Add(binder.GetEntityId(OuterBoundary));
     parameters.AddRange(BoundaryEntities.Select(binder.GetEntityId).Cast <object>());
 }
Example #5
0
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add((int)CurveCreationType);
     parameters.Add(binder.GetEntityId(Surface));
     parameters.Add(binder.GetEntityId(CurveDefinitionB));
     parameters.Add(binder.GetEntityId(CurveDefinitionC));
     parameters.Add((int)PreferredRepresentation);
 }
Example #6
0
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(GeneralNote));
     parameters.Add(binder.GetEntityId((IgesEntity)WitnessLine ?? FirstLeader));
     if (HasSupplementalLeader)
     {
         parameters.Add(binder.GetEntityId(FirstLeader));
     }
 }
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(GeneralNote));
     parameters.Add(Leaders.Count);
     foreach (var leader in Leaders)
     {
         parameters.Add(binder.GetEntityId(leader));
     }
 }
Example #8
0
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(Point));
     parameters.Add(binder.GetEntityId(Normal));
     if (IsParameterized)
     {
         parameters.Add(binder.GetEntityId(ReferenceDirection));
     }
 }
Example #9
0
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(Center));
     parameters.Add(Radius);
     if (IsParameterized)
     {
         parameters.Add(binder.GetEntityId(AxisDirection));
         parameters.Add(binder.GetEntityId(ReferenceDirection));
     }
 }
Example #10
0
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(GeneralNote));
     parameters.Add(binder.GetEntityId(FirstWitnessLine));
     parameters.Add(binder.GetEntityId(SecondWitnessLine));
     parameters.Add(Vertex.X);
     parameters.Add(Vertex.Y);
     parameters.Add(LeaderArcRadius);
     parameters.Add(binder.GetEntityId(FirstLeader));
     parameters.Add(binder.GetEntityId(SecondLeader));
 }
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(Shell));
     parameters.Add(IsOriented);
     parameters.Add(Voids.Count);
     foreach (var v in Voids)
     {
         parameters.Add(binder.GetEntityId(v.Shell));
         parameters.Add(v.IsOriented);
     }
 }
Example #12
0
        internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
        {
            parameters.Add(Solids.Count);
            foreach (var solid in Solids)
            {
                parameters.Add(binder.GetEntityId(solid.Solid));
            }

            foreach (var solid in Solids)
            {
                parameters.Add(binder.GetEntityId(solid.TransformationMatrix));
            }
        }
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(LabelPlacements.Count);
     foreach (var labelPlacement in LabelPlacements)
     {
         parameters.Add(binder.GetEntityId(labelPlacement.View));
         parameters.Add(labelPlacement.Location.X);
         parameters.Add(labelPlacement.Location.Y);
         parameters.Add(labelPlacement.Location.Z);
         parameters.Add(binder.GetEntityId(labelPlacement.Leader));
         parameters.Add(labelPlacement.Level);
         parameters.Add(binder.GetEntityId(labelPlacement.Label));
     }
 }
Example #14
0
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(IsBounaryParametric);
     parameters.Add((int)TrimCurvePreference);
     parameters.Add(binder.GetEntityId(Entity));
     parameters.Add(BoundaryItems.Count);
     foreach (var boundaryItem in BoundaryItems)
     {
         parameters.Add(binder.GetEntityId(boundaryItem.Entity));
         parameters.Add(boundaryItem.IsReversed);
         parameters.Add(boundaryItem.AssociatedParameterCurves.Count);
         parameters.AddRange(boundaryItem.AssociatedParameterCurves.Select(binder.GetEntityId).Cast <object>());
     }
 }
Example #15
0
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(this.Offset.X);
     parameters.Add(this.Offset.Y);
     parameters.Add(this.Offset.Z);
     parameters.Add(binder.GetEntityId(DisplacementCoordinateSystem));
 }
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add((int)Orientation);
     parameters.Add(binder.GetEntityId(Template));
     parameters.Add(CommonArcLength);
     parameters.Add(ScaleFactor);
 }
        internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
        {
            parameters.Add(FontCode);
            parameters.Add(Name);
            if (SupercedesFont != null)
            {
                parameters.Add(-binder.GetEntityId(SupercedesFont));
            }
            else if (SupercedesCode == 0)
            {
                parameters.Add(null);
            }
            else
            {
                parameters.Add(SupercedesCode);
            }

            parameters.Add(Scale);
            parameters.Add(Characters.Count);
            foreach (var character in Characters)
            {
                parameters.Add(character.ASCIICode);
                parameters.Add(character.CharacterOrigin.X);
                parameters.Add(character.CharacterOrigin.Y);
                parameters.Add(character.CharacterMovements.Count);
                foreach (var movement in character.CharacterMovements)
                {
                    parameters.Add(movement.IsUp);
                    parameters.Add(movement.Location.X);
                    parameters.Add(movement.Location.Y);
                }
            }
        }
Example #18
0
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(BooleanTree));
     parameters.Add(SelectionPoint.X);
     parameters.Add(SelectionPoint.Y);
     parameters.Add(SelectionPoint.Z);
 }
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(Directrix));
     parameters.Add(GeneratrixTerminatePoint.X);
     parameters.Add(GeneratrixTerminatePoint.Y);
     parameters.Add(GeneratrixTerminatePoint.Z);
 }
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(GeneralNote));
     parameters.Add(AnalysisSubcase);
     parameters.Add(IgesFileWriter.ParameterToString(AnalysisTime));
     parameters.Add(ExpectedValueCount);
     parameters.Add(Results.Count);
     for (int i = 0; i < Results.Count; i++)
     {
         parameters.Add(i);                                   // node number
         parameters.Add(binder.GetEntityId(Results[i].Node)); // node pointer
         foreach (var value in Results[i].Values)
         {
             parameters.Add(value);
         }
     }
 }
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(CurveToOffset));
     parameters.Add((int)DistanceType);
     parameters.Add(binder.GetEntityId(EntityOffsetCurveFunction));
     parameters.Add(ParameterIndexOfFunctionEntityCurve);
     parameters.Add((int)TaperedOffsetType);
     parameters.Add(FirstOffsetDistance);
     parameters.Add(FirstOffsetDistanceValue);
     parameters.Add(SecondOffsetDistance);
     parameters.Add(SecondOffsetDistanceValue);
     parameters.Add(EntityNormal.X);
     parameters.Add(EntityNormal.Y);
     parameters.Add(EntityNormal.Z);
     parameters.Add(StartingParameterValue);
     parameters.Add(EndingParameterValue);
 }
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(Curve));
     parameters.Add(ExtrusionLength);
     parameters.Add(ExtrusionDirection.X);
     parameters.Add(ExtrusionDirection.Y);
     parameters.Add(ExtrusionDirection.Z);
 }
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(Direction.X);
     parameters.Add(Direction.Y);
     parameters.Add(Direction.Z);
     parameters.Add(Distance);
     parameters.Add(binder.GetEntityId(Surface));
 }
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(SubfigureDefinition));
     parameters.Add(Translation.X);
     parameters.Add(Translation.Y);
     parameters.Add(Translation.Z);
     parameters.Add(Scale);
 }
Example #25
0
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(Location.X);
     parameters.Add(Location.Y);
     parameters.Add(Location.Z);
     parameters.Add(binder.GetEntityId(DisplaySymbolGeometry));
     parameters.Add(ConnectionType == IgesConnectionType.ImplementorDefined ? RawConnectionType : (int)ConnectionType);
     parameters.Add((int)FunctionType);
     parameters.Add(FunctionIdentifier);
     parameters.Add(binder.GetEntityId(FunctionIdentifierTextDisplayTemplate));
     parameters.Add(FunctionName);
     parameters.Add(binder.GetEntityId(FunctionNameTextDisplayTemplate));
     parameters.Add(UniqueIdentifier);
     parameters.Add(FunctionCode == IgesConnectionFunctionCode.ImplementorDefined ? RawFunctionCode : (int)FunctionCode);
     parameters.Add(ConnectPointMayBeSwapped ? 0 : 1);
     parameters.Add(binder.GetEntityId(Owner));
 }
Example #26
0
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(XOffset);
     parameters.Add(YOffset);
     parameters.Add(SizeParameter1);
     parameters.Add(SizeParameter2);
     parameters.Add(RotationAngle);
     parameters.Add(binder.GetEntityId(ReferenceEntity));
 }
Example #27
0
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(Curve));
     parameters.Add(RevolutionAmount);
     parameters.Add(PointOnAxis.X);
     parameters.Add(PointOnAxis.Y);
     parameters.Add(PointOnAxis.Z);
     parameters.Add(AxisDirection.X);
     parameters.Add(AxisDirection.Y);
     parameters.Add(AxisDirection.Z);
 }
Example #28
0
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(PlaneCoefficientA);
     parameters.Add(PlaneCoefficientB);
     parameters.Add(PlaneCoefficientC);
     parameters.Add(PlaneCoefficientD);
     parameters.Add(binder.GetEntityId(ClosedCurveBoundingEntity));
     parameters.Add(DisplaySymbolLocation.X);
     parameters.Add(DisplaySymbolLocation.Y);
     parameters.Add(DisplaySymbolLocation.Z);
     parameters.Add(DisplaySymbolSize);
 }
        internal override void WriteParameters(List<object> parameters, IgesWriterBinder binder)
        {
            parameters.Add(NodeAnalyses.Count);
            parameters.AddRange(NodeAnalyses.Select(na => binder.GetEntityId(na.GeneralNote)).Cast<object>());

            var count = NodeAnalyses.FirstOrDefault()?.AnalysisCases.Count ?? 0;
            foreach (var analysis in NodeAnalyses)
            {
                parameters.Add(NodeAnalyses.Count);
                parameters.Add(analysis.Identifier);
                parameters.Add(binder.GetEntityId(analysis.FiniteElement));
                foreach (var analysisCase in analysis.AnalysisCases)
                {
                    parameters.Add(analysisCase.Offset.X);
                    parameters.Add(analysisCase.Offset.Y);
                    parameters.Add(analysisCase.Offset.Z);
                    parameters.Add(analysisCase.XRotation);
                    parameters.Add(analysisCase.YRotation);
                    parameters.Add(analysisCase.ZRotation);
                }
            }
        }
Example #30
0
 internal override void WriteParameters(List <object> parameters, IgesWriterBinder binder)
 {
     parameters.Add(binder.GetEntityId(GeneralNote));
     parameters.Add(AnalysisSubcase);
     parameters.Add(AnalysisTime);
     parameters.Add(Elements.Count);
     parameters.Add((int)ReportingType);
     parameters.Add(Elements.Count);
     foreach (var element in Elements)
     {
         parameters.Add(element.Identifier);
         parameters.Add(binder.GetEntityId(element.Entity));
         parameters.Add(element.ElementTopologyType);
         parameters.Add(element.LayerCount);
         parameters.Add((int)element.DataLayerType);
         parameters.Add(element.Results.Count);
         parameters.Add(element.RDRL);
         parameters.AddRange(element.Results.Cast <object>());
         parameters.Add(element.Values.Count);
         parameters.AddRange(element.Values.Cast <object>());
     }
 }