Divooka Reference

Constraint Files

3 nodes

On this page 3

Export

Function

Exports the model's solid as STL, OBJ, OFF, faceted STEP, glTF binary (.glb) or 3MF, chosen by the extension.

Signature
Export(model: Constraint Model, path: Text)
void Export(ConstraintModel model, string path)

Parameters

nametypedefaultdescription
modelConstraint Model—
pathText—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Constraint Files
Package
CAD

Open

Function

Opens a Kerf model (.kerf) or a SolveSpace model (.slvs) and solves it. Linked parts are resolved beside the file.

Signature
Open(path: Text) -> Constraint Model
ConstraintModel Open(string path)

Parameters

nametypedefaultdescription
pathText—

Returns

resultConstraint Model
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Constraint Files
Package
CAD

Save

Function

Saves a model as a Kerf document (.kerf) or a SolveSpace file (.slvs) that SolveSpace 3.1 opens.

Signature
Save(model: Constraint Model, path: Text)
void Save(ConstraintModel model, string path)

Parameters

nametypedefaultdescription
modelConstraint Model—
pathText—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Constraint Files
Package
CAD