This is a new post because the logic is different here i am no longer using custom property here unlike my old question
So i am trying to understand the particle replacement API where i have a chain of fibers forming my implementation is working for one particular diameter
Please tell me if this is the sequence that API follows
I have a separate factory called create particle it will create one particle here say it generates 4 particles
First the control comes to
CReplacementFactory.cpp -> CReplacementFactory::createParticle
This function will create a list called as ParticleList once this function is executed a list will be ready that will have the information of the particle chain template i am trying to create.
Next the control flows to CRemoval.cpp->CRemoval::externalForce
In this if the conditions of the if statement are met m_particleManager will mark the particles of interest
Now the flow will move to
CRemoval::processParticleOfInterest
where it will create the new particle cluster and generate the particles in this function then remove the old particle.
If this is the sequence
Now i am trying a different logic I am creating the particle type as type 2 when i create the particle itself in the particle factory. And the good thing is in the debugger i see that a new particle was created in CReplacementFactory.cpp and also in the CRemoval.cpp but when the execution completes the second particle does not get populated. I have defined it as a particle made of same material. I even tried calling it as different material even that did not work (note i defined all interactions)
in your API of particle replacement what i cant understand is this what is the purpose of this function?

in the Cremove:external force, i have changed this

And also in the new type i can see the new bead type name appear

But it is not processing the new type why would this happen? please let me know