SimplifiedLogic / creoson

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

feature - resume with feat_id #26

Closed Zepmanbc closed 4 years ago

Zepmanbc commented 4 years ago

Hello,

is there a way to resume a feature with the "feat_id"

Something like:

{
    'command':'feature',
    'function':'resume',
    'sessionId':'123456789123456789',
    'data':{
        'file':'myfile.prt',
        'feat_id':'12345'
    }
}
davidhbigelow commented 4 years ago

I don’t think so... we set that up for name-based to keep it simpler for automation.

Can you try to rename the feature then suppress/resume?

I am sure it would be possible - but we felt that it would be really hard to require IDs.

Dave

On Tue, Oct 1, 2019 at 8:17 AM Zepmanbc notifications@github.com wrote:

Hello,

is there a way to resume a feature with the "feat_id"

Something like:

{ 'command':'feature', 'function':'resume', 'sessionId':'123456789123456789', 'data':{ 'file':'myfile.prt', 'feat_id':'12345' } }

— 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/26?email_source=notifications&email_token=AAMSRJL6HFKJMQ4XF3PCYXDQMM5T5A5CNFSM4I4IVVUKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HO2PA5A, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMSRJNJSCC4P2TK4TSCVYDQMM5T5ANCNFSM4I4IVVUA .

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

Zepmanbc commented 4 years ago

Hi Dave,

I want to resume one by one every feature, I got all the features with features/list so I get all ordered IDs. I was thinking the same, I can rename all unnamed features with nearly the same automatic name because with the result of feature/list I got the feature type and the ID so it will be nearly the same but capitalized automatic name: Plane id12345 => named feature: PLANE_ID12345

DieSwartKat commented 4 years ago

We have done something similar with use of mapkeys. Create a search qry file upfront using the find command (binocular icon). Make sure to include the Feat ID in the search CRITERIA. We also use the Feat # . We pass the ID and # into the mapkey on a loop. Then you can find/select the feature and then run a mapkey to unsuppreess it.

It's a little bit like playing darts, but with some care it works 99% of the time.

Zepmanbc commented 4 years ago

I renamed the unnamed features, but i got a problem with GRAPH that i could not rename, and so it did not regenerate. But if I put all theses unnamed features and "impossible to rename features" in a named group, it works fine 👍

edit: for the GRAPH, the strange thing I forget to say is that the feature was named but in the returned list name was empty

adama2000 commented 4 years ago

I've checked in code to let you suppress and resume with a feature id. It'll be in the next release.