2 Replies Latest reply on Feb 23, 2011 12:09 AM by marioweiss

    Find propertie in border symbols?

    marioweiss

      Hello everybody,

      i work on a script to make a table of contents from all sheet using the border symbol. In the border symbol there is a property named "Schaltungsteil". This porperty is on every sheet of schematic in a design.

      The problem is, i don´t know how i can read this property? Has anyone an idea?

       

      For example there is a screenshot of the border symbol:

       

      border_symbol.JPG

      Thanks a lot.

      Mario

        • 1. Re: Find propertie in border symbols?
          john_dube

          Hi Mario,

           

          First, find the border symbol instance using the View.Query method and checking for IsBorderSymbol property, then call FindAttribute:

           

               For Each comp in ActiveView.Query(VDM_COMP, VD_ALL)

                    If comp.SymbolBlock.IsBorderSymbol Then

                         Set attr = comp.FindAttribute("Schaltungsteil")

                         If Not attr Is Nothing Then

                              sSchaltungstiel = attr.Value

                         End If

                    End If

               Next

           

          If you have replicated hieararchy, you should use the InstanceValue property instead of Value.

           

          John

          • 2. Re: Find propertie in border symbols?
            marioweiss

            Hi John,

             

            it works! Thanks.