Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Post Configurator new nodes & groups

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi all,

 

Im trying to create an custom node "Sven Voeten".

In that node I want subnodes "Debugging" and "Custom Settings".

Ive tried several commands but I'm unable to get the result I want.

 

Does someone has an example how this should be achieved?

Sven Voeten
Pre-sales NX CAM / Manufacturing Consultant
cards PLM Solutions
13 REPLIES

Re: Post Configurator new nodes & groups

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello,

 

You need a Root Group, then a subnode and then a Group with a Property. Sample:

 

LIB_GE_CREATE_obj AYSTree {UI_TREE} {
                   LIB_GE_property_ui_name "NAME_ROOT"
                   LIB_GE_property_ui_tooltip "Root Object"

 

                           set id "AYSGrupoNode"
                          set $id "0"
                          set datatype($id) "NODE"
                          set access($id) 112
                          set dialog($id) {{AYS}}
                          set descr($id) {{Descripcion Grupo}}
                          set group_status($id) 1
                          set ui_parent($id) "root"
                          set ui_sequence($id) 0

 

                                         set id "AYSSubNodeInfo"
                                         set $id "0"
                                         set datatype($id) "NODE"
                                         set access($id) 112
                                         set dialog($id) {{Info}}
                                         set descr($id) {Generic Group}}
                                         set group_status($id) 1
                                         set ui_parent($id) "AYSGrupoNode"
                                         set ui_sequence($id) 10

                                                          set id "AYSGrupoProgramador"
                                                          set $id "0"
                                                          set datatype($id) "GROUP"
                                                          set access($id) 112
                                                          set dialog($id) {{Info Group}}
                                                         set descr($id) {{Select User}}
                                                         set group_status($id) 1
                                                        set ui_parent($id) "AYSSubNodeInfo"
                                                        set ui_sequence($id) 10

}

 

LIB_GE_CREATE_obj AYS_ProgramadorDatos {} {


                      LIB_GE_property_ui_name "ProgrammerInfo"
                      LIB_GE_property_ui_tooltip "Name of the programmers"

 

                      set id "Programador"
                      set $id 0
                      set options($id) {NAME 1|NAME 2|NAME 3}
                      set options_ids($id) {0|1|2}
                      set datatype($id) "INT"
                      set access($id) 112
                      set dialog($id) {{Name}}
                       set descr($id) {{Info about the programmer}}
                       set ui_parent($id) "AYSGrupoProgramador"
                      set ui_sequence($id) 10

}

 

Best Regards,

Re: Post Configurator new nodes & groups

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Thanks for the fast response!

 

So I dont need to use the LIB_GE_ui commands?

Sven Voeten
Pre-sales NX CAM / Manufacturing Consultant
cards PLM Solutions

Re: Post Configurator new nodes & groups

Siemens Legend Siemens Legend
Siemens Legend

Both ways are possible. Depends on what is more likely for you.

The LIB_GE_ui command can be also used for creating the groups and nodes. There is a good documentation of it in the web based documentation.

 

Be aware of the fact that the created node/ groups only visible in the UI if they contain a property. Otherwise you will not see them.

 

https://docs.plm.automation.siemens.com/tdoc/nx/12.0.1/nx_help#uid:xid1128418:index_mfgpostconfig:xi...

 

 

    LIB_GE_CREATE_obj Treeelement {UI_TREE} {
        LIB_GE_property_ui_name "Name"
        LIB_GE_property_ui_tooltip "Tooltip"
 
LIB_GE_ui "My Ui Node" "NODE" @MyNodeID root 0 1 222
LIB_GE_ui "My Ui SubNode" "NODE" @MySubNodeID @MyNodeID 0 1 222
LIB_GE_ui "My Ui Group" "GROUP" @MyGroupID @MySubNodeID 0 1 222
}
 
And then you create your properties in a new object.
 
LIB_GE_CREATE_obj test_prop {} {
LIB_GE_property_ui_name "Name"
LIB_GE_property_ui_tooltip "Tooltip"

set id "BooleanProperty"
set $id 0
set options($id) {OFF|ON}
set options_ids($id) {0|1}
set access($id) 222
set dialog($id) {{Boolean Property}}
set descr($id) {{A False or True Property}}
set ui_parent($id) "@MyGroupID"
set ui_sequence($id) -1
}
 
Best regards
Thomas

Re: Post Configurator new nodes & groups

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello,

 

The LIB commands are usually to work with tcl except LIB_GE_CREATE_obj.

 

For example, this command from the LIB_GENERAL give you the date:

 

MOM_output_literal "(it is now: [LIB_GE_date])"

 

If you like add a UI, you should create objets. In the tcl editor newObject and the code begins for LIB_GE_CREATE_obj...

 

You can create an object for RootNode, Subnode and Groups of your layer and then Objects for the properties.

 

Best regards,

 

Re: Post Configurator new nodes & groups

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

With the LIB_GE_ui command I can get it to work.

But with the methode you're suggesting, I dont get any result.

 

Could you review my code below and check what I"m doing wrong?

 

LIB_GE_CREATE_obj Sven_Voeten {UI_TREE} {
LIB_GE_property_ui_name "Sven_Voeten"
LIB_GE_property_ui_tooltip "Custom Node - Sven Voeten"

 

set id "Debugging_Node"
set $id "0"
set datatype($id) "NODE"
set access($id) 222
set dialog($id) {{Debugging}}
set descr($id) {{Settings for debugging}}
set group_status($id) 0
set ui_parent($id) "root"
set ui_sequence($id) -1

set id "Debugging_Group"
set $id "1"
set datatype($id) "GROUP"
set access($id) 222
set dialog($id) {{Debugging}}
set descr($id) {{Settings for debugging}}
set group_status($id) 0
set ui_parent($id) "Debugging_Node"
set ui_sequence($id) -1

set id "SV_Output_Debugging_Info"
set $id 0
set options($id) {ON|OFF}
set options_ids($id) {1|0}
set datatype($id) "INT"
set access($id) 222
set dialog($id) {{Show Custom Debugging Tags}}
set descr($id) {{A numeric Property}}
set ui_parent($id) "Debugging_Group"
set ui_sequence($id) -1
}

Sven Voeten
Pre-sales NX CAM / Manufacturing Consultant
cards PLM Solutions

Re: Post Configurator new nodes & groups

Siemens Legend Siemens Legend
Siemens Legend

You have to put the property in a seperate object:

 

LIB_GE_CREATE_obj yourProps {} {
LIB_GE_property_ui_name "Name"
LIB_GE_property_ui_tooltip "Tooltip"

set id "SV_Output_Debugging_Info"
set $id 0
set options($id) {ON|OFF}
set options_ids($id) {1|0}
set datatype($id) "INT"
set access($id) 222
set dialog($id) {{Show Custom Debugging Tags}}
set descr($id) {{A numeric Property}}
set ui_parent($id) "Debugging_Group"
set ui_sequence($id) -1

}

 

Edit: 

LIB_GE_CREATE_obj Sven_Voeten {UI_TREE}...the argument UI_TREE is for creating UI elements in the UI-tree.

A property can not located in the UI Tree, that is the reason to create it in a new object.

 

Best regards

Thomas

Re: Post Configurator new nodes & groups

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Can't get it to work, I will use the LIB_GE_ui command.

 

Thanks for the help!

Sven Voeten
Pre-sales NX CAM / Manufacturing Consultant
cards PLM Solutions

Re: Post Configurator new nodes & groups

Siemens Legend Siemens Legend
Siemens Legend

Hi Sven,

 

if i used the code you have created, just with the difference that the property is in a new object it will work on my side...Have a try to copy that again Smiley Wink

 

LIB_GE_CREATE_obj Sven_Voeten {UI_TREE} {
LIB_GE_property_ui_name "Sven_Voeten"
LIB_GE_property_ui_tooltip "Custom Node - Sven Voeten"

 

set id "Debugging_Node"
set $id "0"
set datatype($id) "NODE"
set access($id) 222
set dialog($id) {{Debugging}}
set descr($id) {{Settings for debugging}}
set group_status($id) 0
set ui_parent($id) "root"
set ui_sequence($id) -1

set id "Debugging_Group"
set $id "1"
set datatype($id) "GROUP"
set access($id) 222
set dialog($id) {{Debugging}}
set descr($id) {{Settings for debugging}}
set group_status($id) 0
set ui_parent($id) "Debugging_Node"
set ui_sequence($id) -1


}

LIB_GE_CREATE_obj yourProps {} {
LIB_GE_property_ui_name "Name"
LIB_GE_property_ui_tooltip "Tooltip"

set id "SV_Output_Debugging_Info"
set $id 0
set options($id) {ON|OFF}
set options_ids($id) {1|0}
set datatype($id) "INT"
set access($id) 222
set dialog($id) {{Show Custom Debugging Tags}}
set descr($id) {{A numeric Property}}
set ui_parent($id) "Debugging_Group"
set ui_sequence($id) -1

}

 

Best regards

Thomas

Re: Post Configurator new nodes & groups

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi Thomas,

 

The debugging node does show in the UI but i want it in a sub node.
Below is a picture with the result of your code.

image.png

 

With the other method I get the result I want, as shown below.

image.png

Sven Voeten
Pre-sales NX CAM / Manufacturing Consultant
cards PLM Solutions
Highlighted

Post Configurator new nodes & groups

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi all,

 

Im trying to create an custom node "Sven Voeten".

In that node I want subnodes "Debugging" and "Custom Settings".

Ive tried several commands but I'm unable to get the result I want.

 

Does someone has an example how this should be achieved?

Sven Voeten
Pre-sales NX CAM / Manufacturing Consultant
cards PLM Solutions
NX CAM Postprocessor Group
NX CAM Postprocessor Group

Members (94)