Checking if a StrParam exists?
Checking if a StrParam exists?
(OP)
Hi Guys,
Another one I can't work out! :(
I have the 'address' (For Example: Part\Geometrical Set\Sub Geo Set\Name) for a parameter, for which then I get the value from using:
Parameters.Item("Part\Geometrical Set\Sub Geo Set\Name").Value
Now sometimes not all the parameters exist, so the script will error.
Is it possible to check if the StrParam exists before trying to read the value?
Cheers!
Another one I can't work out! :(
I have the 'address' (For Example: Part\Geometrical Set\Sub Geo Set\Name) for a parameter, for which then I get the value from using:
Parameters.Item("Part\Geometrical Set\Sub Geo Set\Name").Value
Now sometimes not all the parameters exist, so the script will error.
Is it possible to check if the StrParam exists before trying to read the value?
Cheers!





RE: Checking if a StrParam exists?
If Parameters.Item("Part\Geometrical Set\Sub Geo Set\Name").Value <> 0 Then
MsgBox Parameters.Item("Part\Geometrical Set\Sub Geo Set\Name").Value
Else
End If
Regards
Fernando
https://picasaweb.google.com/102257836106335725208