SimplifiedLogic / creoson

OpenSource Automation using JSON Transactions for PTC's CREO Parametric
http://www.creoson.com
MIT License
81 stars 23 forks source link

How to get *node number* for Mapkeys? #35

Closed Zepmanbc closed 4 years ago

Zepmanbc commented 4 years ago

Hello

I'm importing STL file in a part and want to select a Csys for postionning it. I have done it with a mapkey

"~ Command `ProCmdModelImpAppendNew` ;\
~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` `file_open`;\
~ Trail `UI Desktop` `UI Desktop` `PREVIEW_POPUP_TIMER` \
`file_open:Ph_list.Filelist:<NULL>`;\
~ Select `file_open` `Ph_list.Filelist` 1 \
`my_stl_file_to_import.stl`;\                                   <= HERE IS THE STL FILE NAME
~ Command `ProFileSelPushOpen_Import@context_dlg_open_cmd` ;\
~ Activate `intffeat_file_dlg` `Dlg_PushBtn_Ok`;\
~ Activate `main_dlg_cur` `chkbn.intffeat_reference.0` 1;\
~ Select `intffeat_reference.0.0` `PH.CsysRG` 1 `Csys`;\
~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node24`;\          <= HERE IS THE *node* INDICATING CSYS
~ Trail `UI Desktop` `UI Desktop` `PREVIEW_POPUP_TIMER` \
`main_dlg_w1:PHTLeft.AssyTree:<NULL>`;\
~ Activate `main_dlg_cur` `dashInst0.Done`;"

I would like to be sure which CSYS I'm using, how can I found the node number? Is there a link with the feat_id or another information available?

Thanks

davidhbigelow commented 4 years ago

Node Number = FeatureID?

On Mon, Nov 4, 2019 at 11:40 AM Zepmanbc notifications@github.com wrote:

Hello

I'm importing STL file in a part and want to select a Csys for postionning it. I have done it with a mapkey

"~ Command ProCmdModelImpAppendNew ;\ ~ Trail UI Desktop UI Desktop DLG_PREVIEW_POST file_open;\ ~ Trail UI Desktop UI Desktop PREVIEW_POPUP_TIMER \ file_open:Ph_list.Filelist:<NULL>;\ ~ Select file_open Ph_list.Filelist 1 \ my_stl_file_to_import.stl;\ <= HERE IS THE STL FILE NAME ~ Command ProFileSelPushOpen_Import@context_dlg_open_cmd ;\ ~ Activate intffeat_file_dlg Dlg_PushBtn_Ok;\ ~ Activate main_dlg_cur chkbn.intffeat_reference.0 1;\ ~ Select intffeat_reference.0.0 PH.CsysRG 1 Csys;\ ~ Select main_dlg_cur PHTLeft.AssyTree 1 node24;\ <= HERE IS THE node INDICATING CSYS ~ Trail UI Desktop UI Desktop PREVIEW_POPUP_TIMER \ main_dlg_w1:PHTLeft.AssyTree:<NULL>;\ ~ Activate main_dlg_cur dashInst0.Done;"

I would like to be sure which CSYS I'm using, how can I found the node number? Is there a link with the feat_id or another information available?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SimplifiedLogic/creoson/issues/35?email_source=notifications&email_token=AAMSRJORO2P6CAZMK5FNW7LQSBF7JA5CNFSM4JIWF4OKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HWU5SNQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMSRJJWLAYWZZL2RK46HDTQSBF7JANCNFSM4JIWF4OA .

-- David Bigelow, President Simplified Logic, Inc https://www.simplifiedlogic.com | SimilarParts.ai C: 317-431-5454

Zepmanbc commented 4 years ago

Sadly it is not. But nevermind, i've found how to do, I can select the Csys with the search tool by its name.

~ Command `ProCmdModelImpAppendNew` ;\
~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` `file_open`;\
~ Trail `UI Desktop` `UI Desktop` `PREVIEW_POPUP_TIMER` \
`main_dlg_w1:PHTLeft.AssyTree:<NULL>`;\
~ Trail `UI Desktop` `UI Desktop` `PREVIEW_POPUP_TIMER` \
`file_open:Ph_list.Filelist:<NULL>`;\
~ Select `file_open` `Ph_list.Filelist` 1 \
`my_stl_file_to_import.stl`;\                                   <= HERE IS THE STL FILE NAME
~ Command `ProFileSelPushOpen_Import@context_dlg_open_cmd` ;\
~ Activate `intffeat_file_dlg` `Dlg_PushBtn_Ok`;\
~ Activate `main_dlg_cur` `chkbn.intffeat_reference.0` 1;\
~ Select `intffeat_reference.0.0` `PH.CsysRG` 1 `Csys`;\
~ Command `ProCmdMdlTreeSearch` ;\
~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNameLayout.BasicNameList` \
`CS0`;~ Activate `selspecdlg0` `EvaluateBtn`;\          <= HERE IS THE NAME *CSO* FOR ME
~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
~ Activate `main_dlg_cur` `dashInst0.Done`;"
davidhbigelow commented 4 years ago

Ok - Glad you got that figured out!