Example #1
0
 protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
 {
     base.setJSON(obj, host, options);
     if (!double.IsNaN(mElevationOfRefHeight))
     {
         obj["ElevationOfRefHeight"] = ElevationOfRefHeight.ToString();
     }
     if (!double.IsNaN(mElevationOfTerrain))
     {
         obj["ElevationOfTerrain"] = ElevationOfTerrain.ToString();
     }
 }
Example #2
0
 protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
 {
     base.setJSON(obj, host, processed);
     if (!double.IsNaN(mElevationOfRefHeight))
     {
         obj["ElevationOfRefHeight"] = ElevationOfRefHeight.ToString();
     }
     if (!double.IsNaN(mElevationOfTerrain))
     {
         obj["ElevationOfTerrain"] = ElevationOfTerrain.ToString();
     }
     if (mBuildingAddress > 0)
     {
         obj["BuildingAddress"] = BuildingAddress.getJson(this, processed);
     }
 }
Example #3
0
        public override string GetStepParameters()
        {
            var parameters = new List <string>();

            parameters.Add(GlobalId != null ? GlobalId.ToStepValue() : "$");
            parameters.Add(OwnerHistory != null ? OwnerHistory.ToStepValue() : "$");
            parameters.Add(Name != null ? Name.ToStepValue() : "$");
            parameters.Add(Description != null ? Description.ToStepValue() : "$");
            parameters.Add(ObjectType != null ? ObjectType.ToStepValue() : "$");
            parameters.Add(ObjectPlacement != null ? ObjectPlacement.ToStepValue() : "$");
            parameters.Add(Representation != null ? Representation.ToStepValue() : "$");
            parameters.Add(LongName != null ? LongName.ToStepValue() : "$");
            parameters.Add(CompositionType.ToStepValue());
            parameters.Add(ElevationOfRefHeight != null ? ElevationOfRefHeight.ToStepValue() : "$");
            parameters.Add(ElevationOfTerrain != null ? ElevationOfTerrain.ToStepValue() : "$");
            parameters.Add(BuildingAddress != null ? BuildingAddress.ToStepValue() : "$");

            return(string.Join(", ", parameters.ToArray()));
        }