Hi.
Im writing a program that changes the type and dimensions of threads for hydraulic ports. Using the an API method (The set.thread function in ilogic is not working properly so this is a workaround). Here is the code.
AINSI threads work normally, but BSP pipe threads results in this error code:
Which doesn't tell me much about the problem. Am I writing something wrong?
Solved! Go to Solution.
Solved by A.Acheson. Go to Solution.
Shoudn't matter in this case no? The function should automatically make a hole of the appropriate diameter? I used this function to change from ANSI unified to NPT for multiple sizes and it never had any problems. I tried experimenting with it but without success.
The error messages just states one of your variable strings is incorrect. Either look at the dialogue box of the manually selected thread or look to the thread excelsheet to find the correct variable strings to input. I haven't looked at the excel sheet but should there be a G in the Size Designation?
Sample location for thread excel sheet.
C:\Users\Public\Documents\Autodesk\Inventor 202x\Design Data\XLS\en-US\Thread.xls
Thre is indeed a G in the thread designation. Here is the relevant page:
The thread designation seems to be correctly written. I also copied and pasted the name of the threads, resulting in the same error.
Looking at the dialogue box the class string is empty despite there being one in the thread sheet.
This works when the class string is left empty.
Dim tapInfo As HoleTapInfo = def.Features.HoleFeatures.CreateTapInfo(True, "BSP Pipe Threads", " G 1/2-14","",True,)
According to the table, internal thread don't have class.
Class B is empty.
Maybe that's why.
Your on the money, I didn't really spot that when looking at the table. Every day is a school day.
Hi,
Similarly;
I set the thread type to "ISO Pipe Threads". But I'm getting error.
Any idea?
//ISO Pipe Threads:
var holeTapInfo = oPartComponentDefination.Features.HoleFeatures.CreateTapInfo(true, "ISO Pipe Threads", " G 1/2", "", true, "20 mm");
Can't find what you're looking for? Ask the community or share your knowledge.