Continue to Site

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!

List added properties in drawing

Status
Not open for further replies.

VojtaR

Automotive
Apr 2, 2020
20
Hello,

is there a way to list my properties in drawing when pointed to a product?
Properties_fmfnlk.png


Simply I want a text field like this:
Property 1: "Property 1 text" (link on property 1 as in picture)
Property 2: "Property 2 text" ......
etc...

I found that I should address it like this:
Call oDrawingTable.SetCellString(n, 3, ProductList(n).Product.UserRefProperties.Item.("Property 1"))

but I am keep getting nothing filled in the table. (Even when text box is not empty)

Can someone help me please?
 
Replies continue below

Recommended for you

Check if intele-sense populates:
Code:
UserRefProperties.Item.("Property 1")[highlight #73D216].value[/highlight])'or .name
 
Thank you for your answer, but it was not working either... I have looked through some other macros found on-line and found this is working:
Call oDrawingTable.SetCellString(n, 3, ProductList(n).[highlight #8AE234]ReferenceProduct[/highlight].UserRefProperties.Item("Property1").[highlight #8AE234]ValueAsString[/highlight])

If you need that some day...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor