Message to keep the progress of a part (we have vault basic)

Message to keep the progress of a part (we have vault basic)

dypro
Advocate Advocate
249 Views
2 Replies
Message 1 of 3

Message to keep the progress of a part (we have vault basic)

dypro
Advocate
Advocate

Hello everyone, 

I am trying to make an external rule that triggers a message with a box in wich shows the value of a custom iproperty called "Grado de detalle" (a number beetween 0 and 100) and to be able to overrite that value by writing in the box, it may be just the "display ipropertys value as text" and then the box to overrite it, if the box is empty just keep the previous value and hit a button to update the iproperty or exit the message.

That value sould also be copied into the "Status" iproperty of the assembly or the part.

Finally it has to save the iam or the ipt when hitting the button.

0 Likes
250 Views
2 Replies
Replies (2)
Message 2 of 3

dypro
Advocate
Advocate
BUMP
0 Likes
Message 3 of 3

A.Acheson
Mentor
Mentor

Here is an article for ilogic iproperties.

 

iProperties.Value("Custom", "Grado de detalle")

 

 

Here is the help file for messagebox functions and here we can get a inputbox then write a value / read

 

 

myparam = InputBox("Prompt", "Title", "Default Entry")

 

 

Here is the helpfile to access the Document your in. 

 

 

ThisDoc.Save

 

 

 

Now put it all together to read and write to iproperty then save the document.

 

 

iProperties.Value("Custom", "Grado de detalle")= InputBox("Prompt", "Custom iProperty", iProperties.Value("Custom", "Grado de detalle"))
ThisDoc.Save

 

 

 

All of these lines of code actually exist in the ilogic editor. Expand the tabs in the left browser under iproperties, messagebox and document. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan