Browsing a Collection by Script

All collections can be iterated through the usual "For Each variable In collection" construction.

This loop starts with "For each <variable> in <collection>" and ends with "Next".

The loop is iterated on each object of the collection. The object is available in <variable>.

Example

'How to browse the collection of tables available on a model
Set MyModel = ActiveModel
'Assuming MyModel is a variable containing a PDM object.
For each T in MyModel.Tables
 'Variable T now contains a table from Tables collection of the model
 Output T.name
Next