public SemTextGeometry( string literal, SemPosition2D position2D ) { _ifcTextLiteral = new IfcTextLiteral { Literal = literal, Placement = new IfcAxis2Placement(), Path = IfcTextPath.RIGHT, }; _ifcTextLiteral.Placement.Value = position2D.IfcAxis2Placement2D; _ifcShapeRepresentation = new IfcShapeRepresentation { ContextOfItems = SemHeaderSetting.Setting3D.GeometricRepresentationContext, RepresentationIdentifier = "GeometricCurveSet", RepresentationType = "Annotation2D", Items = new List <IfcRepresentationItem>(), }; _ifcShapeRepresentation.Items.Add(_ifcTextLiteral); _ifcProductDefinitionShape = new IfcProductDefinitionShape { // Name= // Description = Representations = new List <IfcRepresentation>(), }; _ifcProductDefinitionShape.Representations.Add(_ifcShapeRepresentation); }
public SemTextGeometry( string literal, SemPosition2D position2D ) { _ifcTextLiteral = new IfcTextLiteral{ Literal = literal, Placement = new IfcAxis2Placement(), Path = IfcTextPath.RIGHT, }; _ifcTextLiteral.Placement.Value = position2D.IfcAxis2Placement2D; _ifcShapeRepresentation = new IfcShapeRepresentation { ContextOfItems = SemHeaderSetting.Setting3D.GeometricRepresentationContext, RepresentationIdentifier = "GeometricCurveSet", RepresentationType = "Annotation2D", Items = new List<IfcRepresentationItem>(), }; _ifcShapeRepresentation.Items.Add(_ifcTextLiteral); _ifcProductDefinitionShape = new IfcProductDefinitionShape { // Name= // Description = Representations = new List<IfcRepresentation>(), }; _ifcProductDefinitionShape.Representations.Add(_ifcShapeRepresentation); }