Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Obtaining property local name

Status
Not open for further replies.

Camillo

Automotive
May 31, 2022
6
Hello,
I have various user properties under a product and I would like to obtain their "local name".
I obtain there properties using:
Code:
Dim properties as Parameters
DIm parameterName as String
Set properties = product.ReferenceProduct.UserRefProperties
and then in loop
Code:
parameterName = properties.Item(1).Name

Obtained name looks in following way:
ProductPartNumber\Properties\parameterName

However I prefer to obtain "parameterName" due to the fact, that sometimes obtained fullpath is longer due to complexity of product. I can concate names to string to create path and then use replace function on parameterName string, but I prefer to avoid it.
 
Replies continue below

Recommended for you

I tried to use it, however I am getting path from root tree ending with product instance name, without any parameter.
Please tak a look on screenshoot below. I would like to obtain "property1" and "property2" without any global/local path. Is it possible without modifying string?
NXHAc6m_cu24tt.png
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor