Import Macro

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
User avatar
Alan_37
Posts: 179
Joined: Sun May 01, 2016 8:36 pm
Has thanked: 51 times
Been thanked: 54 times

Import Macro

Post by Alan_37 »

Hi

I have a problem importing a Macro that have the same variables names .
In V5 i could just click to use the same global variable name , but in V7
there is no option to do it .

These are global variables that i use in multiple macros and will not conflict

Is there any work around for this ? , i am stuck can't continue :(

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Import Macro

Post by Benj »

Hello,

I've just tried this with two macros both using a global variable and the macros are both importing ok into a new program.

Are the macros your trying to import v5 exported macros? If so then can you load a project containing the macros in v7 and then export from v7.

Hopefully this will solve the problem for you.

User avatar
Alan_37
Posts: 179
Joined: Sun May 01, 2016 8:36 pm
Has thanked: 51 times
Been thanked: 54 times

Re: Import Macro

Post by Alan_37 »

Hi Benj

Thanks for your reply , i did not import in a new flowcode file , the variable name was already used .
Also the macro was exported using Flowcode 7 .

first I get a window saying that there is a variable conflict and to click yes to change the name
in the example below it's only 1 variable so it's not a big problem .

I managed to get around by renaming the variables , than after import changing all variables to the one's
i originally wanted and delete the new ones.

But in v5 it was much easy, there was a button to use the same variable name .
Attachments
var1.png
(5.18 KiB) Downloaded 3645 times
var2.png
(7.43 KiB) Downloaded 3645 times

User avatar
Alan_37
Posts: 179
Joined: Sun May 01, 2016 8:36 pm
Has thanked: 51 times
Been thanked: 54 times

Re: Import Macro

Post by Alan_37 »

Hi

Is there a specific reason why Use Existing Variable button has been Removed in V7 ?

User avatar
Alan_37
Posts: 179
Joined: Sun May 01, 2016 8:36 pm
Has thanked: 51 times
Been thanked: 54 times

Re: Import Macro

Post by Alan_37 »

It seems that no one wants to answer my question and it's not a complicated one !

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times

Re: Import Macro

Post by LeighM »

Hi,
Are the project global and the imported macro variables of the same type?
I would suspect that they are not, and that this is the reason that you are being forced to rename the imported one.
Hope that helps,
Leigh

User avatar
Alan_37
Posts: 179
Joined: Sun May 01, 2016 8:36 pm
Has thanked: 51 times
Been thanked: 54 times

Re: Import Macro

Post by Alan_37 »

Hi Leigh

OK so now I have an Answer to my question, Flowcode should Automatically use the same variable that is why the
button has been removed OK.


So No the variables are of the same type 100% sure , But i finally found what is causing this
if in the main program the variables have an Initial Value set , Flowcode will force you to rename
it that is why it was tricky to see the problem .

below I attache an fcfx file and a test macro try to import and see what happens than check the variables .

Thanks
Attachments
Test.fcm
(1.88 KiB) Downloaded 300 times
Flowcode1.fcfx
(5.72 KiB) Downloaded 303 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times

Re: Import Macro

Post by LeighM »

Thanks for the further investigation and info.
I'll add this issue to our internal bug tracker.
Thanks,
Leigh

Post Reply