1

I'm looking to access user added properties using code similar to properties that the program auto-generates and using the .selection command to make it work.

The code to access the computer properties is '''CATIA.ActiveDocument.Selection.Item(1).Value.Name'''

I'm struggling and the best attempt I have towards accessing additional properties fields under the "Product: Added Properties" area: '''CATIA.ActiveDocument.Selection.UserRefProperties.Item("Properties\DESIGNER").Value'''

1 Answer 1

1

Your code works for me, but you have to be careful about the Name of the parameter you give to Item, otherwise, the method fails. I created a single Product called Product1, where I added a Property MINE : enter image description here

Then in VBA I can access the parameter like that :

product1.UserRefProperties.Item("Product1\Properties\MINE")

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.