Page 1 of 1

Number of Atoms in Model or Library

Posted: Tuesday 22 February, 2011 - 15:20
by MatthijsJongboer
In Enterprise Dynamics, large models are one of the unique features. There is however, not a simple button to tell the user how many atoms there are in a model. The following code simply returns the number of Atoms in the model.

Code: Select all

Do(
 var([atmCounter], vbValue, 0),
 ForAtomTreeUnder(Model, inc(atmCounter)),
 atmCounter
)