Documentation
¶
Overview ¶
import STEP file in p21/stp format containing AP242 data (ISO 10303-242) into SST
Index ¶
- Constants
- Variables
- func Parse(src *bufio.Reader, errorReporter ErrorReporter) (graph sst.NamedGraph, err error)
- func SSTToStepExport(sstFileName *bufio.Reader)
- func ToStepExporter(graph sst.NamedGraph, fileLocation string) error
- type AxisPlacement
- type CartesianPoint
- type DefinedType
- type Direction
- type EnumerationValue
- type ErrorReporter
- type ExpressObject
- type ExtraEntity
- type FileDescription
- type FileName
- type FileSchema
- type GeometricCurveSet
- type GeometricallyBounded
- type Header
- type LineOrderWithIndex
- type OntologyObjectType
- type OntologyType
- type Product
- type ProductContext
- type ProductDefinition
- type ProductDefinitionContext
- type ProductDefinitionFormation
- type ProductDefinitionShape
- type RawAttributeValues
- type RepresentationContext
- type ShapeRepresentation
- type SingleEntity
- type TreeNode
- type UniformCurve
Constants ¶
View Source
const ( PART = "part" SUPER = "SUPER" RANGE = "range" CUBIC = "cubic" SQUARE = "square" DOMAIN = "domain" DESIGN = "design" PRODUCT = "PRODUCT" SI_UNIT = "SI_UNIT" VERSION = "VERSION" EDGE_LOOP = "EDGE_LOOP" ATTRIBUTE = "ATTRIBUTE" NAMED_UNIT = "NAMED_UNIT" SHAPE_ASPECT = "SHAPE_ASPECT" PRODUCT_DEFINITION = "PRODUCT_DEFINITION" SHAPE_REPRESENTATION = "SHAPE_REPRESENTATION" PRODUCT_DEFINITION_SHAPE = "PRODUCT_DEFINITION_SHAPE" PRODUCT_DEFINITION_CONTEXT = "PRODUCT_DEFINITION_CONTEXT" REPRESENTATION_RELATIONSHIP = "REPRESENTATION_RELATIONSHIP" MEASURE_REPRESENTATION_ITEM = "MEASURE_REPRESENTATION_ITEM" ITEM_DEFINED_TRANSFORMATION = "ITEM_DEFINED_TRANSFORMATION" GLOBAL_UNIT_ASSIGNED_CONTEXT = "GLOBAL_UNIT_ASSIGNED_CONTEXT" PRODUCT_DEFINITION_FORMATION = "PRODUCT_DEFINITION_FORMATION" NEXT_ASSEMBLY_USAGE_OCCURRENCE = "NEXT_ASSEMBLY_USAGE_OCCURRENCE" SHAPE_DEFINITION_REPRESENTATION = "SHAPE_DEFINITION_REPRESENTATION" PRODUCT_RELATED_PRODUCT_CATEGORY = "PRODUCT_RELATED_PRODUCT_CATEGORY" SHAPE_REPRESENTATION_RELATIONSHIP = "SHAPE_REPRESENTATION_RELATIONSHIP" PROPERTY_DEFINITION_REPRESENTATION = "PROPERTY_DEFINITION_REPRESENTATION" CONTEXT_DEPENDENT_SHAPE_REPRESENTATION = "CONTEXT_DEPENDENT_SHAPE_REPRESENTATION" REPRESENTATION_RELATIONSHIP_WITH_TRANSFORMATION = "REPRESENTATION_RELATIONSHIP_WITH_TRANSFORMATION" PRODUCT_DEFINITION_FORMATION_WITH_SPECIFIED_SOURCE = "PRODUCT_DEFINITION_FORMATION_WITH_SPECIFIED_SOURCE" )
View Source
const ANCHOR = 57361
View Source
const ANCHOR_NAME = 57346
View Source
const BINARY = 57347
View Source
const CONSTANT_ENTITY_NAME = 57348
View Source
const CONSTANT_VALUE_NAME = 57349
View Source
const DATA = 57362
View Source
const ENDISO1030321 = 57363
View Source
const ENDSEC = 57364
View Source
const ENTITY_INSTANCE_NAME = 57350
View Source
const ENUMERATION = 57351
View Source
const HEADER = 57365
View Source
const INTEGER = 57352
View Source
const ISO1030321 = 57366
View Source
const REAL = 57353
View Source
const REFERENCE = 57367
View Source
const RESOURCE = 57354
View Source
const SIGNATURE = 57368
View Source
const SIGNATURE_CONTENT = 57355
View Source
const STANDARD_KEYWORD = 57356
View Source
const STRING = 57357
View Source
const TAG_NAME = 57358
View Source
const USER_DEFINED_KEYWORD = 57359
View Source
const VALUE_INSTANCE_NAME = 57360
Variables ¶
View Source
var ErrInvalidPosition = errors.New("invalid position")
View Source
var ErrParsingFailed = errors.New("parsing failed")
Functions ¶
func Parse ¶
func Parse(src *bufio.Reader, errorReporter ErrorReporter) (graph sst.NamedGraph, err error)
func SSTToStepExport ¶
func ToStepExporter ¶
func ToStepExporter(graph sst.NamedGraph, fileLocation string) error
Types ¶
type AxisPlacement ¶
type AxisPlacement struct {
Count int
Type string
Id string
CartesianPoint CartesianPoint
DirectionX Direction
}
type DefinedType ¶
type DefinedType struct {
ExpressObject
}
type EnumerationValue ¶
type EnumerationValue struct {
ExpressObject
}
type ErrorReporter ¶
type ErrorReporter interface {
Println(v ...interface{})
}
type ExpressObject ¶
type ExpressObject struct {
// contains filtered or unexported fields
}
type ExtraEntity ¶
type ExtraEntity struct {
// contains filtered or unexported fields
}
type FileDescription ¶
type FileSchema ¶
type FileSchema struct {
Schema string
}
type GeometricCurveSet ¶
type GeometricCurveSet struct {
Count int
Type string
Id string
Curves []UniformCurve
}
type GeometricallyBounded ¶
type GeometricallyBounded struct {
Count int
Type string
Id string
Context string
CurveSet []GeometricCurveSet
RepContext RepresentationContext
}
type Header ¶
type Header struct {
FileDescription FileDescription
FileName FileName
FileSchema FileSchema
}
type LineOrderWithIndex ¶
type LineOrderWithIndex struct {
// contains filtered or unexported fields
}
type OntologyObjectType ¶
type OntologyObjectType int
const ( EntityType OntologyObjectType = iota EnumerationValueType DefinedTypeType )
type ProductContext ¶
type ProductDefinition ¶
type ProductDefinitionShape ¶
type RawAttributeValues ¶
type RawAttributeValues struct {
MixedValues []interface{}
// contains filtered or unexported fields
}
type RepresentationContext ¶
type ShapeRepresentation ¶
type ShapeRepresentation struct {
Count int
Type string
Id string
Ref []string
AxisPlacement []AxisPlacement
}
type SingleEntity ¶
type SingleEntity struct {
// contains filtered or unexported fields
}
type TreeNode ¶
TreeNode is a structure that will represent either an individual IBNode or a collection of TreeNodes
type UniformCurve ¶
Click to show internal directories.
Click to hide internal directories.