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
take a look at this thread
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
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
Please would you send the part, mine does not seem to update.
Thanks
Rob
here you go, its INV 2009
I see what you mean, I will have to investigate my side a bit more.
Thanks for your comments.
Regards
Rob