iLogic rule, message box when a member is placed thats missing 'Part Number'

iLogic rule, message box when a member is placed thats missing 'Part Number'

Anonymous
Not applicable
377 Views
3 Replies
Message 1 of 4

iLogic rule, message box when a member is placed thats missing 'Part Number'

Anonymous
Not applicable

I'm trying to add an ilogic rule (in library part) that will show message upon placement in assembly that the designated size does not have a company issued 'Part Number', if that iProperty field is empty... to either choos another size or add a P/N.

I can run it in the ipart file, but unable to trigger and get the message when placing it in an assembly.

Is this even possible?

this is what i have so far:

 

Dim ChesterPN As String
ChesterPN = iProperties.Value("Project", "Part Number")
currentLength = Len(ChesterPN)
If currentLength < 1 Then
MessageBox.Show("No Chester P/N For Designated Size, Please Add If Available.")
Else
End If

 

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

bradeneuropeArthur
Mentor
Mentor

Hi,

 

You need to put the code into your standard part and not in the factory.

The factory takes the standard *.ipt file for the creation of the members.

I think you cannot add it to the member files because they are protected.

The only solution I would suggest is to create an add in for this and run the code exactly as you prefer, which means checking the partnumber company standard...

 

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 4

Anonymous
Not applicable

i feel like placing  the rule in the ipt. template, will cause a headache in time... 

I don't expect for the part to be editable from the inserted location, mainly just want an alert so that it can be addressed. i cant imagine this not being possible, but i am surprised all the time by Inventor lol

0 Likes
Message 4 of 4

chandra.shekar.g
Autodesk Support
Autodesk Support

@Anonymous,

 

Hoping that below suggestion in the blog link may be helpful.

 

http://www.inventortales.com/2013/10/triggering-ilogic-form-when-placing.html

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes