cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Translate the entire conversation x

IBAValueDBService().updateAttributeContainer() API information

Pushpak
11-Garnet

IBAValueDBService().updateAttributeContainer() API information

Hello Team,

We want an API where I can able to set the IBA attributes without check-out object.

So, To achieve that we want confirmation on below API whether PTC is supporting or not. which we are using for setting an IBA attribute.

IBAValueDBService().updateAttributeContainer();

4 REPLIES 4
HelesicPetr
22-Sapphire II
(To:Pushpak)

Hi @Pushpak 

All supported API are listed in a javaDoc documentation

So if your package and function is not part of the javaDoc, then it is not supported.

 

CS17101 Client JavaDoc

 

and your class IBAValueDBService is not part of the javDoc in Windchill 13,0 

there is just IBAValueManagerEvent

 

HelesicPetr_0-1689326069742.png

PetrrH

If you needed to know if PTC supports an API ask PTC rather than rolling the dice on what someone in the community posts in a reply.  Why take the risk on something this critical?

 

That said, updating without an attribute without iterating the attribute holder (no checkout/checkin) is very doable.  I do it all the time, particularly if I'm helping with a bulk update.

However, I wrote my own code to pull this off using supported APIs.  I did not do this with a direct dB edit although that's certainly doable as well.

 

I recently wrote a utility that was used to update an existing attributes value or create new if no value exists.

If using my code these updates are quick.  The utility is run from a Windchill shell and we did over 300K in 89 minutes.

 

 

 

HelesicPetr
22-Sapphire II
(To:d_graham)

Hi @d_graham 

The question about supporting APIs I guess is connected to Windchill+ and a customization delivering to that system.

 

You could see that there were many questions about the sported API last months in PTC Community from PTC employee.

 

I have understood that Windchill+ has a verification mechanism that controls used API in custom code and check them against the javaDoc documentation and if is not part of it the verification failed and do not allow to implement the customization. 

 

PetrH

@HelesicPetr 

Hard to say as the poster did not specify ANY info regarding what they are using.

 

But if it is a Windchill+ issue as you describe, it seems what the poster should have done is simply write a few lines of code and test it themselves.

 

That said, global attributes can certainly be created and/or edited with iterating the object. 😁

Announcements
Top Tags