Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking if a StrParam exists?

Status
Not open for further replies.

CheeseMaker13

Aerospace
Sep 25, 2012
42
GB
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!
 
Replies continue below

Recommended for you

Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top