2 Replies Latest reply on May 28, 2010 11:39 AM by Wolfgang_Antrey

    How to automate Swap Groups in Library Manager ...

    Wolfgang_Antrey

      I have a common mode choke with 4 pins

      1-2 and 3-4

       

      I want to generate the Library automaticly using automation. I have read the library automation documentation and could build following code ...

       

              Set pdbGateSwap = pdbMapping.PutGate("gate" & dxdsym.Name & 0, _
                                              2, _
                                              epdbGateTypeLogical)

           pdbGateSwap.PutPinDefinition 1, "1", epdbPinPropertyPinType, "Analog"

           pdbGateSwap.PutPinDefinition 2, "2", epdbPinPropertyPinType, "Analog"

            Dim Slot1, Slot2
            Set Slot1 = pdbMapping.PutSlot(pdbGateSwap, pdbSymbolReference)
            Set Slot2 = pdbMapping.PutSlot(pdbGateSwap, pdbSymbolReference)
            slot1.PutPin 1,1, "1"
            slot1.PutPin 2,2, "2"

            slot2.PutPin 1,3, "3"

            slot2.PutPin 2,4, "4"

       

      In the PartEditor Dialog I get 2 gates with 2 slots.

      But how can I tell the tool that it is possible to swap complete gates ???? In the GUI I would select both lines and would press the swap button.

      But how could this be done with automation ?

       

      Thanks

       

      Wolfgang