Documentation
¶
Overview ¶
export SST data to STEP AP242 XML data (ISO 10303-242)
Index ¶
- func AP242XmlExport(graph sst.NamedGraph, xmlfile io.Writer) error
- type Address
- type ClassStruct
- type Curve
- type DataContainer
- type DataFormat
- type Definition
- type Edge
- type File
- type FileLocationIdentification
- type FileLocations
- type FormatProperty
- type Header
- type IDStruct
- type IdentifierStruct
- type NestedOccurrence
- type NestedShapeElement
- type Occurrence
- type Organization
- type OrientationList
- type Origin
- type Part
- type PartVersion
- type PartView
- type Placement
- type ProductConceptStruct
- type ProductConfigurationStruct
- type PropertyDefinition
- type PropertyValue
- type PropertyValueAssignment
- type Quantity
- type Representation
- type RepresentationContext
- type RepresentationItem
- type RepresentationRelationship
- type Result
- type ShapeElement
- type ShapeElementRelationship
- type ShapeFeatureDefinition
- type StepData
- type Target
- type UIDRef
- type Unit
- type UnitDef
- type ViewContext
- type ViewOccurrenceRelationship
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AP242XmlExport ¶
func AP242XmlExport(graph sst.NamedGraph, xmlfile io.Writer) error
Types ¶
type ClassStruct ¶
type ClassStruct struct {
UID string `xml:"uid,attr"`
}
type DataContainer ¶
type DataContainer struct {
XsiType string `xml:"xsi:type,attr"`
ViewContext []ViewContext
Unit []Unit
FormatProperty []FormatProperty
Organization []Organization
PropertyDefinition []PropertyDefinition
Class []ClassStruct
Part []Part
ProductConcept []ProductConceptStruct
ShapeFeatureDefinition []ShapeFeatureDefinition
RepresentationContext []RepresentationContext
File []File
}
type DataFormat ¶
type DataFormat struct {
ClassString string `xml:"ClassString"`
}
type Definition ¶
type Definition struct {
PropertyDefinition string `xml:"uidRef,attr"`
}
type FileLocations ¶
type FileLocations struct {
FileLocationIdentification FileLocationIdentification `xml:"FileLocationIdentification"`
}
type FormatProperty ¶
type FormatProperty struct {
XMLName xml.Name `xml:"FormatProperty"`
UID string `xml:"uid,attr"`
DataFormat DataFormat `xml:"DataFormat"`
}
type IDStruct ¶
type IDStruct struct {
ID *string `xml:"id,attr,omitempty"`
Identifier *[]IdentifierStruct
}
type IdentifierStruct ¶
type NestedOccurrence ¶
type NestedOccurrence struct {
Occurrence *Occurrence
}
type NestedShapeElement ¶
type NestedShapeElement struct {
ShapeElement *ShapeElement
}
type Occurrence ¶
type Occurrence struct {
XsiType string `xml:"xsi:type,attr"`
UID string `xml:"uid,attr"` //nolint:golint
Id *IDStruct //nolint:golint
Occurrence []NestedOccurrence `xml:"Occurrence,omitempty"`
ShapeElement []ShapeElement
Quantity *Quantity `xml:"Quantity,omitempty"`
UpperUsage UIDRef `xml:"-"`
PropertyValueAssignment *[]PropertyValueAssignment
}
type Organization ¶
type OrientationList ¶
type OrientationList struct {
Boolean *[]bool
}
type Part ¶
type Part struct {
UID string `xml:"uid,attr"`
Id IDStruct //nolint:golint
Name string `xml:"Name>CharacterString"`
PartTypes []string `xml:"PartTypes>PartCategoryEnum"`
Versions []PartVersion `xml:"Versions>PartVersion"`
}
type PartVersion ¶
type PartView ¶
type PartView struct {
XsiType *string `xml:"xsi:type,attr"`
UID string `xml:"uid,attr"` //nolint:golint
DefiningGeometry *UIDRef
Id *IDStruct //nolint:golint
InitialContext UIDRef
Occurrence []Occurrence
ShapeElement []ShapeElement
ViewOccurrenceRelationship []ViewOccurrenceRelationship
Topology *UIDRef
PropertyValueAssignment *[]PropertyValueAssignment
}
type ProductConceptStruct ¶
type ProductConceptStruct struct {
XsiType ap242xmlimport.XSIType `xml:"http://www.w3.org/2001/XMLSchema-instance type,attr"`
UID string `xml:"uid,attr"`
ClassifiedAs []UIDRef `xml:"ClassifiedAs>Classification"`
Id IDStruct //nolint:golint
Name string `xml:"Name>CharacterString"`
ProductConfiguration []ProductConfigurationStruct
}
type ProductConfigurationStruct ¶
type ProductConfigurationStruct struct {
XsiType ap242xmlimport.XSIType `xml:"http://www.w3.org/2001/XMLSchema-instance type,attr"`
UID string `xml:"uid,attr"`
ClassifiedAs []UIDRef `xml:"ClassifiedAs>Classificationr"`
Id IDStruct //nolint:golint
Name string `xml:"Name>CharacterString"`
Occurrence []Occurrence
ShapeElement []ShapeElement
}
type PropertyDefinition ¶
type PropertyValue ¶
type PropertyValueAssignment ¶
type PropertyValueAssignment struct {
UID string `xml:"uid,attr"`
AssignedPropertyValues PropertyValue `xml:"AssignedPropertyValues>PropertyValue"`
}
type Representation ¶
type Representation struct {
XsiType string `xml:"xsi:type,attr"`
UID string `xml:"uid,attr"`
Id IDStruct //nolint:golint
Items []RepresentationItem `xml:"Items>RepresentationItem"`
RepresentationRelationship []RepresentationRelationship
ExternalFile *UIDRef
}
type RepresentationContext ¶
type RepresentationContext struct {
XsiType string `xml:"xsi:type,attr"`
UID string `xml:"uid,attr"`
Id IDStruct //nolint:golint
Representations []Representation `xml:"Representations>Representation"`
Items []RepresentationItem `xml:"Items>RepresentationItem"`
DimensionCount int64 `xml:"DimensionCount,omitempty"`
}
type RepresentationItem ¶
type RepresentationItem struct {
XsiType *string `xml:"xsi:type,attr"`
UID *string `xml:"uid,attr"`
UidRef *string `xml:"uidRef,attr"`
Name *string `xml:"Name>CharacterString"`
ConnectedEdges *[]Edge `xml:"ConnectedEdges>Edge"`
Elements *[]Curve `xml:"Elements>Curve"`
ParentEdgeSet *UIDRef
// for edge
EdgeEnd *UIDRef
EdgeStart *UIDRef
// for Path
EdgeList *[]Edge `xml:"EdgeList>Edge"`
OrientationList *OrientationList
// for EdgeBoundedCurveWithLength
EdgeGeometry *UIDRef
SameSense *bool
ParentEdge *UIDRef
EdgeElement *UIDRef
Orientation *bool
// for BoundedCurveWithLength
CurveLength *float64
// for PointOnCurve
BasicCurve *UIDRef
Parameter *float64
// for VertexPoint
VertexGeometry *UIDRef
// For AxisPlacement
Axis *string
Position *string
Coordinates *string
RefDirection *string
}
type ShapeElement ¶
type ShapeElement struct {
XsiType string `xml:"xsi:type,attr"`
UID string `xml:"uid,attr"` //nolint:golint
Id *IDStruct //nolint:golint
Name *string `xml:"Name>CharacterString,omitempty"`
PartDefinition *UIDRef
RepresentedGeometry *UIDRef
ShapeElement []ShapeElement // recursive
IntendedJointType *string `xml:"IntendedJointType>TerminalJointTypeEnum,omitempty"`
InterfaceOrJoinTerminal *string `xml:"InterfaceOrJoinTerminal,omitempty"`
ShapeElementRelationship []ShapeElementRelationship
Definition *UIDRef
JointType *string `xml:"JointType,omitempty"`
ConnectedTerminals *[]UIDRef `xml:"ConnectedTerminals>PartTerminal"`
AssociatedTransportFeature *UIDRef `xml:"AssociatedTransportFeature"`
PropertyValueAssignment *[]PropertyValueAssignment
}
type ShapeFeatureDefinition ¶
type ShapeFeatureDefinition struct {
XsiType string `xml:"xsi:type,attr"`
UID string `xml:"uid,attr"`
Name string `xml:"Name>CharacterString"`
ShapeElement []ShapeElement
ShapeFeatureType *string `xml:"ShapeFeatureType"`
}
type ViewContext ¶
Click to show internal directories.
Click to hide internal directories.