Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        public static SemTextGeometry Create(
            string literal,
            SemPosition2D position2D)
        {
            var textGeometry = new SemTextGeometry(literal,
                                                   position2D);

            return(textGeometry);
        }
Beispiel #4
0
        public static SemTextGeometry Create(
            string literal,
            SemPosition2D position2D)
        {
            var textGeometry = new SemTextGeometry( literal,
                                                 position2D);

            return textGeometry;
        }