UL_PACKAGE3D

Data members

   
description string
headline string
library string
libraryurn string (see note)
libraryversion int (see note)
name string
urn string (see note)

See also UL_DEVICE, UL_ELEMENT, UL_LIBRARY, UL_FOOTPRINT

Note

The description member returns the complete descriptive text, while the headline member returns only the first line of the description, without any HTML tags. When using the description text keep in mind that it may contain newline characters ('\n').

The urn contains a unique identifier for this 3D package, of the form urn:adsk.eagle:package:123/4, where the portion after the / is the version of the 3D package. To get the base URN (without version), use urnbase(); to get the version, use urnversion().

The libraryurn and libraryversion are only applicable if this UL_PACKAGE3D comes from a managed library. If not, libraryurn will be the empty string and libraryversion will be -1.

Example

library(L) {
  L.packages3d(P3D) {
    printf("3D Package: %s (%s, Version %d)\n", P3D.name, urnbase(P3D.urn), urnversion(P3D.urn));
    }
  }
board(B) {
  B.elements(E) {
    printf("Element: %s", E.name);
    if (E.package3d) printf(", 3D Package: %s (%s, Version %d)\n", E.package3d.name, urnbase(E.package3d.urn), urnversion(E.package3d.urn));
    else printf("\n");
    }
  }