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

Find Object AnyWhere in the Model

Legend
Legend

Hi all,

 

I would like to know if it is possible to find on object in the whole project/model.

I have SingleProcs duplicated as Workstation template. This template has methods IN and OUT included.

Once I instance this workstation I always have the same code everywhere.

 

If I search for an object it only gives what it found in the main frame and the methods which are located here.

I can select ".MaterialFlow" where I have duplicate my workstation template, but there will be no search result.

 

Kind regards

Marco

 

11 REPLIES 11

Re: Find Object AnyWhere in the Model

Phenom
Phenom

Yes,  s. example

 

The station object has been derived in frame and sub frame1

 

Unbenannt.PNG

Re: Find Object AnyWhere in the Model

Legend
Legend

Sorry, but I don't know understand what you mean.

I like to take a variable name from any object, go to 'General' 'Find Object", past it here, press Find and get all locations where it is used.

 

Re: Find Object AnyWhere in the Model

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
if you want to find you Method in you should start in the top-frame (in the Class library) --> find object

If you want to find an object --> your class in the class library --> show inheritance (and you have all objects in every frame)
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Find Object AnyWhere in the Model

Legend
Legend

Hi Steffen,

 

I want to find where (method) a variable is changed.

Ex: I have a global variable in the frame and like to search this kind of instuction changing the value "iVarName :=".

There is "SingleProc" duplicated to be used as template for workstations. This workstation template has an IN and OUT control method.

Your are right I can list all instances of this workstation, but that is not what I am looking for.

 

I am used to have a global search in other software editors.

 

 

Regards

Marco

 

Re: Find Object AnyWhere in the Model

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
and you checked the find-object function with option source code?
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Find Object AnyWhere in the Model

Legend
Legend

Thats a part of it only.

I like to get a complete list where a variable is used.

If I enter 'MaterialFlow' it will show me the first location in each method which is part of this folder.

I can type 'Basis' in the 'Look in' box, but there is no result.

 

 

 

Re: Find Object AnyWhere in the Model

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
you need to start the search in your top-frame in the class library (and including all subframes), but it will also only list all methods, not all lines in the methods
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Find Object AnyWhere in the Model

Legend
Legend

Thanks, I know a bit more.
I cannot get what was expecting, but I close the topic.

 

Regards

 

Re: Find Object AnyWhere in the Model

Legend
Legend

Hi..

 

Did you get a solution to what you were looking for? I think I have the same problem.

I am looking for the method which accesses a global variable defined in my root frame.