Page 1 of 1

Copy/paste variable

Posted: Wed May 23, 2012 6:37 am
by jgu1
Hi all!

I would ask, is it possible to copy variables from one project to another project.

Understood in that way if I'm making a project (or mix two project) and want to copy something from another FC, I copy the program and put it in FC and the FC says that variables not existing. Is it possible perhaps, in some way first to copy the variables and then flowchart :?: :D
I am not familiare with C.

Thank´s in advance

Jorgen

Re: Copy/paste variable

Posted: Wed May 23, 2012 7:29 am
by medelec35
Hi Jorgen,
If you export a macro, all the variables within that macro will also be exported with it.
If you then use import function on your new flowchart, the variables contained within macro will also get imported,

Export & Import can be found within the macro menu.

If you want to export Main macro, then in Flowcode 5 it's made easier by using the Duplicate macro function.
Just Duplicate to a new macro called Main1 for example, export Main1.

Then on your new flowchart import Main1, highlight all the icons, cut, then paste in Main macro.

Hope this helps

Martin

Re: Copy/paste variable

Posted: Wed May 23, 2012 12:02 pm
by jgu1
Hi Martin. :D

Thank´s.

I have tested both of your suggestions. It works fine with export and import of macros. But when I look in the "properties for variables" are the characteristics have not been imported.

There must be something I still doing wrong. But what?

regard

Jorgen

Re: Copy/paste variable

Posted: Wed May 23, 2012 12:06 pm
by jgu1
jgu1 wrote:Hi Martin. :D

Thank´s.

I have tested both of your suggestions. It works fine with export and import of macros. But when I look in the "properties for variables" are the characteristics have not been imported.

There must be something I still doing wrong. But what? I tested with John Crows "simple thermometer with LM35z" I try to import it in a new project.

regard

Jorgen

Re: Copy/paste variable

Posted: Wed May 23, 2012 1:22 pm
by medelec35
I have just checked, and FC5 does not export/import like FC4 does.
You are correct, no variables gets imported at all!

So there is either a different way to do this, or there is a bug with FC5 or this method of importing variables has been deliberately removed?
Shame if the latter.
My guess is a bug?
Only Staff at Matrix can answer that question.

Martin

Re: Copy/paste variable

Posted: Wed May 23, 2012 1:30 pm
by jgu1
Ok, Martin! Thank´s for your test. I hope MM staff see this. :?: so for now, the hard way. creating variables

Jorgen

Re: Copy/paste variable

Posted: Wed May 23, 2012 1:33 pm
by JonnyW
Hi. Yes, we've seen this! As I haven't done anything specifically with the import and export for v5, I think this will be a bug. I'll take a look and let you know of anything, though its likely this will be fixed only in v5.3 which I think we will be releasing at the time of the ARM/AVR/dsPIC variants.

Cheers,

Jonny

Re: Copy/paste variable

Posted: Wed May 23, 2012 1:35 pm
by jgu1
Thank you Jonny!

Jorgen