UL_VARIANTDEF

Data members

   
name string

See also UL_VARIANT, UL_SCHEMATIC, UL_BOARD, variant()

Example

schematic(SCH) {
  printf("Defined assembly variants:\n");
  SCH.variantdefs(VD) {
    printf("\t'%s'\n", VD.name);
    }
  printf("\n");
  printf("Part\tVariantdef\tValue\tTechn.\tPopulated\n");
  SCH.parts(P) {
    printf("%s\t%s\t%s\t%s\t%s\n", P.name, "default", P.value, P.device.activetechnology, "yes");
    P.variants(V) {
      printf("%s\t%s\t%s\t%s\t%s\n", P.name, V.variantdef.name, V.value, V.technology, V.populate ? "yes" : "no");
      }
    }
  }