Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hello, I've been using filters for a long time but never was satisfied with cliking to select window and choosing specified one. So i desided to create mapkey for myself fo without desturbing workflow i could change filter by using mapkeys.
Here comes the problem:
In PTC Creo PRT and ASM filters are different in this list.
Not much of a problem if mapkey knew about choosing element in this list by it's name but look at what it does when choosing it.
in some cases there is ID in list in other name of element
I would like to syncronize mapkeys for both PRT and ASM so they are the same but feature in PRT is "1" in ASM is "6"
is there any other place where can i change this filter but not in the bottom right corner so it chooses filter by it's name not by ID in list?
Solved! Go to Solution.
You can test these mapkeys and see if they help resolve the issue of working in both part and assembly mode. They are not generated by recording the mapkey but exploit some unique numeric codes to set the selection filters. I am not able to answer any question related to how these codes are used or generated within Creo and be aware that PTC would probably consider these mapkeys as unsupported.
!**** Selection Filter Control
mapkey qa @MAPKEY_LABELselection filter set annotation;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 283;
mapkey qc @MAPKEY_NAMEselection filter set curve;\
mapkey(continued) @MAPKEY_LABELselection filter set curve;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 13;
mapkey qd @MAPKEY_NAMEselection filter set datum;\
mapkey(continued) @MAPKEY_LABELselection filter set datum;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 320003;
mapkey qe @MAPKEY_NAMEselection filter set edge;\
mapkey(continued) @MAPKEY_LABELselection filter set edge;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 9;
mapkey qf @MAPKEY_NAMEselection filter set feature;\
mapkey(continued) @MAPKEY_LABELselection filter set feature;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 0;
mapkey qg @MAPKEY_NAMEselection filter set geometry;\
mapkey(continued) @MAPKEY_LABELselection filter set geometry;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 320002;
mapkey qp @MAPKEY_NAMEselection filter set part;\
mapkey(continued) @MAPKEY_LABELselection filter set part;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 4;
mapkey qq @MAPKEY_NAMEselection filter set quilts;\
mapkey(continued) @MAPKEY_LABELselection filter set quilts;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 11;
mapkey qs @MAPKEY_LABELselection filter set surface;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 5;
mapkey qv @MAPKEY_NAMEselection filter set vertex;\
mapkey(continued) @MAPKEY_LABELselection filter set vertex;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 8;
Hi,
if Feature filter is the only one "problem" then you can define My Filter (containing Feature option) in Assembly and Part mode.
When you select My Filter, Creo will add following line into trail file in both modes.
~ Select `main_dlg_cur` `Sst_bar.filter_list` 1 `udf_`
I don’t want to rely on a static selection filter. When working with surfaces, I frequently switch between selecting vertices, datums, surfaces, quilts, etc. For that reason, I prefer a setup where I can quickly switch filters without losing focus on the model window.
Using mapkey allows me to instantly bring correct filter up and then by clicking on entiti the small quick-access selection window I’ve predefined will appear. This helps me stay efficient while modeling. It also lets me clearly distinguish between overlapping geometry—like when a surface and a quilt are layered in the same area. I can easily identify and select the correct one without cycling endlessly.
You can test these mapkeys and see if they help resolve the issue of working in both part and assembly mode. They are not generated by recording the mapkey but exploit some unique numeric codes to set the selection filters. I am not able to answer any question related to how these codes are used or generated within Creo and be aware that PTC would probably consider these mapkeys as unsupported.
!**** Selection Filter Control
mapkey qa @MAPKEY_LABELselection filter set annotation;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 283;
mapkey qc @MAPKEY_NAMEselection filter set curve;\
mapkey(continued) @MAPKEY_LABELselection filter set curve;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 13;
mapkey qd @MAPKEY_NAMEselection filter set datum;\
mapkey(continued) @MAPKEY_LABELselection filter set datum;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 320003;
mapkey qe @MAPKEY_NAMEselection filter set edge;\
mapkey(continued) @MAPKEY_LABELselection filter set edge;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 9;
mapkey qf @MAPKEY_NAMEselection filter set feature;\
mapkey(continued) @MAPKEY_LABELselection filter set feature;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 0;
mapkey qg @MAPKEY_NAMEselection filter set geometry;\
mapkey(continued) @MAPKEY_LABELselection filter set geometry;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 320002;
mapkey qp @MAPKEY_NAMEselection filter set part;\
mapkey(continued) @MAPKEY_LABELselection filter set part;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 4;
mapkey qq @MAPKEY_NAMEselection filter set quilts;\
mapkey(continued) @MAPKEY_LABELselection filter set quilts;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 11;
mapkey qs @MAPKEY_LABELselection filter set surface;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 5;
mapkey qv @MAPKEY_NAMEselection filter set vertex;\
mapkey(continued) @MAPKEY_LABELselection filter set vertex;\
mapkey(continued) ~ Command `ProCmdSelFilterSet` 8;
Hi, this is perfect. This is what I wanted.
Thank you so much.
Is there any possibility you can help me create mapkeys for Drawing?
Hi,
it seems to me that you didn't understand that the My Filter trick solves the problem with different IDs in the Feature filter.