27
Jan
2010

How to propagate a Pro/ENGINEER attribute using Oracle’s Engineering Collaboration

Written by Rodney McCabe   
Migrate those parameters

Most Oracle customers, who purchase Oracle’s Engineering Collaboration (EC) product to interface Pro/Engineer (Pro/E) to Agile PLM, get services bundled with it so the initial product deployment meets their needs. What happens down the road though if you need to need a new standard parameter to be viewable in Agile?


This article will outline the basics involved in transferring a Pro/E parameter to Agile PLM for design objects. We have written some pretty elaborate scripts to dynamically change configurations based on the engineer’s desire to connect to a test or the “production” system. This blog cannot address every customization scenario, so be advised that this is targeted for the typical, out of the box installation.

It is strongly suggest that you backup the Agile EC working directory prior to making changes; one can never be too cautious, especially when it comes to a sophisticated product such as EC.

Do Your Homework

Get EC Parameters from CAXClient.xml

Locate your CAXClient_Designs.xml file in \acp\jar\agile9. Be advised that some installations are customized so the name of the XML file may be different. It might also be named CAXClient.xml. Open the file in a text editor and note the values for the following properties:

<createObject defaultClass=" FILEFOLDER "/>

This could also be <createObject defaultClass=" DOCUMENT "/>, depending on your implementation. The process is similar except that you will be working in the DOCUMENT location of this file instead of FILEFOLDER.

Get the design object attribute

For this example, the attribute you see below was created. It was done by opening the Agile Java client on the admin tab and taking the following steps. Using the DOCUMENT object rather than FILEFOLDER dictates the object to modify/evaluate:

  1. Navigate to Settings | Data Settings | Classes (and open Classes)
  2. Find File Folders | Designs and open it
  3. Click “User Interface Tabs”
  4. Double click your Page Two attributes (this may have been renamed)
  5. Click the “Attributes: Page Two” tab
  6. [Optional] In my case, I was setting up a new page two attribute, so I double clicked Text13 and entered the information seen in the screen shot below

  7. p2a_1

  8. Get the base ID for the object (Page_Two.Text13 i.e. 1303)

  9. p2a_2

Configure the Engineering Collaboration client

CAXClient XML


It is now time to add the property to CAXClient_Designs.xml:

  1. Open the XML file if you have not already done so
  2. Search on <subclass name=" FILEFOLDER”.
  3. After locating the FILEFOLDER subclass, scroll down until you reach the <table name=" PAGE_TWO" node. If creating a Title page attribute, go to one of those sections instead. Here is the existing configuration:
  4. <table name="PAGE_TWO" id="0">
    <!-- internal CAX field mapping -->
    <attribute name="CAX_CRE_SYSTEM" id="2007" set="0" get="1" />
    <attribute name="CAX_FIL_NAME" id="2017" set="1" get="1" />
    <attribute name="CAX_TYPE" id="2009" set="0" get="1" />
    <attribute name="CAX_SUBTYPE" id="2010" set="0" get="1" />
    <attribute name="CAX_MODEL_TYPE" id="1332" set="1" get="1" />
    <attribute name="CAX_MODEL_REF" id="1333" set="1" get="1" />
    <attribute name="CAX_VAR" id="2012" set="0" get="1" />
    <attribute name="CAX_LINK_TYPE" id="1334" set="1" get="1" />
    <attribute name="CAX_LINK_REF" id="1335" set="1" get="1" />
    </table>
  5. Add <attribute name="RODNEY_EXAMPLE" id="1303" set="1" get="1"/>
    The id value came from step 7 above. Defining set will allow you to update the value on interactive save.
  6. Save and close CAXClient.xml
  7. Re-launch EC, and select Agile New, you will see the example attribute shown at the bottom of the property list. The label displayed will actually be the text pulled from the Agile configuration for that object id. RODNEY_EXAMPLE is just a configuration reference.

Create Design


At this point, the attribute value has been propagated to Agile.


Oracle Agile PLM


AcpCustimer Configuration Settings

The topic of the blog was Pro/E to Agile, not interactive save to Agile though, so let’s do some more work. Modify the AcpCustomer9.ini file

  1. Open \acp\ini\AcpCustomer9.ini
  2. Locate the [ ProEToAgile.Create_DOCUMENT ] section. Here are the current development settings.
  3. [ ProEToAgile.Create_DOCUMENT ]
    #
    CAX_TYPE = Std.ObjectType.ToUpper
    CAX_NEW_NUMBER = Std.ObjectName.Type.ToUpper
    CAX_CRE_SYSTEM = Std.CreSystem.None
    DESCRIPTION = Std.ObjectName-Type.ToUpper
    DESCRIPTION = Par.DESCRIPTION.ToUpper
    CAX_TIMESTAMP = Std.VerStamp.None
    CAX_LINK_TYPE = Std.ReferenceType.ToUpper
    CAX_LINK_REF = Std.ReferenceModel.Range-0-180
    CAX_MODEL_TYPE = Std.FamilyType.ToUpper
    CAX_MODEL_REF = Std.FamilyModel.Range-0-180
  4. Add the new parameter to the end:
  5.  RODNEY_EXAMPLE          =  Par.REX1.None
  6. Also add the parameter to [ ProEToAgile.Update_DOCUMENT ] if you want the parameter to be updatable after the initial save.
  7. Restart EC client if its open and log in
  8. Create a new Pro/Engineer part
  9. In Pro/E go to Tools | Parameters and create a new parameter (REX1 for Rodney, Example 1) and give it a value. Later, you can add this to your config.pro, but that’s another blog.

  10. Pro/E Parameters

  11. Now do an interactive save and see what you have. The value is coming from Pro/E!. Through filters and other settings in AcpCustomer9.ini you can tailor the value that gets into Agile.
  12. Create Design

  13. Click OK and save the part
  14. Check Agile
  15. Oracle Agile PLM

Summary

Saving Pro/Engineer parameters isn’t terribly difficult once you get the hang of it. Just may sure you back everything up before you start changing your settings.

You may need to modify the privileges for the Design Engineer role for new fields; check with your Agile administrator if that is outside your comfort zone.

 

Add comment


Security code
Refresh

Zero Wait-State Product Lifecycle Management - PLM Blog

Twitter

More Info

Data Migration Hub

datamigrationhub_icon Visit our Data Migration Hub to read blogs and find other resources to help you be successful in your data migration effort.

Virtualization Hub

Virtualization Hub More companies are starting to leverage the power of virtualization for their PDM and PLM needs. Through our Virtualization Hub you can gain valuable insight into this growing trend.

The EC Hub

Engineering Collaboration Hub Engineering Collaboration enables your design team to work together in ways that shared file access cannot. Visit our hub dedicated to this crucial topic.

Support Hub (Contact)

contact-us Zero Wait-State is working to provide our clients with the best possible service and we are excited about our up coming Support Hub! For now, you can click this icon to contact us for support.