Skip to content

Commit 44402ab

Browse files
committed
Cleanup.
1 parent 94e79f3 commit 44402ab

File tree

2 files changed

+8
-21
lines changed

2 files changed

+8
-21
lines changed

src/DynamoBot.cs

+5-21
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,14 @@ You should have received a copy of the GNU General Public License
1414
along with this program. If not, see <http://www.gnu.org/licenses/>.*/
1515

1616
using System;
17-
using System.Collections;
18-
using System.Collections.Generic;
19-
using System.Diagnostics;
20-
using System.IO;
2117
using System.Linq;
22-
using System.Windows.Forms;
2318
using Dynamo.Connectors;
24-
using Dynamo.Nodes;
25-
using Dynamo.Utilities;
2619
using Microsoft.FSharp.Collections;
27-
using RobotOM;
28-
using Dynamo.FSchemeInterop;
20+
using Dynamo.Analysis;
2921

3022
using Value = Dynamo.FScheme.Value;
3123

32-
namespace Dynamo.Analysis
24+
namespace Dynamo.Nodes
3325
{
3426
//static List<int> m_failedNodes = new List<int>();
3527
//static List<int> m_failedBars = new List<int>();
@@ -108,23 +100,15 @@ public class DynamoRobotEngine : dynNodeWithOneOutput
108100
{
109101
public DynamoRobotEngine()
110102
{
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)));
116104

117105
NodeUI.RegisterAllPorts();
118-
119106
}
120107

121108
public override FScheme.Value Evaluate(FSharpList<FScheme.Value> args)
122109
{
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);
128112
}
129113
}
130114

src/DynamoBot.csproj

+3
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,15 @@
6161
<ItemGroup>
6262
<Reference Include="DragCanvas">
6363
<HintPath>..\..\Dynamo\bin\Debug\DragCanvas.dll</HintPath>
64+
<Private>False</Private>
6465
</Reference>
6566
<Reference Include="DynamoElements">
6667
<HintPath>..\..\Dynamo\bin\Debug\DynamoElements.dll</HintPath>
68+
<Private>False</Private>
6769
</Reference>
6870
<Reference Include="FScheme">
6971
<HintPath>..\..\Dynamo\bin\Debug\FScheme.dll</HintPath>
72+
<Private>False</Private>
7073
</Reference>
7174
<Reference Include="FSchemeInterop">
7275
<HintPath>..\..\Dynamo\bin\Debug\FSchemeInterop.dll</HintPath>

0 commit comments

Comments
 (0)