saucke
Mechanical
- Jun 14, 2012
- 25
I'm try to build a complex shape using NXOPEN (in vb) and a text file. The text file contains 455 cross sections with 33 points on each cross section. The values are listed in a csv xyz format in a single file. I have written a journal in vb to import the points at each station (cross section), perform a few manipulations with the points, and draw the cross sections curves. The graphics objects (lines and splines) are stored in arrays to access for the creation of the through curves feature.
My problem is that I need to align the cross sections for the ThroughCurvesBuilder by points instead of the default parameters. The shape is slightly off in certain areas and I feel that the ‘by points’ method would somewhat fix these surface errors. Also at one point the cross sections transition from being just a single spline, to be a spline and a line (shape transition). At this transition, the through curves feature alignment method gets confused and really messes up how the shape is drawn. If I open ‘Edit Parameters’ of my feature and change alignment to by points, the points are not defined in a way that works well for the shape.
I have tried to look in the documentation for help on how to do this, but it doesn’t offer enough explanation (or I’m looking in the wrong area). I am on NX 7.5 and if I go to the documentation and I can’t even find some of the NXOPEN features and commands I am using (found them online). There is no way to search the documentation? I seem to have found what I am looking for, but as I said I have not found enough explanation in the DOCS. I found the documentation for the Throughcurvesbuilder by searching the physical UGDOC folder (is there a better way?). This lead me to the AlignmentMethodBuilder and the methods….
And…
If I dig further and look at the OnPathDimensionBuilder class, the information seems to run out on the actual structure of the arguments for these methods.
Using journaling to record what I do isn’t much help either.
This appears to be what I want, but instead of ‘GetPoint’ I would need 'SetPoint' and it would need to allow me to give it a set of points for alignment. I can’t find the above command in the DOCS. Throughcurvesbuilder.Alignment() returns the alignment type, and there doesn’t appear to be an extension of the method beyond that so I’m not sure where the above command comes from.
Sorry the message is long… This is where I am at now. Any help would be greatly appreciated… even if it’s just a better way to find things in the documentation. Or maybe a better way to create the body given a text file of this size.
Thanks,
Jeff
My problem is that I need to align the cross sections for the ThroughCurvesBuilder by points instead of the default parameters. The shape is slightly off in certain areas and I feel that the ‘by points’ method would somewhat fix these surface errors. Also at one point the cross sections transition from being just a single spline, to be a spline and a line (shape transition). At this transition, the through curves feature alignment method gets confused and really messes up how the shape is drawn. If I open ‘Edit Parameters’ of my feature and change alignment to by points, the points are not defined in a way that works well for the shape.
I have tried to look in the documentation for help on how to do this, but it doesn’t offer enough explanation (or I’m looking in the wrong area). I am on NX 7.5 and if I go to the documentation and I can’t even find some of the NXOPEN features and commands I am using (found them online). There is no way to search the documentation? I seem to have found what I am looking for, but as I said I have not found enough explanation in the DOCS. I found the documentation for the Throughcurvesbuilder by searching the physical UGDOC folder (is there a better way?). This lead me to the AlignmentMethodBuilder and the methods….
Code:
void setAlignPoints(OnPathDimensionBuilder[] alignPoints)
throws NXException, RemoteException
Set the Alignment Points when sections have been set up.
The incoming points are organized section by section.
The points parent section match the pre-existing sections
held by this object
And…
Code:
int addPoint(OnPathDimensionBuilder alignPoint)
throws NXException, RemoteException
Insert a given point, and create corresponding points on other sections.
The points on other sections are computed based on existing alignment points
Using journaling to record what I do isn’t much help either.
Code:
onPathDimensionBuilder1 = throughCurvesBuilder1.Alignment.GetPoint(0, 0)
This appears to be what I want, but instead of ‘GetPoint’ I would need 'SetPoint' and it would need to allow me to give it a set of points for alignment. I can’t find the above command in the DOCS. Throughcurvesbuilder.Alignment() returns the alignment type, and there doesn’t appear to be an extension of the method beyond that so I’m not sure where the above command comes from.
Sorry the message is long… This is where I am at now. Any help would be greatly appreciated… even if it’s just a better way to find things in the documentation. Or maybe a better way to create the body given a text file of this size.
Thanks,
Jeff