/// <summary>
 /// Constructor accepting underlying data
 /// </summary>
 /// <param name="point"></param>
 /// <param name="direction"></param>
 public IfcLine(IfcCartesianPoint point, IfcVector direction)
 {
     if (point == null)
     {
         throw new ArgumentNullException("point");
     }
     if (direction == null)
     {
         throw new ArgumentNullException("direction");
     }
     this.Pnt = (IfcLinePnt)point;
     this.Dir = (IfcLineDir)direction;
 }
Exemple #2
0
        public static iso_10303 buildFailingMinimumExampleObject(){
            iso_10303 iso10303                               = new iso_10303();
            
            iso10303.uos                                        = new uos1();
            iso10303.uos.configuration                          = new string[]{"i-ifc2x3"};
            
            iso10303.version                                    = "2.0";
            
            iso10303.iso_10303_28_header                        = new iso_10303_28_header();
            iso10303.iso_10303_28_header.author                 = "John Hancock";
            iso10303.iso_10303_28_header.organization           = "MegaCorp";
            iso10303.iso_10303_28_header.time_stamp             = new DateTime(2010,11,12,13,04,00);
            iso10303.iso_10303_28_header.name                   = "An Example";
            iso10303.iso_10303_28_header.preprocessor_version   = "a preprocessor";
            iso10303.iso_10303_28_header.originating_system     = "IfcDotNet Library";
            iso10303.iso_10303_28_header.authorization          = "none";
            iso10303.iso_10303_28_header.documentation          = "documentation";

            IfcOrganization organization                        = new IfcOrganization();
            organization.entityid                               = "i1101";
            organization.Name                                   = "MegaCorp";

            IfcCartesianPoint point                             = new IfcCartesianPoint("i101", 2500, 0, 0);

            IfcDirection dir                                    = new IfcDirection("i102",0,1,0);

            ((uos1)iso10303.uos).Items                          = new Entity[]{organization, point, dir};

            return iso10303;
        }