DB Snippets: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
[[Category: Snippets]] | |||
== Finding all models in the project == | == Finding all models in the project == | ||
Latest revision as of 08:08, 16 September 2011
Finding all models in the project
Layer0 L0 = Layer0.getInstance(session); SimulationResource SIMU = SimulationResource.getInstance(session); Resource project = Simantics.getProject(); Collection<Resource> models = session.syncRequest( new ObjectsWithType(project, L0.ConsistsOf, SIMU.Model) );