Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FileTypeSpw is an .spw file type FileTypeSpw = FileType(5) )
Variables ¶
View Source
var ( ErrInvalidFilePath = errors.New("kompas file path is not valid") ErrInvalidFileType = errors.New("unknown or disabled kompas file type given") )
Package errors
Functions ¶
This section is empty.
Types ¶
type FileInfo ¶
type FileInfo struct { Author string Comment string FileType FileType AppVersion version.Version CreatedAt time.Time UpdatedAt time.Time }
FileInfo is a data from the Kompas' FileInfo ini file
type FileType ¶
type FileType int
FileType is a Kompas 3d file type
func NewFileType ¶
NewFileType creates new FileType if typeCode is valid
type MetaInfo ¶
type MetaInfo struct {
SpcStructSections SpcStructSections
}
MetaInfo is a parsed content of the Kompas' MetaInfo file
type SpcObject ¶
type SpcObject struct { ID string `example:"374729415333.000000"` Text string `example:"УПИГ-01.000-32 Рама"` Columns []*SpcObjectColumn AdditionalColumns []*SpcObjectColumn }
type SpcObjectColumn ¶
type SpcStructSection ¶
SpcStructSection is a one section of the SpcStructSections
type SpcStructSections ¶
type SpcStructSections []*SpcStructSection
SpcStructSections is a parsed struct of the spcStruct part of the Kompas' xml
Source Files ¶
Click to show internal directories.
Click to hide internal directories.