p21

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

import STEP file in p21/stp format containing AP242 data (ISO 10303-242) into SST

Index

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 SSTToStepExport(sstFileName *bufio.Reader)

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 CartesianPoint

type CartesianPoint struct {
	Count int
	Type  string
	Id    string
	Value []string
}

type DefinedType

type DefinedType struct {
	ExpressObject
}

type Direction

type Direction struct {
	Count int
	Type  string
	Id    string
	Value []string
}

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 FileDescription struct {
	Description         string
	ImplementationLevel string
}

type FileName

type FileName struct {
	Name                string
	TimeStamp           string
	Author              []string
	Organization        string
	PreprocessorVersion string
	OriginatingSystem   string
	Authorization       string
}

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 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 OntologyType

type OntologyType int
const (
	MainClass OntologyType = iota
	ObjectProperty
)

type Product

type Product struct {
	Count   int
	Type    string
	Id      string
	Name    string
	Comment string
	Ref     string
}

type ProductContext

type ProductContext struct {
	Count       int
	Type        string
	Id          string
	Name        string
	Ref         string
	ContextText string
}

type ProductDefinition

type ProductDefinition struct {
	Count   int
	Type    string
	Id      string
	Name    string
	Comment string
	Ref_1   string
	Ref_2   string
}

type ProductDefinitionContext

type ProductDefinitionContext struct {
	Count   int
	Id      string
	Type    string
	Name    string
	Comment string
	Ref     string
}

type ProductDefinitionFormation

type ProductDefinitionFormation struct {
	Count   int
	Type    string
	Id      string
	Name    string
	Comment string
	Ref     string
}

type ProductDefinitionShape

type ProductDefinitionShape struct {
	Count   int
	Type    string
	Id      string
	Name    string
	Comment string
	Ref     string
}

type RawAttributeValues

type RawAttributeValues struct {
	MixedValues []interface{}
	// contains filtered or unexported fields
}

type RepresentationContext

type RepresentationContext struct {
	Count     int
	Type      string
	Dimension int
}

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

type TreeNode struct {
	Value    sst.Term
	Children []*TreeNode
}

TreeNode is a structure that will represent either an individual IBNode or a collection of TreeNodes

type UniformCurve

type UniformCurve struct {
	Count         int
	Type          string
	Id            string
	Degree        int
	ControlPoints []CartesianPoint
	SelfIntersect bool
	ClosedCurve   bool
}

Jump to

Keyboard shortcuts

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