Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Thread specification as parameter

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
2148 Views, 6 Replies

Thread specification as parameter

Hello

I am wondering if it is possible to control thread specifications by parameters so that I can change a lot thread features by just changing one parameter.

Thank you

Daniel (Inventor 2016)

Tags (2)
6 REPLIES 6
Message 2 of 7
bobvdd
in reply to: Anonymous

Attached is a 2016 part file that contains an iLogic rule that reacts to the value of a single Inventor parameter called "Threadedholesize".

The iLogic rule scans through ALL hole features in your part and changes all of them.

You can change the value of the "Threadedholesize" parameter either in the parameters dialog or through the iLogic form that sits in this file.

I used a couple of ANSI Unified Screw thread sizes as example.

IMPORTANT:  when you create holes with the linear placement, make sure that the references to edge 1 and edge 2 are defined, otherwise the rule won't work.

 

 

 

Dim Myarraylist  As New ArrayList
Myarraylist.Add("3/4-32 UN")
Myarraylist.Add("1-32 UN")
Myarraylist.Add("2-6 UN")
Myarraylist.Add("3-8 UN")
Myarraylist.Add("4-6 UN")

MultiValue.List("Threadedholesize")= Myarraylist 

Dim opartDoc As PartDocument
opartDoc = ThisApplication.ActiveDocument
Dim oHoleTapInfo As HoleTapInfo
oHoleTapInfo = opartDoc.ComponentDefinition.Features.HoleFeatures.CreateTapInfo(True, "ANSI Unified Screw Threads", Threadedholesize, "2B", True)
Dim ohole As HoleFeature
For Each ohole In opartDoc.ComponentDefinition.Features.HoleFeatures
  ohole.TapInfo = oHoleTapInfo
Next ohole

 

Here is a screenshot of the iLogic form in action.

update threads on multiple holes.png

 




Bob Van der Donck


Principal UX designer DMG group
Message 3 of 7
Anonymous
in reply to: bobvdd

Thanks, great! I will give it a try.

However, it would be tricky to parameterize two different types of thread. I think it would be a nice feature of Inventor of thread specifications could be defined as parameters in some way.

Thank  you

Daniel

Message 4 of 7
mcgyvr
in reply to: Anonymous


@Anonymous wrote:

Thanks, great! I will give it a try.

However, it would be tricky to parameterize two different types of thread. I think it would be a nice feature of Inventor of thread specifications could be defined as parameters in some way.

Thank  you

Daniel


Not sure what you are trying to do but have you looked into creating an ipart?  You can edit the threads in the ipart table/excel fairly quickly

 

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 5 of 7
Anonymous
in reply to: mcgyvr

Hi,

I am using the workflow of constructing a simple assembly as a part file and then use the 'Make Part' tool to derive the individual bodies in this file into an assembly. I have two types of threaded holes, which have undefined diameters/specifications at this early stage of design. So I thought if I could introduce two parameters which control the specs of these two types of threaded holes, that would simplify my setup.

Daniel

Message 6 of 7
bobvdd
in reply to: Anonymous

Another thought. In case you would prefer to choose iLogic over iParts and are dealing with creating multiple part files and don't want to embed the iLogic rule in each of them, think about using an external iLogic rule which you can create once and for all.

Cheers

Bob




Bob Van der Donck


Principal UX designer DMG group
Message 7 of 7
Anonymous
in reply to: Anonymous

Like you, I will prefer to have it in parameters.  We already have hole depth in parameters.  We do not and will probably never used ipart or ilogic at my job...

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report