AnsweredAssumed Answered

DxDesigner Component.FindAttributes returns only schematic level ATTR

Question asked by keith.padgett on Mar 31, 2011
Latest reply on Apr 1, 2011 by keith.padgett

When attempting to gather data on selected components, the Component.FindAttribute only returns data on the schematic level attributes such as REFDES.  I know that the attributes I'm looking for exist at the symbol level.


In the code fragment below, I get the "No MFGR attribute found" message.


For Each Comp in vdview.Query(VDM_COMP, VD_Selected)

    ' Identify the Manufacturer attribute on the component

    Set MfgrDir = Comp.FindAttribute("MFGR")

    If MfgrDir Is Nothing Then

        MsgBox "No MFGR attribute found"


        MsgBox "MFGR=" & MfgrDir.Value

    End If



With this code, I get only the REFDES and none of the other attributes returned.


For Each Comp in vdview.Query(VDM_COMP, VD_Selected)

    MsgBox Comp.GetBatchAttributes(),,"GetBatchAttributes"



Can anyone tell me how to access the attributes at the symbol level when running a script with a schematic sheet active?