Question = MessageBox.Show("Are you sure you would like to overwrite the currently assigned part number?"&vbLf _ ![]() If iProperties.Value("Project", "Part Number") ThisDoc.FileName(False) _Īnd iProperties.Value("Project", "Part Number") "" Then I then trigger the rule using a button in a form. ![]() This rule would be triggered manually from a form.Īnyone familiar enough to create simple iLogic code to do this? I know I'm asking a big favor, but I know there are some experts out there!Īccomplished this with the following iLogic (it's not pretty, but it works).If, when the rule is triggered, the Part Number property is blank or the same as the file name, the user would not be asked if they would like to overwrite the part number.Everytime the part number generator rule is triggered, it would create a new part number on the next blank row, copy this part number to the Part Number iProperty and assign the file in which the iLogic rule was executed to column B in the xls, save and close.The format would be something like =TEXT(ROW(A1),"JFRC-000000") Column A (the part number) is a sequential count in the form of 6 or seven digits.Column A would be the part number, B would be the filename associated with that part number. iLogic would open an xls that is on the network.If one were to select yes, then the following would happen. If the iProperty "Part Number" was not blank or the same as the file name (as Inventor default), then a question box would pop up asking if you would like to overwrite the part number. ![]() I'd like to create a part number generator using iLogic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |