@@ -14,22 +14,14 @@ You should have received a copy of the GNU General Public License
14
14
along with this program. If not, see <http://www.gnu.org/licenses/>.*/
15
15
16
16
using System ;
17
- using System . Collections ;
18
- using System . Collections . Generic ;
19
- using System . Diagnostics ;
20
- using System . IO ;
21
17
using System . Linq ;
22
- using System . Windows . Forms ;
23
18
using Dynamo . Connectors ;
24
- using Dynamo . Nodes ;
25
- using Dynamo . Utilities ;
26
19
using Microsoft . FSharp . Collections ;
27
- using RobotOM ;
28
- using Dynamo . FSchemeInterop ;
20
+ using Dynamo . Analysis ;
29
21
30
22
using Value = Dynamo . FScheme . Value ;
31
23
32
- namespace Dynamo . Analysis
24
+ namespace Dynamo . Nodes
33
25
{
34
26
//static List<int> m_failedNodes = new List<int>();
35
27
//static List<int> m_failedBars = new List<int>();
@@ -108,23 +100,15 @@ public class DynamoRobotEngine : dynNodeWithOneOutput
108
100
{
109
101
public DynamoRobotEngine ( )
110
102
{
111
- InPortData . Add ( new PortData ( "nodes" , "The point(s) from which to define analytical nodes." , typeof ( object ) ) ) ;
112
- InPortData . Add ( new PortData ( "bars" , "The curves from which to define analytical bars." , typeof ( object ) ) ) ;
113
- InPortData . Add ( new PortData ( "plates" , "The faces from which to define analytical plates." , typeof ( object ) ) ) ;
114
- InPortData . Add ( new PortData ( "path" , "The path to the results file." , typeof ( string ) ) ) ;
115
- OutPortData . Add ( new PortData ( "results" , "The analytical results." , typeof ( object ) ) ) ;
103
+ OutPortData . Add ( new PortData ( "eng" , "The Robot Structural Analysis engine." , typeof ( object ) ) ) ;
116
104
117
105
NodeUI . RegisterAllPorts ( ) ;
118
-
119
106
}
120
107
121
108
public override FScheme . Value Evaluate ( FSharpList < FScheme . Value > args )
122
109
{
123
- var nodes = ( args [ 0 ] as Value . List ) . Item ;
124
- var bars = ( args [ 1 ] as Value . List ) . Item ;
125
- var plates = ( args [ 2 ] as Value . List ) . Item ;
126
-
127
- throw new NotImplementedException ( ) ;
110
+ RobotEngine engine = new RobotEngine ( ) ;
111
+ return Value . NewContainer ( engine ) ;
128
112
}
129
113
}
130
114
0 commit comments