Number of Atoms in Model or Library

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
User avatar
MatthijsJongboer
Posts: 200
Joined: Thursday 11 November, 2010 - 14:12

Number of Atoms in Model or Library

Post 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
)
Post Reply