Re-maps the pins of the basic symbol of the section.

syntaxSyntax:
DlxLibraryDevice.AddSymbolSectionPin(oldPinNumber, newPinNumber, pinName = "", electricType = DlxApp.PINTYPE_NOCHANGE, bHidden = false)

Parameters

Parameter Description
oldPinNumber The number that the pin assumes in the base symbol.
newPinNumber The new pin number.
pinName Specify the new pin name or enter an empty string so as not to change the pin name.
electricType The electrical characteristics of the pin. Select from the following:
DlxApp.PINTYPE_NOCHANGE Maintains the pin type as in the basic symbol.
DlxApp.PINTYPE_INPUT Input pin.
DlxApp.PINTYPE_OUTPUT Output pin.
DlxApp.PINTYPE_BIDIRECTIONAL Input/Output pin.
DlxApp.PINTYPE_POWER Power supply pins of a component (Vcc, Vss, Gnd).
DlxApp.PINTYPE_POWEROUTPUT Pin giving power as the output pin of voltage regulator.
DlxApp.PINTYPE_PASSIVE Pin of a passive element (resistor, capacitor ecc.).
DlxApp.PINTYPE_THREESTATE Output pin, which can achieve high-impedance.
DlxApp.PINTYPE_OPENCOLLECTOR Open collector pin.
DlxApp.PINTYPE_OPENEMITTER Open emitter pin.
bHidden Specify true if the pin is to be hidden.

Return Value

If the function ends correctly it returns true otherwise it returns false.

Example

  Copy codeCopy code
var libPrj = DlxApp.GetJob().GetProject("Example Lib");
if (!libPrj.IsValid())
  libPrj = DlxApp.GetJob().NewProject("Example Lib");
var libDoc = libPrj.GetDocument("Examples Lib", DlxApp.DOCTYPE_LIBRARY);
if (!libDoc.IsValid())
  libDoc = libPrj.NewDocument("Examples Lib", DlxApp.DOCTYPE_LIBRARY);
if (libDoc.IsValid() && libDoc.Activate())
{
  var folderGates = libDoc.AddFolder("Gates");
  var device = folderGates.AddDevice("SN74HC00");
  device.SetIcon(0);
  device.SetName("SN74HC00");
  device.SetDeviceName("SN74HC00");
  device.SetReferencePrefix("U");
  device.SetDeviceClass("Gates", "NAND gate");
  device.SetManufacturer("Texas Instruments");
  device.SetDescription("2-Input NAND gate");
  device.SetDatasheetLink("https://www.ti.com/lit/ds/symlink/sn74ahc00.pdf");
  device.SetAttribute("CARD", "SPICE", "#gates NAND [1 2 3][4 5 6][9 10 8][12 13 11][PWR 14 7] %&model", "", "", DlxApp.ATTRIBUTEFLAGS_ADVANCED);
  device.SetAttribute("MODEL", "SPICE", "SN74HC00");
  device.BeginSymbolDefinition("7400");
  device.AddSymbolSection("NAND_2INP/Logic Symbols", DlxApp.LIBSECTIONPREFIX_PREFIX);
  device.AddSymbolSectionPin("1", "1,4,9,12");
  device.AddSymbolSectionPin("2", "2,5,10,13");
  device.AddSymbolSectionPin("3", "3,6,8,11");
  device.AddSymbolSectionPin("4", "7");  
  device.AddSymbolSectionPin("5", "14");
  device.EndSymbolDefinition();
  device.AddFootprint("TI_N14");
}

See also