Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • IN this example there is are two equations, "x=1" and "y=2".

  • Get equations by name.

     

    Code Block
    languagevb
      Dim eqn As Equation
         Dim eqn2 As Equation
    
         Set eqn = Project.Schematics(1).Equations("x")
         Debug.Print eqn.Expression
         Set eqn2 = Project.Schematics(1).Equations("y")
         Debug.Print eqn2.Expression 
    'Get equation by index
    
    
        Dim eqn As Equation
         Dim eqn2 As Equation
    
         Set eqn = Project.Schematics(1).Equations(1)
         Debug.Print eqn.Expression
         Set eqn2 = Project.Schematics(1).Equations(2)
         Debug.Print eqn2.Expression 

...