ap242xmlexport

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: None detected not legal advice Imports: 0 Imported by: 0

Documentation

Overview

export SST data to STEP AP242 XML data (ISO 10303-242)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AP242XmlExport

func AP242XmlExport(graph sst.NamedGraph, xmlfile io.Writer) error

Types

type Address

type Address struct {
	City, State string
}

type ClassStruct

type ClassStruct struct {
	UID string `xml:"uid,attr"`
}

type Curve

type Curve struct {
	UidRef string `xml:"uidRef,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 Edge

type Edge struct {
	UidRef string `xml:"uidRef,attr"`
}

type File

type File struct {
	XMLName       xml.Name      `xml:"File"`
	UID           string        `xml:"uid,attr"`
	XsiType       string        `xml:"xsi:type,attr"`
	Format        UIDRef        `xml:"FileFormat"`
	FileLocations FileLocations `xml:"FileLocations"`
}

type FileLocationIdentification

type FileLocationIdentification struct {
	UID        string `xml:"uid,attr"`
	SourceId   string `xml:"SourceId"`
	SourceType string `xml:"SourceType"`
}

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 Header struct {
	Name                *string `xml:"Name"`
	TimeStamp           *string `xml:"TimeStamp"`
	Organization        *string `xml:"Organization"`
	PreprocessorVersion *string
}

type IDStruct

type IDStruct struct {
	ID         *string `xml:"id,attr,omitempty"`
	Identifier *[]IdentifierStruct
}

type IdentifierStruct

type IdentifierStruct struct {
	UID          string `xml:"uid,attr"`
	ID           string `xml:"id,attr"`
	IdContextRef string `xml:"idContextRef,attr"` //nolint:golint
	IdRoleRef    string `xml:"idRoleRef,attr"`    //nolint:golint
}

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 Organization struct {
	UID  string   `xml:"uid,attr"`
	Id   IDStruct //nolint:golint
	Name string   `xml:"Name>CharacterString"`
}

type OrientationList

type OrientationList struct {
	Boolean *[]bool
}

type Origin

type Origin struct {
	UidRef        *string  `xml:"uidRef,attr"`
	Path          []UIDRef `xml:"Path"`
	Edge          []UIDRef `xml:"Edge"`
	Vertex        []UIDRef `xml:"Vertex"`
	AxisPlacement []UIDRef `xml:"AxisPlacement"`
}

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 PartVersion struct {
	UID   string     `xml:"uid,attr"`
	Id    IDStruct   //nolint:golint
	Views []PartView `xml:"Views>PartView"`
	// contains filtered or unexported fields
}

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 Placement

type Placement struct {
	XMLName xml.Name
	UIDRef  string `xml:"uidRef,attr"`
}

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 PropertyDefinition struct {
	XsiType      string   `xml:"xsi:type,attr"`
	UID          string   `xml:"uid,attr"`
	Id           IDStruct //nolint:golint
	PropertyType string   `xml:"PropertyType>ClassString"`
}

type PropertyValue

type PropertyValue struct {
	XMLName        xml.Name `xml:"PropertyValue"`
	XSIType        string   `xml:"xsi:type,attr"`
	UID            string   `xml:"uid,attr"`
	Unit           UnitDef  `xml:"Unit"`
	ValueComponent float64  `xml:"ValueComponent"`
}

type PropertyValueAssignment

type PropertyValueAssignment struct {
	UID                    string        `xml:"uid,attr"`
	AssignedPropertyValues PropertyValue `xml:"AssignedPropertyValues>PropertyValue"`
}

type Quantity

type Quantity struct {
	XsiType        string `xml:"xsi:type,attr"`
	UID            string `xml:"uid,attr"` //nolint:golint
	Unit           *UIDRef
	ValueComponent float64 `xml:"ValueComponent"`
}

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 RepresentationRelationship

type RepresentationRelationship struct {
	XsiType      string `xml:"xsi:type,attr"`
	UID          string `xml:"uid,attr"` //nolint:golint
	Definitional string `xml:"Definitional"`
	Related      UIDRef
	Origin       *Origin `xml:"Origin"`
	Target       *Target `xml:"Target"`
}

type Result

type Result struct {
	XMLName           xml.Name `xml:"n0:Uos"`
	XmlnsXsi          string   `xml:"xmlns:xsi,attr"`
	XmlnsCmn          string   `xml:"xmlns:cmn,attr"`
	XmlnsN0           string   `xml:"xmlns:n0,attr"`
	XsiSchemaLocation string   `xml:"xsi:schemaLocation,attr"`
	Header            Header
	DataContainer     DataContainer
}

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 ShapeElementRelationship

type ShapeElementRelationship struct {
	XsiType string `xml:"xsi:type,attr"`
	UID     string `xml:"uid,attr"` //nolint:golint
	Related *UIDRef
}

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 StepData

type StepData struct {
	ID     int
	Type   string
	Label  string
	Points []float64
}

type Target

type Target struct {
	UidRef        *string  `xml:"uidRef,attr"`
	Edge          []UIDRef `xml:"Edge"`
	Path          []UIDRef `xml:"Path"`
	Vertex        []UIDRef `xml:"Vertex"`
	AxisPlacement []UIDRef `xml:"AxisPlacement"`
}

type UIDRef

type UIDRef struct {
	Ref *string `xml:"uidRef,attr,omitempty"`
}

type Unit

type Unit struct {
	UID string `xml:"uid,attr"`
	// Id        IDStruct //nolint:golint
	Name     string `xml:"Name>ClassString"`
	Quantity string `xml:"Quantity>ClassString"`
}

type UnitDef

type UnitDef struct {
	UID string `xml:"uidRef,attr"`
}

type ViewContext

type ViewContext struct {
	UID               string `xml:"uid,attr"`
	ApplicationDomain string `xml:"ApplicationDomain>PredefinedApplicationDomainEnum"`
	LifeCycleStage    string `xml:"LifeCycleStage>ProxyString"`
}

type ViewOccurrenceRelationship

type ViewOccurrenceRelationship struct {
	XsiType      string `xml:"xsi:type,attr"`
	UID          string `xml:"uid,attr"` //nolint:golint
	Related      UIDRef
	RelationType *string    `xml:"RelationType>ClassString,omitempty"`
	Placement    *Placement `xml:"Placement>placement"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL