AnsweredAssumed Answered

Get Active Part Type in Pads Layout script

Question asked by tim.ringborg on Jun 1, 2016
Latest reply on Dec 22, 2016 by franz.forstmayr

I trying to get the substituted part from within a VB script in Pads Layout (the Active column)


If I list all parts in an assembly variant it possible to see if a specific part is substituted but how do I get the Part Type of the variant?


VB code for listing all parts of a part type in "asseblyvariant":



For Each part In ActiveDocument.AssemblyOptions(assemblyVariant).PartTypes(PartType).Components

      If part.Substituted Then

         kkkkkk =  AttrVal(part, "Value") ''' How do I point to the variant Part Type

     End if

Next part