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: 

Controlling hole & thread size with parameters and ilogic

6 REPLIES 6
Reply
Message 1 of 7
navbor
4278 Views, 6 Replies

Controlling hole & thread size with parameters and ilogic

Hello All,

 

I am parsing a parameter to my inventor model from Excel. I want to control the size of a threaded hole in my model using this parameter. I have managed to successfully change the thread designation of an existing hole, but I can't seem to find where to control the size of the threaded hole. Any advice? Here is a snippet of my ilogic code controlling the thread designation.

 

Format:HTML Format
Version:1.0
StartHTML:     165
EndHTML:    6046
StartFragment:     314
EndFragment:    6014
StartSelection: 314
EndSelection:     314

SyntaxEditor Code Snippet

'VAR015 THREAD SIZE


SelectCaseVAR015
Case=12
Feature.ThreadDesignation("Hole1")="M12x1.75"
Case=16
Feature.ThreadDesignation("Hole1")="M16x2.0"
Case=20
Feature.ThreadDesignation("Hole1")="M20x2.5"
Case=24
Feature.ThreadDesignation("Hole1")="M24x3.0"
Case=30
Feature.ThreadDesignation("Hole1")="M30x3.5"
EndSelect

 

Regards
Rob
-------------------------------------------
Windows 7 Pro (X64)
Intel(R) core (TM) i5-4690 CPU @ 3.50GHz
32.0 GB RAM
Nvidia Quadro K2000
Autodesk Inventor 2015 Professional Ultimate Design Suite
6 REPLIES 6
Message 2 of 7
swordmaster
in reply to: navbor

Message 3 of 7
navbor
in reply to: swordmaster

Thank you Swordmaster,

 

This is the thread I looked out when I figured out how to set the thread designation, but it still does not show me how to control the size. Changing the designation, does not seem to physically change the size of the hole in the geometry, it seems this is only a text attribute of some description and the hole dimensions are controlled in another way.

 

Regards

Rob

Regards
Rob
-------------------------------------------
Windows 7 Pro (X64)
Intel(R) core (TM) i5-4690 CPU @ 3.50GHz
32.0 GB RAM
Nvidia Quadro K2000
Autodesk Inventor 2015 Professional Ultimate Design Suite
Message 4 of 7
swordmaster
in reply to: navbor

Rob,

with this rule when i change the thread designation the hole diameter also updates. I can attach the part here if you need it

if

h0_bushing_bolt_hole_dia = 0.875 then

 

Feature.ThreadDesignation("tapped_hole") = "3/4-10 UNC"

 

elseif h0_bushing_bolt_hole_dia = 1.25 then

 

Feature.ThreadDesignation("tapped_hole") = "1-8 UNC"

 

else

 

MessageBox.Show("update_thread in flange", "h0_tapped_flange" ,MessageBoxButtons.OK)

 

end if

 

 

Inventor 2010 Certified Professional
Message 5 of 7
navbor
in reply to: swordmaster

Please would you send the part, mine does not seem to update.

 

Thanks

Rob

Regards
Rob
-------------------------------------------
Windows 7 Pro (X64)
Intel(R) core (TM) i5-4690 CPU @ 3.50GHz
32.0 GB RAM
Nvidia Quadro K2000
Autodesk Inventor 2015 Professional Ultimate Design Suite
Message 6 of 7
swordmaster
in reply to: navbor

here you go, its INV 2009

 

Inventor 2010 Certified Professional
Message 7 of 7
navbor
in reply to: swordmaster

I see what you mean, I will have to investigate my side a bit more.

 

Thanks for your comments.

 

Regards

Rob

 

Regards
Rob
-------------------------------------------
Windows 7 Pro (X64)
Intel(R) core (TM) i5-4690 CPU @ 3.50GHz
32.0 GB RAM
Nvidia Quadro K2000
Autodesk Inventor 2015 Professional Ultimate Design Suite

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

Post to forums  

Autodesk Design & Make Report