Solved: Replace component: how to?

For general Flowcode discussion that does not belong in the other sections.
Post Reply
MJU20
Posts: 366
http://meble-kuchenne.info.pl
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 105 times
Been thanked: 74 times

Flowcode v10 Solved: Replace component: how to?

Post by MJU20 »

Hey there,

I have a FC10 project that currently uses an ILI9341 display.
I would like to replace it with an ILI9388 display.

I assumed that, by following this guide:
https://www.flowcode.co.uk/wiki/index.p ... _Component

I could simply replace the component and have all associated component macros automatically updated to the new component.

However, this does not seem to work as expected.

While I can indicate that the old component should be replaced by the new one, the settings from the original component are not transferred. Additionally, the existing component macros are not updated or converted to match the new component.

Am I missing a step, or is this functionality not fully supported?

Thanks in advance.
Last edited by MJU20 on Fri Apr 10, 2026 5:13 pm, edited 1 time in total.

Steve-Matrix
Matrix Staff
Posts: 1824
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 263 times
Been thanked: 421 times

Re: Replace component: how to?

Post by Steve-Matrix »

That should work ok. I'll try this when I get a chance and try to find out what is going wrong

medelec35
Valued Contributor
Posts: 2273
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 699 times
Been thanked: 768 times

Re: Replace component: how to?

Post by medelec35 »

Hello.
If I recall correctly, you can only replace a component if all the component functions have the same name and component exists.
In this case I can't see within component Library ILI9388
Have you got the correct part number?
If you are referring to ILI9488 then that does replace OK by the looks of it, in the test Project I created.
I'm happy to convert your project for you if you are facing issues.
You can PM your project if it is sensitive and wish it to remain private.
Martin

mnfisher
Valued Contributor
Posts: 1913
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 155 times
Been thanked: 900 times

Re: Replace component: how to?

Post by mnfisher »

... I posted a python script that does this at viewtopic.php?t=3279&hilit=Replace+component

It's not as smart - so you might need to tweak parameters afterwards - but it does work...

Martin

MJU20
Posts: 366
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 105 times
Been thanked: 74 times

Solved: Replace component: how to?

Post by MJU20 »

I've tried a few times and it succeeded.

I think my problem was that I kept looking at the handle of the component.
The problem has been solved.

But this doesn't mean that this function can't be improved.
Maybe the replace function could be expanded by clicking on a component and get a list of other components that are available in FC as an option to replace the current component with.

But again, this function has saved me a few hours of finding all the places this component was used!

Post Reply