1 Reply Latest reply on Dec 22, 2016 3:41 AM by franz.forstmayr

    Get Active Part Type in Pads Layout script


      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