Created by: rastart
new nodes (exchange)
FCStd read - import parts from single or multiple freecad project files filter by name feature
FCStd read Sketches - import Sketches from single or multiple freecad project files filter by Sketches name
FCStd write - write solid or mesh parts in a single freecad project file
FCStd Spreadsheet - read/write parameter from a freecad spreadsheet
Approximate Subd to Nurbs - convert an obj (with subd modifier) to NURBS
FCStd read features
filter by name -dropdown enum list select the part to be imported
read_update -bool enable/disable reading
read_body -bool enable/disable reading freecad Body
read_body -bool enable/disable reading freecad Parts
tool_parts -bool enable/disable reading freecad parts/features inside a solid operation or body ( it read just the final output)
invert filter -bool invert filter selection
input-> file path -path input-> part list -string (OPTIONAL: part labes in string list format) output-> -solid
FCStd Sketch read features
mode -dropdown enum list read mode: only geometry , only construction geometry, both
filter by name -dropdown enum list select the sketch to be imported
max_points -int parameter to resample the geometry by set max points in relation the the max geometry curve length
invert filter -bool invert filter selection
read_update -bool enable/disable reading
input-> file path -path input-> part list -string (OPTIONAL: part labes in string list format) output-> -verts output-> -edges outputs-> -curve
FCStd write features
write_name -string
name of the part(s) to be written
a suffix _SV_
and a numeration will be added to the name
to avoid delete erroneusly parts in the freecad project.
The writed parts will be overwrited on node update.
format -enum select mesh or solid format
write_update -bool enable/disable writing
input-> file path -path
solid mode: input-> -solid mesh mode: input-> -verts input-> -faces
FCStd Spreadsheet
filter Spreadsheets by name -dropdown enum list select the freecad Spreadsheet
filter Spreadsheets cell by alias -dropdown enum list select the freecad cell alias in the selected Spreadsheet
write parameter set the node to write mode
input-> file path -path input-> cell in -float output-> cell out -float
important
Code tested both in blender 2.93 (py3.9) and freecad 0.2 (py3.9) More tests required to ensure safe usability.
-
FCStd read node: needs label list input to filter parts -
FCStd Sketch read node: need testing, complete curve translation and a better label... -
FCStd read node: write dropdown freecadpart list node -
FCStd spreadsheet node: read / write mode -
code refactoring -
fix for blender 2.93 / freecad 0.20 py3.9 -
add an update button -
Approximate Subd to Nurbs node added -
Approximate Subd to Nurbs node sorting algorithm improving -
Approximate Subd to Nurbs node debugging -
nodes review / testing -
add docs -
ready to merge