Ilogic "description rule" appears to be interfering with Vault check in

Ilogic "description rule" appears to be interfering with Vault check in

bbodenstaff
Participant Participant
516 Views
3 Replies
Message 1 of 4

Ilogic "description rule" appears to be interfering with Vault check in

bbodenstaff
Participant
Participant

Hi,

We use an iLogic rule to display part number and description in the model tree.

The event trigger is set for all documents to before save document.

The rule work as it should, but we are having some problems with the Vault Add-in.

Assemlies take for ever to check in.

New drawing can't be checked in, because the check in dialog box doesn't appear.

Work around is to turn of the event trigger, we want it to be automated.

Preferably the rule is to be triggered to iProperty Change, but this option isn't available for all documents.

Description rule:

'create reference to part
openDoc = ThisApplication.ActiveDocument
'format display name
openDoc.DisplayName = iProperties.Value("Project", "Part Number") & " (" & iProperties.Value("Project", "Description") & ")"
'openDoc.Rebuild
'update
iLogicVb.UpdateWhenDone = True

Can anyone tell me how we can change the setup so we can work with the rule?

 

0 Likes
517 Views
3 Replies
Replies (3)
Message 2 of 4

marcin_otręba
Advisor
Advisor

hi,

1. that rule should work for each type of doc ? if not then add some if statement depending from subtype of that file.

2. try to check first if doc must be edited:

 

 

if openDoc.DisplayName <>iProperties.Value("Project", "Part Number") & " (" & iProperties.Value("Project", "Description") & ")" then

openDoc.DisplayName = iProperties.Value("Project", "Part Number") & " (" & iProperties.Value("Project", "Description") & ")"

end if

 

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders

0 Likes
Message 3 of 4

bbodenstaff
Participant
Participant

Hi,

That could solve a part of the problem, but adds an other.

As you propose it, the rule doesn't check if the values have been altered.

If there already if a value in part number and description, the rules doesn't overwrite it with the new value.

Do you know of a way to check the values between the displayed and the iProperty value?

0 Likes
Message 4 of 4

marcin_otręba
Advisor
Advisor

hi,

 

you have all there... if you change value in iprop then script will overwrite display name when it will be fired.

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders

0 Likes