Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Check if a method is used in any object

Creator
Creator

HI Everyone,

What will be the best way to check where (in which object) is a particular Method used?

Regards

Bhaiya

3 REPLIES 3

Betreff: Check if a method is used in any object

Phenom
Phenom

I would create a table and a method. Every method can call the method and increment in the table the call.

You also can add in a subtable the caller and the simtime. Make it optional, i.e. with checkbox due to performance.

Don't forget to delete the content of the table in reset.

__________________________________
Have a look in the help before asking.
EDAG-PS: https://www.edag-ps.de/

Betreff: Check if a method is used in any object

Gears Phenom Gears Phenom
Gears Phenom

That depends on what you want to do exactly. For "manual" analysis I would recommend using the "Object search" (select "basis/." in the class library and press F3 or right-click > "Object search"), then select "Source code" and tick the box "Ignore inherited content", and search for the name of the method.

___________________________________________________________
Alex Dilg, Consultant at SimPlan AG (www.SimPlan.de)
This post was good and/or helpful to you? Please provide some Kudos, thank you!

Betreff: Check if a method is used in any object

Creator
Creator

Thanks Alex. I was exactly looking for this solution.

I also found another solution by mistake. I renamed a method, but forgot to update the name in each object where the method was used. So when I started the simulation, I got an error.

Regards

Bhaiya