Ilogic rule from released to working progress & check out

Ilogic rule from released to working progress & check out

gma
Advocate Advocate
491 Views
2 Replies
Message 1 of 3

Ilogic rule from released to working progress & check out

gma
Advocate
Advocate

Hi,

 

Is it possible to make a Ilogic rules, that will change state on a part/assembly and check it out.

F.eks change it from "released" to "working progress" and  "check out"?

 

Regards 

GMA

0 Likes
Accepted solutions (2)
492 Views
2 Replies
Replies (2)
Message 2 of 3

MjDeck
Autodesk
Autodesk
Accepted solution

Here's a rule that shows a dialog to choose values for the Design State property.

Dim choices As New ArrayList
choices.Add("Work in progress")
choices.Add("Pending")
choices.Add("Released")
Dim currentState = iProperties.Value("Status", "Design State")
Dim currentText = choices(currentState - 1)
Dim newText = InputListBox("Design State", choices, currentText)
Dim newIndex = choices.IndexOf(newText)
'Logger.Info(" newText = {0}, index = {1}", newText, newIndex)
If newIndex >= 0 And newIndex <= 2 And newIndex+1 <> currentState Then	
	iProperties.Value("Status", "Design State") = newIndex+1
End If

This won't check out the file. To do that, you would have to run a command.


Mike Deck
Software Developer
Autodesk, Inc.

0 Likes
Message 3 of 3

gma
Advocate
Advocate
Accepted solution

Thank you very much

0 Likes