Unfortunately, both the NX message box and the .Net message box both take complete control away from the user until the message box is cleared. I don't believe that either will be a solution to this problem.
Thanks for the response, cowski. I see that you have an entry about NX message boxes on nxjournaling.com (a great site that everyone should visit!). I will take a look and see if I can use that to create the journal I need.
I am looking to create a journal that will turn on specific layers for the user, allow the user to view the model at different angles, advance to a next step with new layers turned on, and repeat until the user has reviewed all necessary layers.
As an example, when the user runs the journal...
Looking into this further, I thought I had solved the problem by using the line
Dim AA as New RegEx("^\d")
to look only for the RightHandSide values that begin with a number only. Unfortunately, some of the expressions I am looking to change actually start with a decimal point (instead of...
Cowski and others have helped me in the past to create a journal that would locate and edit the names of multiple expressions in a given part. I would like to do something similar with expression values. Basically I want the journal to locate all expressions with a specified value, then change...
Frank,
Thanks for the response. After I left the office last night I went back and looked at some code for an automated stp file export we use (admittedly, I should have done this prior to posting) and realized the changes I needed to make to get the code to work for this. I'm glad to see that...
Frank,
The direction of the Y-axis is working as intended. Thank you so much.
As for the movement from one CSYS to another, the part file is only going to have points, lines, and datum planes when the move function will be called. Unfortunately the current code will not work. How difficult...
Yes, the imported files contain only coordinate data for point creation. These points are used to create planes and lines. I've already got this part working and implemented in our system, which is discussed here:
As this is part of a larger journal that will import data from several files, I...
How difficult would it be to take all points, lines, bodies, everything from all layers and move them from a defined CSYS to the part's absolute coordinate system? This would essentially automate the process of doing a 'Move Object' function of the 'CSYS to CSYS' variety and selecting everything...
Something like this should work:
Const SketchLayerStart as Integer = 21
'Make 'MaxLayer' the last layer you are willing to move a sketch to
Const MaxLayer as Integer = 35
dim i as integer = 0
dim j as integer = SketchLayerStart
'move sketches
for each sketchObj as Sketch in...
So I was able to use the code from Frank in this thread to automate the datum CSYS creation. My issue is that the direction of the Y-axis seems to be inconsistent and I can't figure out why.
In Frank's code, the user specifies the plane normal of the X-axis, the line for the direction of the...
Thanks for the help Frank. I believe I can use this to create something that will automatically generate the CSYS without any manual user input. My next step will be importing a seperate part and aligning it to the created datum CSYS. I'm not sure when I will get to this, but once I get it a...
That sounds correct. As for the geometry I have previously talked about, it is already being created and is necessary for the file to function appropriately, so it will be there regardless.
I am looking to add to a journal to create some datum CSYS.
Currently, the journal will path to and import two text files. The first text file contains coordinates for three sets of points that are used to create a plane. Big shoutout to FrankSwinks for helping me with that task in this...
Thanks again cowski. I probably won't have too much time to mess around with this today, but I wanted to thank you while the thread was still on the front page.