Rule: Iproperties completed before save

Rule: Iproperties completed before save

Anonymous
Not applicable
435 Views
4 Replies
Message 1 of 5

Rule: Iproperties completed before save

Anonymous
Not applicable

I'm looking to help fellow newbies in my department.

I want to have a rule that generates a "pop up" window when Iproperties aren't completed.

This will use the "before save" trigger.

I'm looking to include the following standard Iproperties:

-Part Number

-Stock Number

-Description

-Revision Number

-Project

-Creation Date

-Checked Date

-Eng. Approved Date

I would also like to include the following custom properties:

-Mark

-Remark

 

Thanks for all the help!

 

0 Likes
436 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

I already have an ilogic form created, if this would be easier to link into the coding.

The form is called "PROPERTIES"

I want to ensure that the entire form is completed before saving the document.

0 Likes
Message 3 of 5

MechMachineMan
Advisor
Advisor

Something like this should give you an idea... All you should need to do is add in iProperty checks (and potentially a line to verify what file is being saved if you are planning on using global triggers, instead of Document based triggers)

 

boolPass = False
count = 0 Do     iLogicVb.ShowForm("Properties")
InventorVb.Update

If iProperties.Value("Project", "Part Number") <> "" And _
iProperties.Value("Project", "Description") <> "" And _
iProperties.Value("Project", "Project") <> "" Then

boolPass = True
Else
MsgBox("Not all properties have been filled in. Save not allowed until all iProps filled in!")
End if

count = count + 1
If count > 10 Then
MsgBox("iProp enforcement failed 10 times. Aborting rule")
Exit Sub
End if
Loop Until boolPass  

 


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 4 of 5

Anonymous
Not applicable

Having errors on line 4 & 5 ...

0 Likes
Message 5 of 5

MechMachineMan
Advisor
Advisor

That's unfortunate. They can usually be fixed with a bit of googling & some reading.


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes