Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanLibraryCache ¶
func CleanLibraryCache() error
CleanLibraryCache compares the libraries on disk to the ones we have configured. It then removes any on disk from the cache that aren't present in the config.
If there are any libaries in the config that don't exist on disk, they are removed from the config.
func ImportLibrary ¶
func IsValidLibrary ¶
Types ¶
type CuttingData ¶
type CuttingData struct { GUID string Name string FeedPerRevolution float64 `json:"f_n"` FeedPerTooth float64 `json:"f_z"` SpindleSpeed float64 `json:"n"` RampSpindleSpeed float64 `json:"n_ramp"` ToolCoolant string `json:"tool-coolant"` UseStepdown bool `json:"use-stepdown"` UseStepover bool `json:"use-stepover"` SurfaceSpeed float64 `json:"v_c"` CuttingFeedrate float64 `json:"v_f"` LeadInFeedrate float64 `json:"v_f_leadIn"` LeadOutFeedrate float64 `json:"v_f_leadOut"` PlungeFeedrate float64 `json:"v_f_plunge"` RampFeedrate float64 `json:"v_f_ramp"` }
type Endmill ¶
type Endmill int
const ( EndmillUnknown Endmill = iota EndmillBall // Ball end mill EndmillBullNose // Bull nose end mill EndmillEngraveChamfer // Engrave/Chamfer mill EndmillDovetail // Dovetail mill EndmillFace // Face mill EndmillFlat // Flat end mill EndmillForm // Form mill EndmillLollipop // Lollipop mill EndmillRadius // Radius mill EndmillSlot // Slot mill EndmillTapered // Tapered mill EndmillThread // Thread mill )
func (*Endmill) FromString ¶
func (Endmill) MarshalJSON ¶
func (*Endmill) UnmarshalJSON ¶
type Library ¶
func LoadLibrary ¶
type Material ¶
type Material int
func (*Material) FromString ¶
func (Material) MarshalJSON ¶
func (*Material) UnmarshalJSON ¶
type Tool ¶
type Tool struct { Material Material `json:"BMC"` Description string `json:"description"` GUID string `json:"guid"` LastModified int `json:"last_modified"` PostProcess struct { BreakControl bool `json:"break-control"` Comment string `json:"comment"` DiameterOffset int `json:"diameter-offset"` LengthOffset int `json:"length-offset"` Live bool `json:"live"` ManualToolChange bool `json:"manual-tool-change"` Number int `json:"number"` Turret int `json:"turret"` } `json:"post-process"` ProductID string `json:"product-id"` ProductLink string `json:"product-link"` ReferenceGUID string `json:"reference_guid"` StartValues struct { Presets []CuttingData `json:"presets"` } `json:"start-values"` Vendor string `json:"vendor"` Type Endmill `json:"type"` Unit string `json:"unit"` Geometry struct { Diameter float64 `json:"DC"` ShaftDiameter float64 `json:"SFDM"` OverallLength float64 `json:"OAL"` LengthBelowHolder float64 `json:"LB"` ShoulderLength float64 `json:"shoulder-length"` FluteLength float64 `json:"LCF"` FluteCount int `json:"NOF"` CounterClockwiseRotation bool `json:"HAND"` } `json:"geometry"` Shaft struct { Segments []struct { Height float64 `json:"height"` UpperDiamater float64 `json:"upper-diamater"` LowerDiameter float64 `json:"lower-diameter"` } `json:"segments"` Type string `json:"type"` } `json:"shaft"` }
Click to show internal directories.
Click to hide internal directories.