To be fair, I'havent found any clear procedure to follow and I'm not sure that my attempts can be considered valid. I tried to add the C:\Program Files\Siemens\NX1899\NXBIN\python folder to the project and tried to import.
Any help would be appreciated.
Also, if someone has managed to use a...
Hi all, I always used NX programming features relying on Visual Studio and VB libraries.
Recently I started looking into Python, mainly to exploit the tools offered by several precompiled libraries that are very useful.
I'd like to be able to run scripts built outside of NX, using Visual...
Mh, that's a very good tip. Sadly i never worked with layers.
You said that the delete body command (i guess removeRange works in the same way) only removes from display. Which commands should i use to remove the entities from the body collection? I'm fairly certain that only the first body is...
I'm writing in VB a tool that needs to perform a series of modeling operations starting from a CAD template part that is given as input (it is manually modelled by an operator before the use of the automatic tool).
For a series of reasons i need to be sure that the part that I am using as...
Hi, I am a NX10 user. (10.0.3)
I am currently working on a Reverse Engineering task. I need to import the reference data to start a reverse engineering process in Siemens NX 10. My data is a point cloud in .ply format. The cloud, however, has also RGB data associated with each point and I need...
Well, the way I see it, you have the same results, once that the method is working. But i thought that doing the "full control" by command line (windows cmd) was simpler for me than start a server/remoting connection.
I don't know much about programming, so maybe I am wrong or I missed...
Hi! Another question (I guess you are all hating me at this point, with all these questions)..
I built a tool to select a few faces from a part (let's call it example.prt) and to save the Nxopen.face.tag of the selected faces in a txt file.
My idea was to use this file and the TAG contained...
Yes, you are absolutely right. I was looking into that, but I would have liked to know if there was a way to do that via batch. Anyway, i guess i'll use a remote server.
Thank you for your answer, i will look into ugs_router.
I'll try to explain everything better with an example. I'd like to open a part (let's say that contains a cylinder) and, leaving the same first session open, launch a series of journals/dll interacting with the cylinder. For example, I...
Hi all! I need to launch a DLL that i wrote from batch.
I found something on multiple forums and on nxjournaling.com, but not quite the information that i need. I have a few questions:
The best thing would be to launch a DLL (simuling the CTRL+U command within NX) that could interact with a...
Hi all!
I have another question for you: I am currently trying to write a piece of code in NX open VB that performs these operations: (once again, I am a beginner)
- Open a part (DONE)
- get the collection of the STLs of a part (DONE)
- cycle through every single STL and ask the user to...
The distances are not actually listed in the listing/information window. The step that i miss to be able to print the data is exactly that. In the "deviation gauge" window there is no option to send the data to the information window (as in the "measure minimum distance" tool, for example), and...
This is the data that i need, but i can only see/read it in the 3D view of the software. Every evaluated distance is reported on the corresponding point of the STL.
This is what i wrote:
Dim lw1 As ListingWindow
lw1 = theSession.ListingWindow
Dim myDocs As String
myDocs = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
Dim outputFile2 As String = IO.Path.Combine(myDocs, "testlog.txt")
lw1.Open()...