Page tree

Versions Compared

Key

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

...

PS C:\> $Element.Parameters | foreach-object { $_.Name + " = "+ $_.ValueAsString }
ID = TL1
W = 2040
L = 200100
MSUB =

This gives us a cleaner summary. Now lets set the width to 40:

PS C:\> $Element.Parameters.Item("W").ValueAsString = "4020"
PS C:\> $Element.Parameters | foreach-object { $_.Name + " = "+ $_.ValueAsString }
ID = TL1
W = 4020
L = 200100
MSUB =

So in the first line we've set the parameter value as string to 40 and the second line lists the parameter names and values again to show the updated value.

...