Search found 71 matches

by jdtoellner
Fri Oct 21, 2016 12:28 pm
Forum: SMILE
Topic: User Properties
Replies: 3
Views: 6736

Re: User Properties

Thanks!!

(Could I have figured this out by searching the ".h" files?)
by jdtoellner
Fri Oct 21, 2016 3:07 am
Forum: SMILE
Topic: User Properties
Replies: 3
Views: 6736

User Properties

How does one set user properties in a node?
by jdtoellner
Thu Oct 20, 2016 12:02 am
Forum: SMILE
Topic: Cloning a node
Replies: 2
Views: 5975

Re: Cloning a node

This is very cool.

I actually wanted to copy a node without the arcs.

Thanks for the post.
by jdtoellner
Tue Oct 18, 2016 1:29 am
Forum: SMILE
Topic: Cloning a node
Replies: 2
Views: 5975

Cloning a node

What's the best way to copy a node?

Under the Introduction to Some Simple Classes: General Copy Functions I read about the clone function. Is that the best way?
by jdtoellner
Sat Oct 08, 2016 12:21 am
Forum: SMILE
Topic: Submodels in smile
Replies: 3
Views: 7238

Re: Submodels in smile

If I wanted to change the position of the submodel node would I do it this way?

Code: Select all

net.GetSubmodelHandler().GetSubmodel(hSub)->windowpos.center_X = 100;
net.GetSubmodelHandler().GetSubmodel(hSub)->windowpos.center_Y = 100;
(I tried this and it didn't appear to work.)
by jdtoellner
Fri Oct 07, 2016 10:08 pm
Forum: SMILE
Topic: Creating a network from a CSV file
Replies: 6
Views: 8783

Re: Creating a network from a CSV file

Thanks for the pointers. Here's better code. (Some of this, I'll admit, is a bit clumsy . . . but it works.) // ImportFromCSV.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "smile.h" #include "smilearn.h" #include <fstream> #i...
by jdtoellner
Thu Oct 06, 2016 6:12 pm
Forum: GeNIe
Topic: Can colours of bars in bar chart view of nodes be changed?
Replies: 2
Views: 3455

Re: Can colours of bars in bar chart view of nodes be changed?

I don't believe you can.

For what it's worth, I've submitted this as a suggestion.
by jdtoellner
Wed Oct 05, 2016 11:14 pm
Forum: SMILE
Topic: MakeValidId
Replies: 1
Views: 5379

MakeValidId

Does MakeValidID fix a character array in place?

I tried this and it aborted:

Code: Select all

					char * testID = "999 This is a test";
					int status = theNet.Header().MakeValidId(testID);
by jdtoellner
Wed Oct 05, 2016 9:14 pm
Forum: SMILE
Topic: Creating a network from a CSV file
Replies: 6
Views: 8783

Re: Creating a network from a CSV file

I'll give that a try.

Which include file do I need for DSL_dataset and DSL_datasetParseParams?

I'm including "smile.h" and they're undefined.

I tried including "dataset.h" but got linker errors.
by jdtoellner
Tue Oct 04, 2016 10:56 pm
Forum: SMILE
Topic: Creating a network from a CSV file
Replies: 6
Views: 8783

Re: Creating a network from a CSV file

No I hadn't thought of using ReadFile. Let me look into that.

Where can I find documentation?

(I searched the .h files. Information there is sparse. The wiki doesn't appear to say much about using ReadFile to read CSV files.)
by jdtoellner
Mon Oct 03, 2016 11:16 pm
Forum: SMILE
Topic: Creating a network from a CSV file
Replies: 6
Views: 8783

Creating a network from a CSV file

I wrote a program that reads a CSV file and creates nodes in a simple network. I need this for a project I'm working on. I'm not creating arcs yet. That will come soon. (I've attached a CSV file. You'll have to change the extension to "CSV". This form wouldn't let me attach it as a csv fil...