NX OPEN How to get Sheet_Metal_Material_Thickness
NX OPEN How to get Sheet_Metal_Material_Thickness
(OP)
Hello everyone,
I would like to get the value to string for the Sheet_Metal_Material_Thickness of a Sheet Metal Part using NXOpen.
I am trying the following but with no luck:
For Each exp As Expression In exps
expression_name = exp.Description
index1 = expression_name.IndexOf("Thickness")
If index1 > 0 Then
hstring2=exp.RightHandSide.ToString
msgbox(exp.name & " = " & hstring2)
End If
Next
I don't know what Iam doing wrong.
Thank you
I would like to get the value to string for the Sheet_Metal_Material_Thickness of a Sheet Metal Part using NXOpen.
I am trying the following but with no luck:
For Each exp As Expression In exps
expression_name = exp.Description
index1 = expression_name.IndexOf("Thickness")
If index1 > 0 Then
hstring2=exp.RightHandSide.ToString
msgbox(exp.name & " = " & hstring2)
End If
Next
I don't know what Iam doing wrong.
Thank you





RE: NX OPEN How to get Sheet_Metal_Material_Thickness
Add the following prior to your For Each.
CODE --> Basic
CODE --> Basic
lw.WriteLine("The expression name is: " & expression_name)Is the expression name mixed case?
RE: NX OPEN How to get Sheet_Metal_Material_Thickness
I did place the code you told me and I get blank lines and other expressions but not the expression I was looking for. For example:
...
The expression name is: (Simple Hole(7) Positioning Dimension Perpendicular Distance )
The expression name is: (Pattern Face(13) Offset in YC...)
The expression name is: (Extrude(16) Start Limit)
The expression name is:
The expression name is:
The expression name is: (Extrude(19) Parallel Dimension between Line16 and Line16)
The expression name is: (Extrude(19) Start Limit)
The expression name is:
The expression name is: (Move Face(21) Displacement)
...
But I cannot get the value (as a string) for the named expression "Sheet_Metal_Material_Thickness". This is what I am looking for.
RE: NX OPEN How to get Sheet_Metal_Material_Thickness
RE: NX OPEN How to get Sheet_Metal_Material_Thickness
Thank you.