Counting 1ups and external objects in assembled 3D drawings

The formulas

Extracting Formula
The number of times a 1up is present in an assembled 3D representation $Fold3DN.PartsCount(OneUpN)$
The number of times an external object is present in an assembled 3D representation $Fold3DN.PartsCount(TabName)$
  1. THE PARAMETERS
  2. Fold3DN argument specifies which closed contours in the specified style (StyleName) are counted: Yes = inner contours; No = outer contours. No is the default and can be omitted. Instead of Yes, you can use also true or 1; instead of No, you can use false or 0.
  3. OneUpN is the name of the 1up drawing that is being counted.
  4. TabName is the name of the tab that contains the external object that is being counted. This tab is part of the 3D Objects dialog box (pictured). IMPORTANT: This formula requires that you type the tab name in the Data column of the Design Frame tab.
External Object Tab

Examples

The following examples count how many times an object that is placed in a design frame area is featured in another design frame area that holds an assembled 3D.

The n0 identifier removes the result's fractional part.
Object to count Placed In Featured In Use Result
Barrier1 OneUp1 Fold3D1 $OneUp1.Name$ — $Fold3D1.PartsCount(OneUp1); n0$ pcs. "Barrier1 — 4 pcs"  *
Car Fold3D2 Fold3D1 Car — $Fold3D1.PartsCount(Car); n0$ pcs "Car — 4 pcs" **
Car — $Fold3D1.PartsCount(Fold3D2); n0$ pcs

NOTE: The two formulas produce the same result. The first refers to the tab name of the external object as it appears in the 3D Objects dialog box (see above). The second formula cites the name of predefined area in which the external object is represented.

  1. Know your list separator: When typing a formula, make sure you separate its elements with your computer's list separator symbol. Yours may be different from the one used in this guide. Examples (in red):
    With Semicolon With Comma
    $Layout1.Length(Cutting; m; yes); n2$ $Layout1.Length(Cutting, m, yes), n2$

See the general rules for how to write formulas and format formula results.