Skip to main content
2-Explorer
January 26, 2020
Question

Mapkey Syntax?

  • January 26, 2020
  • 1 reply
  • 3844 views

I'd like to minimize the number of lines in my Mapkey code...

For example, today I have a line that selects "node12" (recorded cursor selection)

                                   Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node12`;\

I know I can search the model tree but I wonder if there is a way I can just specify the Feature Name in the Tree...

Like...                      Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `FRONT`;\

I know that doesn't work but I wonder if there is a command that will let me do that. 

 

Thanks

1 reply

16-Pearl
January 27, 2020

Hi Doneill,

 

If you don't like to search for planes in the model tree, you could use Rename from Model Properties, save the mapkey using this alternative way...

 

rename.png

doneill2-ExplorerAuthor
2-Explorer
January 27, 2020

Thanks... I never noticed you could change the names there... 

The Search Tool works fine... (see the code I posted in  Mapkey - Select a Plane without using the Mouse )

(Martin - I have a question... I like how when you post code, it looks like it's in a text box... how did you do that?)

 

I'm just trying to expand my knowledge of Mapkey Code...

Are there instructions somewhere on  Mapkey Commands & Syntax?

I figure there are probably some good tricks out there...

 

 

 

 

 

24-Ruby III
January 28, 2020

@doneill wrote:

Thanks... I never noticed you could change the names there... 

The Search Tool works fine... (see the code I posted in  Mapkey - Select a Plane without using the Mouse )

(Martin - I have a question... I like how when you post code, it looks like it's in a text box... how did you do that?)

 

I'm just trying to expand my knowledge of Mapkey Code...

Are there instructions somewhere on  Mapkey Commands & Syntax?

I figure there are probably some good tricks out there...

 


Hi,

use following button to insert text box.

insert.png

 

Note: PTC does not provide any official information concerning mapkey syntax.