iLOGIC Parameters

iLOGIC Parameters

MTTStructures
Explorer Explorer
556 Views
2 Replies
Message 1 of 3

iLOGIC Parameters

MTTStructures
Explorer
Explorer

Hi I am playing with iLOGIC, but need to learn a lot.

 

I used some of Rob’c code:

 

Stock = iProperties.Value("Project", "Stock Number")

If Stock = "" Then

Stock = InputBox("Please Enter the iProperty Stock Number", "iProperties Check - Title Filled Out?", Stock)

iProperties.Value("Project", "Stock Number") = Stock

End If

 

Desc = iProperties.Value("Project", "Description")

If Desc = "" Then

Desc = InputBox("Please Enter the iProperty Description", "iProperties Check - Title Filled Out?", Description)

iProperties.Value("Project", "Description") = Desc

End If

 

It works well, but I need to modify it to List the current value (if any) and allow me to change it or accept the current entry.

 

Reason, I do a lot of “Save copy as” and need to change the values, if so desired.

 

Thanks

Reg.

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

MjDeck
Autodesk
Autodesk

If you take out the If statements, it will show you the current value (whether it's blank or not) and allow you to change it:

 

Stock = iProperties.Value("Project", "Stock Number")
Stock = InputBox("Please Enter the iProperty Stock Number", "iProperties Check - Title Filled Out?", Stock)
iProperties.Value("Project", "Stock Number") = Stock

Desc = iProperties.Value("Project", "Description")
Desc = InputBox("Please Enter the iProperty Description", "iProperties Check - Title Filled Out?", Desc)
iProperties.Value("Project", "Description") = Desc

Mike Deck
Software Developer
Autodesk, Inc.

0 Likes
Message 3 of 3

MTTStructures
Explorer
Explorer

Thank you.

Such an easy solution.

 

There was a TYPO in my code which you corrected for me. The typo cleared the descption field every time, this confused me for a while.

 

Regards

Reg

0 Likes