Hello everyone,
I'm looking to display the value of a custom property in a MsgBox in a macro.
Anyone have an idea of the code?
Thank you very much!
Hello everyone,
I'm looking to display the value of a custom property in a MsgBox in a macro.
Anyone have an idea of the code?
Thank you very much!
Hello Lucas?! =)
Tut Tut Tut... Oh, he's not here today!!
Well I'm going out! :D
Edit: I'll answer for him: http://help.solidworks.com/2014/English/api/epdmapi/EPDM.Interop.epdm~EPDM.Interop.epdm.IEdmVault5~MsgBox.html
If it can help you move forward while waiting for the specialists
Hello
It's not very complicated, I prefer to do it in 2 steps, you have to:
1) Assign the value of the custom property to a variable (in this case, the personal property number in the CODE variable):
CODE = swRefDoc.GetCustomInfoValue("", "number")
2) Display the variable in an msgbox:
ret = MsgBox (CODE)
Edit:
swRefDoc is the document we are working on,
GetCustomInfoValue is used to retrieve the contents of a custom property.
Edit 2: of course, the help page that goes with it:
We recognize the pros!
Congratulations Lucas;)