Ejemplo n.º 1
0
#####################################
import nodeeditor
import nodeeditor.pfwrap as pfwrap
instance = pfwrap.getInstance()
gg = pfwrap.getGraphManager().getAllGraphs()[0]

_FreeCAD_ImportFile = pfwrap.createNode('PyFlowFreeCAD', 'FreeCAD_ImportFile',
                                        'FreeCAD_ImportFile')
_FreeCAD_ImportFile.setPosition(-463.0, -97.0)
gg.addNode(_FreeCAD_ImportFile)

_FreeCAD_Elevation = pfwrap.createNode('PyFlowFreeCAD', 'FreeCAD_Elevation',
                                       'FreeCAD_Elevation')
_FreeCAD_Elevation.setPosition(-292.0, -209.0)
gg.addNode(_FreeCAD_Elevation)

_FreeCAD_BSplineSurface = pfwrap.createNode('PyFlowFreeCAD',
                                            'FreeCAD_BSplineSurface',
                                            'FreeCAD_BSplineSurface')
_FreeCAD_BSplineSurface.setPosition(-77.0, -244.0)
gg.addNode(_FreeCAD_BSplineSurface)

_FreeCAD_Polygon = pfwrap.createNode('PyFlowFreeCAD', 'FreeCAD_Polygon',
                                     'FreeCAD_Polygon')
_FreeCAD_Polygon.setPosition(-266.0, 12.0)
gg.addNode(_FreeCAD_Polygon)

pfwrap.connect(_FreeCAD_ImportFile, 'points', _FreeCAD_Polygon, 'points')
pfwrap.connect(_FreeCAD_ImportFile, 'points', _FreeCAD_Elevation, 'points')
pfwrap.connect(_FreeCAD_Elevation, 'outExec', _FreeCAD_BSplineSurface,
               'inExec')
Ejemplo n.º 2
0
#cp_109

import nodeeditor.pfwrap as pfwrap
instance = pfwrap.getInstance()
gg = pfwrap.getGraphManager().getAllGraphs()[0]
_FreeCAD_Export = pfwrap.createNode('PyFlowFreeCAD', 'FreeCAD_Export',
                                    'FreeCAD_Export')
_FreeCAD_Export.setPosition(-132.0, -299.0)
gg.addNode(_FreeCAD_Export)

_FreeCAD_Import = pfwrap.createNode('PyFlowFreeCAD', 'FreeCAD_Import',
                                    'FreeCAD_Import')
_FreeCAD_Import.setPosition(99.0, -299.0)
gg.addNode(_FreeCAD_Import)

_makeString = pfwrap.createFunction('PyFlowBase', 'DefaultLib', 'makeString')
_makeString.setPosition(-205.0, -146.0)
gg.addNode(_makeString)

_FreeCAD_VectorArray = pfwrap.createNode('PyFlowFreeCAD',
                                         'FreeCAD_VectorArray',
                                         'FreeCAD_VectorArray')
_FreeCAD_VectorArray.setPosition(-365.0, -295.0)
gg.addNode(_FreeCAD_VectorArray)

_FreeCAD_View3D = pfwrap.createNode('PyFlowFreeCAD', 'FreeCAD_View3D',
                                    'FreeCAD_View3D')
_FreeCAD_View3D.setPosition(257.0, -299.0)
gg.addNode(_FreeCAD_View3D)

_makeString.setData('s', '/tmp/aa.brep')
Ejemplo n.º 3
0
#####################################
import nodeeditor
import nodeeditor.pfwrap as pfwrap
instance = pfwrap.getInstance()
gg = pfwrap.getGraphManager().getAllGraphs()[0]

_FreeCAD_VectorArray = pfwrap.createNode('PyFlowFreeCAD',
                                         'FreeCAD_VectorArray',
                                         'FreeCAD_VectorArray')
_FreeCAD_VectorArray.setPosition(-313.0, -304.0)
gg.addNode(_FreeCAD_VectorArray)

#FreeCAD_VectorArray.setData(pinname,value)

_FreeCAD_Tripod = pfwrap.createNode('PyFlowFreeCAD', 'FreeCAD_Tripod',
                                    'FreeCAD_Tripod')
_FreeCAD_Tripod.setPosition(-99.13197657830375, -389.74195706022357)
gg.addNode(_FreeCAD_Tripod)

#FreeCAD_Tripod.setData(pinname,value)

_FreeCAD_ShapePattern = pfwrap.createNode('PyFlowFreeCAD',
                                          'FreeCAD_ShapePattern',
                                          'FreeCAD_ShapePattern')
_FreeCAD_ShapePattern.setPosition(299.0, -401.0)
gg.addNode(_FreeCAD_ShapePattern)

#FreeCAD_ShapePattern.setData(pinname,value)

_FreeCAD_Dragger = pfwrap.createNode('PyFlowFreeCAD', 'FreeCAD_Dragger',
                                     'FreeCAD_Dragger')
Ejemplo n.º 4
0
# cp 110
import nodeeditor.pfwrap as pfwrap
instance = pfwrap.getInstance()
gg = pfwrap.getGraphManager().getAllGraphs()[0]
_FreeCAD_Expression = pfwrap.createNode('PyFlowFreeCAD', 'FreeCAD_Expression',
                                        'FreeCAD_Expression')
_FreeCAD_Expression.setPosition(-11.0, -208.0)
gg.addNode(_FreeCAD_Expression)

_makeInt = pfwrap.createFunction('PyFlowBase', 'DefaultLib', 'makeInt')
_makeInt.setPosition(-201.0, -191.0)
gg.addNode(_makeInt)

_makeFloat = pfwrap.createFunction('PyFlowBase', 'DefaultLib', 'makeFloat')
_makeFloat.setPosition(-241.0, -129.0)
gg.addNode(_makeFloat)

_makeInt1 = pfwrap.createFunction('PyFlowBase', 'DefaultLib', 'makeInt')
_makeInt1.setPosition(-238.0, -12.0)
gg.addNode(_makeInt1)

pfwrap.connect(_makeInt, 'out', _FreeCAD_Expression, 'a')
pfwrap.connect(_makeFloat, 'out', _FreeCAD_Expression, 'b')
pfwrap.connect(_makeFloat, 'out', _FreeCAD_Expression, 'c')
pfwrap.connect(_makeInt1, 'out', _FreeCAD_Expression, 'd')

_makeInt.setData('i', 100)
_makeInt.setData('i', 50)
_makeFloat.setData('f', 10.10)

_FreeCAD_Expression.setData('modules', 'time')
Ejemplo n.º 5
0
import nodeeditor
import nodeeditor.pfwrap as pfwrap
instance = pfwrap.getInstance()
gg = pfwrap.getGraphManager().getAllGraphs()[0]

_FreeCAD_VectorArray = pfwrap.createNode('PyFlowFreeCAD',
                                         'FreeCAD_VectorArray',
                                         'FreeCAD_VectorArray')
_FreeCAD_VectorArray.setPosition(-228.6921223730601, -215.2858684530729)
gg.addNode(_FreeCAD_VectorArray)

#FreeCAD_VectorArray.setData(pinname,value)

_FreeCAD_QuadMesh = pfwrap.createNode('PyFlowFreeCAD', 'FreeCAD_QuadMesh',
                                      'FreeCAD_QuadMesh')
_FreeCAD_QuadMesh.setPosition(-88.19496953179734, -92.19081735231327)
gg.addNode(_FreeCAD_QuadMesh)

#FreeCAD_QuadMesh.setData(pinname,value)

_FreeCAD_View3D = pfwrap.createNode('PyFlowFreeCAD', 'FreeCAD_View3D',
                                    'FreeCAD_View3D')
_FreeCAD_View3D.setPosition(-76.51980075617351, -259.0598351580601)
gg.addNode(_FreeCAD_View3D)

#FreeCAD_View3D.setData(pinname,value)

pfwrap.connect(_FreeCAD_VectorArray, 'Shape_out', _FreeCAD_View3D, 'Shape_in')
pfwrap.connect(_FreeCAD_VectorArray, 'vectors_out', _FreeCAD_QuadMesh,
               'points')
nodeeditor.Commands.refresh_gui()