SimplifiedLogic / creoson

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

Bug: Feature.list_selected when selected with Search-Tool #65

Open Haschtl opened 3 years ago

Haschtl commented 3 years ago

First thank you for the feature to list the selected features!

There is a little bug, which should be maybe documented (I think the bug comes from Creo)

When I select a feature manually with the mouse, the selection works:

let paramObj = new creo.FeatureObj();
paramObj.list_selected();

returns

{
  "featlist": [
    {
      "status": "ACTIVE",
      "name": "CS_ASM0",
      "file": "test.prt",
      "type": "KOORDINATENSYSTEM",
      "feat_id": 1
    }
  ]
}

But when I select a feature using creo's search-tool (the binoculars at the bottom-bar), close the search-tool and execute it again, the featlist is empty. This does not happen, if the "Search for" and "Search in" (not sure about the english-names) entries of the search-tool are set to KE. If they are set to e.g. COORDINATESYSTEM, it does not work.