Compilation by feature name?
Compilation by feature name?
(OP)
Does anyone know of a way to produce a listing of features that follow a certain naming convention? For example, I want to create a listing of all features (and what part/assembly they are in) that all have the naming scheme CR_xxx. Can this be easily accomplished?
Thanks in advance.
Thanks in advance.
Best regards,
Matthew Ian Loew
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips Fora.





RE: Compilation by feature name?
Follow me:
1. On the top level assembly, please check the Feature option from Item Display in Model Tree.
2. In model tree click on the binoculars (or FIND option from TREE menu).
3. Now, in the new window called SEARCH, Chosse INFO for Type and in the scroll list click on the Feature Name. Fill in the Value blank with CR_*. You should have someting like this:
+---------------------+---+---------------------+
|Feat Name | = | CR* |
+---------------------+---+---------------------+
Then click on ADD button
Click on the FILTER TREE Check Box.
4. The model tree will show only the features having names CR* and their parts/assemblies.
4. In Model Tree -> File->Save As Text-> and you can load the file you saved in WordPad or Word or your prefered program and send it to printer.
5. Deactivate the Filter Tree in Search Window and the Model Tree will show all the parts/assemblies, you know the default state.
Good luck!
-Hora
RE: Compilation by feature name?
Brilliant!
mapkey cr @MAPKEY_LABELCR;\
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1 `Edit`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;~ Activate `main_dlg_cur` `Edit.Find`;\
mapkey(continued) ~ Open `treequery` `ClassOptMenu`;~ Close `treequery` `ClassOptMenu`;\
mapkey(continued) ~ Select `treequery` `ClassOptMenu`1 `Info`;\
mapkey(continued) ~ Select `treequery` `CategoryList`1 `Feat Name`;\
mapkey(continued) ~ Input `treequery` `ValueInput` `C`;~ Input `treequery` `ValueInput` `CR`;\
mapkey(continued) ~ Input `treequery` `ValueInput` `CR_`;\
mapkey(continued) ~ Input `treequery` `ValueInput` `CR_*`;\
mapkey(continued) ~ Update `treequery` `ValueInput` `CR_*`;~ Activate `treequery` `AddBtn`;\
mapkey(continued) ~ Activate `treequery` `TreeFilterBtn`1 ;\
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1 `Info`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
mapkey(continued) ~ Activate `main_dlg_cur` `Info.psh_info_model_tree`;\
mapkey(continued) ~ Activate `inputname` `okbutton`;\
mapkey(continued) ~ Select `treequery` `ExprToFindList`1 `0`;\
mapkey(continued) ~ Activate `treequery` `RemoveBtn`;~ Activate `treequery` `CloseBtn`;
Two related questions though:
Can I make the input (CR_* here) inputted manually during the execution of the mapkey AND have the file name automatically have the same name without the wild card?
Thank you again!
Best regards,
Matthew Ian Loew
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips Fora.
RE: Compilation by feature name?
I see you are happy. Concerning the manualy input, I know you can create a mapkey with PAUSE FOR KEYBOARD, but I'm affraid it won't work here. But you can stop the mapkey execution just before typing the name. Concerning the part's filename I don't think you can do it because you cannot store the file name in a variable and then to pass the value to the filter. Only a program in C can do this.
By the way, you can explore to the end this filter functionality and works nice when you want to know if there are frozen or suppressed components in your top level assembly.
Have a nice evening!
-Hora