Documentation
¶
Overview ¶
import STEP AP242 XML data (ISO 10303-242) into SST
Index ¶
- Variables
- func AP242XmlImport(xmlFileName string) (sst.NamedGraph, error)
- func FromXMLReader(fromXML io.Reader) (sst.NamedGraph, error)
- func Logger() *log.Logger
- type Address
- type ClassStruct
- type DataContainerStruct
- type HeaderStruct
- type IDStruct
- type IdentifierStruct
- type OccurrenceStruct
- type OrganizationStruct
- type Origin
- type PartStruct
- type PartVersionStruct
- type PartViewStruct
- type ProductConceptStruct
- type ProductConfigurationStruct
- type PropertyDefinitionStruct
- type QuantityStruct
- type RepresentationContextStruct
- type RepresentationItemStruct
- type RepresentationRelationshipStruct
- type RepresentationStruct
- type Result
- type ShapeElementRelationshipStruct
- type ShapeElementStruct
- type ShapeFeatureDefinitionStruct
- type Target
- type UIDRef
- type UnitStruct
- type ViewContextStruct
- type ViewOccurrenceRelationshipStruct
- type XSIType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidPosition = errors.New("missing position inside AxisPlacement") ErrInvalidShapeFeatureType = errors.New("shape feature type not known") ErrOccurrenceNotFound = errors.New("occurrence not found") ErrParentOccurrenceNotFound = errors.New("parent occurrence not found") ErrRepresentationContextNotFound = errors.New("represented item not found") ErrRepresentationNotFound = errors.New("representation context not found") ErrRepresentationItemNotFound = errors.New("representation item not found") ErrRepresentationRelationshipNotFound = errors.New("representation relationship not found") ErrShapeElementDefinitionNotFound = errors.New("shape element definition not found") ErrShapeElementNotFound = errors.New("shape element not found") ErrShapeElementRelationshipRelatedNotKnown = errors.New("shape element relationship related not known") ErrViewNotFound = errors.New("view not found") ErrViewOccurrenceRelationshipNotFound = errors.New("view occurrence relationship not found") ErrOriginTargetLengthMismatch = errors.New("Origin and Target length does not match") )
Functions ¶
func AP242XmlImport ¶
func AP242XmlImport(xmlFileName string) (sst.NamedGraph, error)
func FromXMLReader ¶
func FromXMLReader(fromXML io.Reader) (sst.NamedGraph, error)
Types ¶
type ClassStruct ¶
type ClassStruct struct {
UID string `xml:"uid,attr"`
}
type DataContainerStruct ¶
type DataContainerStruct struct {
XsiType string `xml:"type,attr"`
ViewContext []ViewContextStruct
Unit []UnitStruct
Organization []OrganizationStruct
PropertyDefinition []PropertyDefinitionStruct
Class []ClassStruct
Part []PartStruct
ProductConcept []ProductConceptStruct
ShapeFeatureDefinition []ShapeFeatureDefinitionStruct
RepresentationContext []RepresentationContextStruct
}
type HeaderStruct ¶
type IDStruct ¶
type IDStruct struct {
ID string `xml:"id,attr"`
Identifier []IdentifierStruct
}
type IdentifierStruct ¶
type OccurrenceStruct ¶
type OccurrenceStruct struct {
Uid string `xml:"uid,attr"` //nolint:golint
XsiType XSIType `xml:"http://www.w3.org/2001/XMLSchema-instance type,attr"`
Id IDStruct //nolint:golint
Quantity QuantityStruct
Occurrence []OccurrenceStruct // recursive
ShapeElement []ShapeElementStruct
UpperUsage UIDRef
}
type OrganizationStruct ¶
type PartStruct ¶
type PartStruct struct {
UID string `xml:"uid,attr"`
Id IDStruct //nolint:golint
Name string `xml:"Name>CharacterString"`
PartTypes []string `xml:"PartTypes>PartCategoryEnum"`
Versions []PartVersionStruct `xml:"Versions>PartVersion"`
}
type PartVersionStruct ¶
type PartVersionStruct struct {
UID string `xml:"uid,attr"`
Id IDStruct //nolint:golint
Views []PartViewStruct `xml:"Views>PartView"`
}
type PartViewStruct ¶
type PartViewStruct struct {
Uid string `xml:"uid,attr"` //nolint:golint
XsiType XSIType `xml:"http://www.w3.org/2001/XMLSchema-instance type,attr"`
Id IDStruct //nolint:golint
InitialContext UIDRef
AdditionalContexts []UIDRef `xml:"AdditionalContexts>ViewContext"`
Occurrence []OccurrenceStruct
ViewOccurrenceRelationship []ViewOccurrenceRelationshipStruct
ShapeElement []ShapeElementStruct
DefiningGeometry UIDRef
AuxiliaryGeometry []UIDRef
Topology UIDRef
}
type ProductConceptStruct ¶
type ProductConceptStruct struct {
UID string `xml:"uid,attr"`
XsiType XSIType `xml:"http://www.w3.org/2001/XMLSchema-instance type,attr"`
ClassifiedAs []UIDRef `xml:"ClassifiedAs>Classification"`
Id IDStruct //nolint:golint
Name string `xml:"Name>CharacterString"`
// Types []string `xml:"PartTypes>PartCategoryEnum"` // missing in AP242 so far
ProductConfiguration []ProductConfigurationStruct
}
type ProductConfigurationStruct ¶
type ProductConfigurationStruct struct {
UID string `xml:"uid,attr"`
XsiType XSIType `xml:"http://www.w3.org/2001/XMLSchema-instance type,attr"`
ClassifiedAs []UIDRef `xml:"ClassifiedAs>Classificationr"`
Id IDStruct //nolint:golint
Name string `xml:"Name>CharacterString"`
Occurrence []OccurrenceStruct
ShapeElement []ShapeElementStruct
}
type QuantityStruct ¶
type RepresentationContextStruct ¶
type RepresentationContextStruct struct {
UID string `xml:"uid,attr"`
XsiType XSIType `xml:"http://www.w3.org/2001/XMLSchema-instance type,attr"`
Id IDStruct //nolint:golint
// Units
DimensionCount *int
Representations []RepresentationStruct `xml:"Representations>Representation"`
Items []RepresentationItemStruct `xml:"Items>RepresentationItem"`
}
type RepresentationItemStruct ¶
type RepresentationItemStruct struct {
UID string `xml:"uid,attr"`
UidRef string `xml:"uidRef,attr"` //nolint:golint
XsiType XSIType `xml:"http://www.w3.org/2001/XMLSchema-instance type,attr"`
Name string `xml:"Name>CharacterString"`
Id IDStruct //nolint:golint
ConnectedEdges struct {
Edge []UIDRef
}
// for ConnectedEdgeSubSet
ParentEdgeSet struct {
UidRef string `xml:"uidRef,attr"` //nolint:golint
}
// for BoundedCurveWithLength
CurveLength float64
// for edge
EdgeEnd UIDRef
EdgeStart UIDRef
// for EdgeBoundedCurveWithLength
EdgeGeometry UIDRef
SameSense bool
// for SubEdge
ParentEdge UIDRef
// for VertexPoint
VertexGeometry UIDRef
// for PointOnCurve
BasicCurve UIDRef
Parameter float64
// for Path
EdgeList struct {
Edge []UIDRef
}
OrientationList struct {
Boolean []bool
}
Axis string
Position string
RefDirection string
}
type RepresentationStruct ¶
type RepresentationStruct struct {
UID string `xml:"uid,attr"`
XsiType XSIType `xml:"http://www.w3.org/2001/XMLSchema-instance type,attr"`
Id IDStruct //nolint:golint
Items []RepresentationItemStruct `xml:"Items>RepresentationItem"`
RepresentationRelationship []RepresentationRelationshipStruct
}
type Result ¶
type Result struct {
XMLName xml.Name `xml:"Uos"`
Header HeaderStruct
DataContainer DataContainerStruct
}
type ShapeElementStruct ¶
type ShapeElementStruct struct {
Uid string `xml:"uid,attr"` //nolint:golint
XsiType XSIType `xml:"http://www.w3.org/2001/XMLSchema-instance type,attr"`
Id IDStruct //nolint:golint
Code UIDRef
Definition UIDRef
PartDefinition UIDRef
ShapeElement []ShapeElementStruct // recursive
RepresentedGeometry UIDRef
ShapeElementRelationship []ShapeElementRelationshipStruct
DomainType string
InterfaceOrJoinTerminal string
IntendedJointType []string `xml:"IntendedJointType>TerminalJointTypeEnum"`
JointType string `xml:"JointType"`
ConnectedTerminals []UIDRef `xml:"ConnectedTerminals>PartTerminal"`
}
type ShapeFeatureDefinitionStruct ¶
type ShapeFeatureDefinitionStruct struct {
UID string `xml:"uid,attr"`
XsiType XSIType `xml:"http://www.w3.org/2001/XMLSchema-instance type,attr"`
Id IDStruct //nolint:golint
Name string `xml:"Name>CharacterString"`
ShapeFeatureType string `xml:"ShapeFeatureType"`
ShapeElement []ShapeElementStruct
}
type UnitStruct ¶
type ViewContextStruct ¶
Click to show internal directories.
Click to hide internal directories.