Keyway suppression under 6mm

Keyway suppression under 6mm

Diequa
Advocate Advocate
702 Views
12 Replies
Message 1 of 13

Keyway suppression under 6mm

Diequa
Advocate
Advocate

I'm making a coupling file to speed things up on my end with 3d modeling.  So far I have gotten my bores to match DIN 6885 when they go above 6mm and have the correct keyways, below 6mm i have made a snippet that doesn't allow keyways to be generated. I have also gotten a form where I can select true or false on a keyway, but having that rule will allow keyways at the last size to be visible and selectable for the bores below 6mm, I'm not sure if I have to make another rule to run to disable the key rule from running when selecting under 6mm or if there is a way to do it directly in the key suppression rule.

 

I do have the Ascent student guide for iLogic 2018 and I got this far with it, but I'm not sure what I'm asking for is in the book.

0 Likes
703 Views
12 Replies
Replies (12)
Message 2 of 13

bradeneuropeArthur
Mentor
Mentor

You can do that without coding:

please take  a look at the modified part.

 

Suppress 1.PNGSuppress.PNG

 

 

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

Message 3 of 13

Diequa
Advocate
Advocate
Thank you for replying, but I forgot to add I will be adding in Inch boolean selection with keys, this also needs to be on a form that will pop up when the file it opened for others within the company, I figured out how to do the form popup already.
0 Likes
Message 4 of 13

bradeneuropeArthur
Mentor
Mentor
But you could minimize your coding this way.
Inventor out of the box....

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 5 of 13

chandra.shekar.g
Autodesk Support
Autodesk Support

@Diequa,

 

Are you trying to update d1keyway and d2keyway parameters in Form as shown in below image?

 

KeyWay.png

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



Message 6 of 13

Diequa
Advocate
Advocate

Correct, but any key below a bore of 6mm cannot have one due to DIN 6885 not having a standard for a key at that size.

0 Likes
Message 7 of 13

chandra.shekar.g
Autodesk Support
Autodesk Support

@Diequa,

 

Are you saying that both d1keyway and d2keyway are not available for bore below 6 mm? This is because DIN 6885 standard key is not available for bore below 6 mm.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



Message 8 of 13

Diequa
Advocate
Advocate

Correct, I'm not sure on how to make it trigger something that will not allow keys under 6mm because at this point i have the ilogic to allow keys at the sizes specified in DIN 6885 but when i select the key for size 5mm it will make a key, i know how to use the message box if something is not allowed, but i dont know how to program it in to the ilogic on keyway

0 Likes
Message 9 of 13

chandra.shekar.g
Autodesk Support
Autodesk Support

@Diequa,

 

iLogic form in part is modified to suppress key when bore dia is less than 5 mm. Part is attached with this part.

 

Key_suppression.png

 

Please feel free to contact if there is any queries.

 

If solves problem, click on "Accept as solution" / give a "Kudo".

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



Message 10 of 13

Diequa
Advocate
Advocate

Thank you for your help chandra, unfortunately i won't have Inventor 2019 till May 4th, so I cannot open that file you provided.  would you be able to copy and paste the rule you used to do the key suppression?

0 Likes
Message 11 of 13

chandra.shekar.g
Autodesk Support
Autodesk Support

@Diequa,

Key_suppression.png

After updating bore diameter and clicking on "Key Suppression Terminator" button as shown in above image, "Key Suppression Terminator" rule is called and executed. This rule contains below iLogic code.

 

If d1 <4 Then
Feature.IsActive("d1key")=False
End If
iLogicVb.RunRule("d1 Keyway Size")
iLogicVb.RunRule("d2 Keyway Size")

This means that suppression of d1 and d2 key are handled based upon bore diameter.

 

Please feel free to contact if there is any queries.

 

If solves problem, click on "Accept as solution" / give a "Likes".

 

Thanks and regards,

 


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



Message 12 of 13

Diequa
Advocate
Advocate

that's almost what I need! Because I know that keys aren't available under 6mm but some of my colleagues don't know this, I will need the keyway termination to be automatic with a message that says keyways are not available under 6mm.

 

This will eventually be on Configurator 360, and with your help I have gotten the other sizes of couplings available on 360 site. This is the last one that is giving me trouble. The other sizes do not have bores under 6mm so it's actually much easier.

0 Likes
Message 13 of 13

chandra.shekar.g
Autodesk Support
Autodesk Support

@Diequa,

 

If question is answered, then click on "accept as solution" / give a "Like".

 

Please feel free to contact if there is any assistance needed.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes