![]() The code demonstrates the use of the AskFaceProps function and a couple of vector functions that may come in handy. I encourage you to step through the code to see what is going on, I can almost guarantee that you will learn something. This journal will only work with NX 8 or above. Construct a studio spline through these points which will closely approximate the centerline of the tube.The average of these points determines the center point of the tube cross section. At each point of interest along the length of the tube, generate equally spaced points around the circumference (U direction) of the tube.Use the V direction surface data to help generate the tube centerline. Collect the B-surface data, make sure the surface is closed in the U direction.The user is prompted to select a B-surface face.He has given us permission to reproduce some code he originally posted in the GTAC forum in answer to the request for extracting the centerline of an unparameterized free form tube. He is a regular contributor at the GTAC languages forum and also at the eng-tips Siemens NX forum and he likes to write and share the type of code that can get you out of situations like this. NXJournaling: Let me introduce you to Frank Swinkels. NXJournaling: Ok, assuming it is made of straights and bends, we can extract lines from the cylindrical faces then.Ĭoworker: Well, it doesn't have straight sections or simple bends so much. NXJournaling: No problem, here's a journal that lets you select a tube and adds up the lengths of the defining sectionsĬoworker: actually, it is from an imported part there are no defining objects in the file. Scene: a non-descript grey fabric covered box that currently contains a workstation running NX and 2 coworkersĬoworker: Hey, I need to measure the length of this tube I have.
0 Comments
Leave a Reply. |