cancel
Showing results for 
Search instead for 
Did you mean: 

Item Revise to be allowed only from CAD Integration - TC session

Creator
Creator

Hello,

 

Revise action should be allowed if CAD datasets are attached to Item Revision, only from CAD Integration - TC session.

 

Trying to implement it as below:

1. Create a BMIDE extension and attach on ItemRevision (Operation - Item_copy_rev, Extension point - Pre-condition)
2. Set an Environment variable in Integration launch script.
3. Extension checks for the env variable value (ITK API TC_getenv is used) and if Item Revision has CAD dataset attached.
4. If the variable is not set, returns a custom error message.

As the environment variable will not be picked incase of 4-T session as tcserver.exe process is launched on Corporate server, cannot go ahead with this solution.

Please let me know if there are any suggestions for this solution to work or is there another approach.

 

TIA

5 REPLIES

Re: Item Revise to be allowed only from CAD Integration - TC session

Genius
Genius

Can it not be restricted by suppressing the "Revise" from the command supression ? That way, one should attach the cad dataset to the itemrevision thru save as option from the NX to revise.

 

Hope this helps !

Teamcenter 10.1.3
TC Visualization 10.1.3 (Custom Patch)
NX:8.5 | NX 9.02 | Catia V5 R2012 | AutoCAD 2015 | In-Context Editor |

Re: Item Revise to be allowed only from CAD Integration - TC session

Creator
Creator
There can be Item Revisions without CAD Datasets attached and in that case should be allowed to revise from TC. So cannot go with command supression.

Re: Item Revise to be allowed only from CAD Integration - TC session

Genius
Genius

It will be an interesting use case to understand. Take a look at deep copy rules. I think you will be able to achieve this. Should the CAD Dataset exists, You can revise the item. Else it fails to revise the item revision.

 

Hope this helps !

 


 

 

Teamcenter 10.1.3
TC Visualization 10.1.3 (Custom Patch)
NX:8.5 | NX 9.02 | Catia V5 R2012 | AutoCAD 2015 | In-Context Editor |

Re: Item Revise to be allowed only from CAD Integration - TC session

Creator
Creator

From the BMIDE doc, deep copy rules are used to define if the objects attached to a Item Revision can be copied when Revises or Save-as action is performed.

So I cannot use deep copy rules to restric Revise action from Teamcenter session if Revision has CAD dataset attached to it.

Re: Item Revise to be allowed only from CAD Integration - TC session

Genius
Genius

Gautam,

 

With your original solution, try using preference instead of environment variable. You can read pref value from ITK API as well.

 

Regards

Naveen