THE PLM STATE

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

Migrate those parametersMost 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 acpjaragile9. 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

p2a_1

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

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:
&lt;table name="PAGE_TWO" id="0"&gt;
&lt;!-- internal CAX field mapping --&gt;
&lt;attribute name="CAX_CRE_SYSTEM" id="2007" set="0" get="1" /&gt;
&lt;attribute name="CAX_FIL_NAME" id="2017" set="1" get="1" /&gt;
&lt;attribute name="CAX_TYPE" id="2009" set="0" get="1" /&gt;
&lt;attribute name="CAX_SUBTYPE" id="2010" set="0" get="1" /&gt;
&lt;attribute name="CAX_MODEL_TYPE" id="1332" set="1" get="1" /&gt;
&lt;attribute name="CAX_MODEL_REF" id="1333" set="1" get="1" /&gt;
&lt;attribute name="CAX_VAR" id="2012" set="0" get="1" /&gt;
&lt;attribute name="CAX_LINK_TYPE" id="1334" set="1" get="1" /&gt;
&lt;attribute name="CAX_LINK_REF" id="1335" set="1" get="1" /&gt;
&lt;/table&gt;
  1. 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.
  2. Save and close CAXClient.xml
  3. 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 acpiniAcpCustomer9.ini
    2. Locate the [ ProEToAgile.Create_DOCUMENT ] section. Here are the current development settings.
[ 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
    1. Add the new parameter to the end:
 RODNEY_EXAMPLE          =  Par.REX1.None
    1. Also add the parameter to [ ProEToAgile.Update_DOCUMENT ] if you want the parameter to be updatable after the initial save.
    2. Restart EC client if its open and log in
    3. Create a new Pro/Engineer part
    4. 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.

Pro/E Parameters

    1. 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.

Create Design

    1. Click OK and save the part
    2. Check Agile

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. [clear-line]

Subscribe to the ZWS Blog

Recent Posts