Finding a script

Hi. I am looking at some simulations done by other people previously (for example the demo layout) and with a lot of components its sometimes difficult to determine where the scripts which control the simulation are stored.

I have come up with a simple why to list all the scripts in the layout but some of them are standard scripts that come with models. In the layout I am looking at this generates still a lot of components to go through.

Here is my code. Anyone got any better ideas?

`from vcScript import *

app = getApplication()

for c in app.Components:
findScript = c.findBehavioursByType(VC_SCRIPT)
if findScript:
print 'Component Name = ’ + c.Name

for i in range (0, len(findScript)):
  print findScript[i].Name

That’s true that it is sometimes hard to get the overall idea of a larger model. Your approach is pretty good imho.