Skip to main content
1-Visitor
July 24, 2017
Question

Creo Toolkit using C

  • July 24, 2017
  • 1 reply
  • 4960 views

How to fetch an Unique ID for .Prt, .Asm, drawing?

1 reply

15-Moonstone
July 25, 2017

They should have a unique id (name + extension/type). If they haven't you have a problem inside your data management. Creo need a unique identifier and uses for this the filename.

 

If you have problems with doubled files you can generate a unique ID by getting the hash value from the file or something like that. 

 

Br,

Eike

Madhavi1-VisitorAuthor
1-Visitor
July 25, 2017

Thanks for reply Eike!

Yah there has to be  unique ID for each file (part,asm,drawing). As if  now I have not found any.

I have tried ProMdlIdGet but it's not persistent between sessions.

If I generate my own unique ID then I will need to add/attach it as a property to the part (or asm/drawing) and later I have to write a fucntion which will return the Part for given unique id.

Pro toolkit is in use for so long and I am sure people must have faced this situation.

I was wondering how did they handle it.

 

Regards,

Madhavi

15-Moonstone
July 25, 2017

o.O Did you know Creo?

 

Just create a user parameter on a Model (could be current model) and finish ... or if you want to rework all models automatically build an async. application or use an application that is already on the market like:

 

B&W Smart Update

INNEO Solutions Model Processor

 

Both can rework a list of models, create parameter and fill them with listed values.

 

Br,

Eike