Showing results for 
Search instead for 
Do you mean 
Reply

Notepad++ customizations for NX

[ Edited ]

Many of us have contributed to a custom language file for Notepad ++ that recognizes several NX file types. This was posted on the old BBS. Until the old attachments are transfered, I want to be sure this is available here.

Mark Rief
Retired Siemens
9 REPLIES

Re: Notepad++ customizations for NX

Re: Notepad++ customizations for NX

Thank you for the Notepad++ customisation. It was really useful 

 

Regards,

Karthik Jeeves

Re: Notepad++ customizations for NX

Hi Mark

 

Thanks for the file. (Very) stupid question. What does one do once the file has been copied ine  the notepad ++ folder as suggested in the link?

 

Thanks

 

Regards

 

JXB

Production: NX9.0.3.4, NX10.0.2.6
Development: VB.NET (amateur level !)

Re: Notepad++ customizations for NX

If you edit a file with the appropriate extension, NPP knows how to treat it (comments/major/minor words, etc.).

If you have a generic extension (e.g. ".txt") file and want to treat it as a specific NX file type, you can pull down the "Language" menu and select as appropriate.

 

Ken

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


Re: Notepad++ customizations for NX

[ Edited ]

Thanks for the file. (Very) stupid question. What does one do once the file has been copied ine  the notepad ++ folder as suggested in the link?


 

If you do not have any user defined languages, then just drop the file in the appdata folder - on my system it is C:\Users\rief\AppData\Roaming\Notepad++. Then the Language menu should list them all.

 

There is a UI: go to Language > Define your language.

It does not create more files - it will add languages to the existing userDefineLang.xml file.

 

There is a lot of help installed with Notepad++, and on line.

 

Mark Rief
Retired Siemens

Re: Notepad++ customizations for NX

[ Edited ]

 

I was just setting this up for someone else and discovered something had been lost somewhere along the way.... Adding the "MOM" commands as major words to tcl.

To add them:

- open up Notepad++

- Settings -> Style Configurator

- Select (Language list) "TCL"

- Select ("Style" list) "INSTRUCTION WORD"

- In the "User defined keywords" block (lower right of dialog), paste in the following:

MOM_abort MOM_abort_event MOM_add_to_address_buffer MOM_add_to_block_buffer MOM_add_to_line_buffer MOM_ask_address_value MOM_ask_env_var MOM_ask_event_type MOM_ask_ess_exp_value MOM_close_output_file MOM_set_debug_mode MOM_disable_address MOM_do_template MOM_do_template_file MOM_enable_address MOM_force MOM_force_block MOM_incremental MOM_load_definition_file MOM_log_message MOM_on_event_error MOM_on_event_error_debug MOM_on_parse_error MOM_on_parse_error_debug MOM_open_output_file MOM_output_literal MOM_output_text MOM_output_to_listing_device MOM_reload_kinematics MOM_reload_variable MOM_reset_sequence MOM_run_user_function MOM_set_address_format MOM_set_line_leader MOM_set_seq_on MOM_set_seq_off MOM_suppress MOM_string_toupper always buffer create end off on once start

This will then show the MOM commands (e.g. "MOM_output_literal") in blue (like regular tcl commands) 

Note this info is stored in "stylers.xml" in the "user" appdata area (C:\Users\<your username here>\AppData\Roaming\Notepad++)

Ken

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


Re: Notepad++ customizations for NX

Updating the above list for NX11:

MOM_abort MOM_abort_event MOM_add_to_address_buffer MOM_add_to_block_buffer MOM_add_to_line_buffer MOM_ask_address_value MOM_ask_definition_element MOM_ask_env_var MOM_ask_event_type MOM_ask_ess_exp_value MOM_ask_init_junction_xform MOM_ask_machine_zero_junction_name MOM_ask_oper_csys MOM_ask_syslog_name MOM_close_output_file MOM_check_out_license MOM_convert_point MOM_disable_address MOM_display_message MOM_do_template MOM_do_template_file MOM_enable_address MOM_force MOM_force_block MOM_has_definition_element MOM_incremental MOM_load_definition_file MOM_load_lathe_thread_cycle_params MOM_log_message MOM_on_event_error MOM_on_event_error_debug MOM_on_parse_error MOM_on_parse_error_debug MOM_open_output_file MOM_output_literal MOM_output_text MOM_output_to_listing_device MOM_post_oper_path MOM_reload_kinematics MOM_reload_variable MOM_reset_sequence MOM_run_postprocess MOM_run_user_function MOM_set_address_format MOM_set_attribute MOM_set_debug_mode MOM_set_env_var MOM_set_line_leader MOM_set_seq_off MOM_set_seq_on MOM_set_turbo_mode MOM_set_turbo_pos_output MOM_set_turbo_rapid MOM_skip_handler_to_event MOM_suppress MOM_string_toupper always buffer create end off on once start format address block MOM_POS MOM_MCS_GOTO MOM_CONTACT_POINT MOM_CONTACT_GOTO
Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Notepad++ customizations for NX

[ Edited ]

Attached find the latest user defined language file for Notepad++ v7.4.2, which also includes the additions of @MarkRief for the new UDE keywords.

Extract the contents of the archive to %APPDATA%\Notepad++ if there is no file yet. If there is already an existing one, you may want to compare the two files and merge the changes.

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: Notepad++ customizations for NX

I missed a bunch of MOM commands in the Shop Docs section of the docs

Updated:

MOM_abort MOM_abort_event MOM_add_to_address_buffer MOM_add_to_block_buffer MOM_add_to_line_buffer MOM_ask_address_value MOM_ask_definition_element MOM_ask_env_var MOM_ask_event_type MOM_ask_ess_exp_value MOM_ask_init_junction_xform MOM_ask_library_attributes MOM_ask_machine_zero_junction_name MOM_ask_oper_csys MOM_ask_part_units
MOM_ask_syslog_name MOM_ask_unique_filename MOM_close_output_file MOM_check_out_license MOM_convert_point MOM_cycle_object MOM_disable_address MOM_display_message MOM_do_template MOM_do_template_file MOM_dump MOM_enable_address MOM_extend_translator MOM_force MOM_force_block MOM_has_definition_element MOM_incremental MOM_load_definition_file MOM_load_lathe_thread_cycle_params MOM_list_oper_path MOM_list_user_defined_events MOM_log_message MOM_on_event_error MOM_on_event_error_debug MOM_on_parse_error MOM_on_parse_error_debug MOM_open_output_file MOM_output_literal MOM_output_text MOM_output_to_listing_device MOM_post_oper_path MOM_reload_kinematics MOM_reload_variable MOM_remove_file MOM_reset_sequence MOM_restart_upon_return MOM_run_postprocess MOM_run_user_function MOM_set_address_format MOM_set_attribute MOM_set_debug_mode MOM_set_env_var MOM_set_line_leader MOM_set_seq_off MOM_set_seq_on MOM_set_turbo_mode MOM_set_turbo_pos_output MOM_set_turbo_rapid MOM_skip_handler_to_event MOM_source MOM_suppress MOM_string_toupper always buffer create end off on once start format address block MOM_POS MOM_MCS_GOTO MOM_CONTACT_POINT MOM_CONTACT_GOTO

Ken

 

 

BTW - If you would like *all* the MOM commands documented in ONE page in the docs, you might want to add a "me too" to ER 8932736

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