Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution
Highlighted

How to get the post processor name

Hello

How does i get the name of the current used post processor. I would like to run a journal, wich writes this name as a part attribute. This would allow me to use this in the OWI.

I recorded a journal. But i can't figure out how to replace the .FindObject("NULL_MACHINE")

2017-05-03_23h43_57.png

 

 

 

 

 

 

 

 

Thanks for every inspiration

6 REPLIES

Re: How to get the post processor name

I don't think you can edit that, without importing a machine from  the machine library.

 

What I would do is set an attribute (I would use a part attribute, but you could use the NULL_MACHINE object as well).

 

This is in the NX11 docs:

MOM_set_attribute

 

Docs available at:

https://docs.plm.automation.siemens.com/tdoc/nx/11/nx_help#uid:xid1128418:index_xid917284:xid913731:...

 

I didn't find it in the NX10 docs, so possibly it is new with NX11?

(you don't say what version you are using)

If not, you can extend MOM using a small API program to define attributes

 

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be steemed than diseaseled


Re: How to get the post processor name

Hello Mr. Akerboom

I'm currently using NX 10.0.3.5 MP8

 

I don't would like to change the machine. ( I made a bad description of my problem)

I just would like the name of the current used machine or pp-name  (Mazak;Hermle; Null_Machine;Generic_Machine....)

 

I think i can use the "MOM_set_attribute" only by running the postprocesor. But the Operation Work instruction should be filled with the Attributes bevor postprocess...

 

is there a solution in vb.net for this?

 

Than you :-)

 

Solution
Solution
Accepted by topic author Bernhard_Swiss
3 weeks ago

Re: How to get the post processor name

In one of my programs, I have the following procedure to get all available post-processors.

        Private Sub GetAllPosts()
            Dim iPostCount As Integer = 0
            Dim sPostNames As String() = Nothing
            Dim Pattern As Text.RegularExpressions.Regex = _
                New Text.RegularExpressions.Regex("(CSE_FILES|pretreatment)", Text.RegularExpressions.RegexOptions.IgnoreCase)
            
            theUFSession.Cam.OptAskPostNames(iPostCount, sPostNames)
            
            AllPostsList.Clear()
            
            For Each thePost As String In sPostNames
                If Not Pattern.IsMatch(thePost) Then
                    AllPostsList.Add(thePost)
                End If
            Next
            
            AllPostsList.TrimExcess()
            AllPostsList.Sort()
        End Sub

If a machine is selected, then the post-processor list is reduced to the ones specified with the machine by NX.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: How to get the post processor name

Thank you very much Mr. Pendel

 

Your solution works fine. But how can i get only the current used Postprocessor name?

Our Postprocessor has the option of a 3-Axis and a 5-Axis mill.

 

2017-05-05_11h15_25.png

 

 

 

 

 

 

 

 

 

Best regards

 

 

Re: How to get the post processor name

[ Edited ]

How is the post-processor selection done?

If the user selects it, then there is no way to find out what he did.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: How to get the post processor name

Okey

I forgot that the user select the Postprocessor. You are totally right.

 

Thank you for your assistence and have a nice weekend :-)