21. How can I map a AutoPLANT component like a line stop support through a PXF file into AutoPIPE?


 

 

Applies To    
Product(s): AutoPIPE,  
Version(s): All  
Area: Import  
Original Author: Bentley Technical Support Group  
Date logged
& Current version
 
Oct 2024
24.00.01.152
 

Problem:

When importing a PXF model from OpenPlant Modeler, line stop supports are not imported.

    1. How can we fix this issue?
    2. How can I map a AutoPLANT component like a line stop support through a PXF file into AutoPIPE model? 

Solution:

Use the following procedure to add/map a PXF support to an AutoPIPE support.

1. Open the imported PXF file in a text editor that details line number and column position of the cursor (ex. Ultra Edit, NotePad++, etc..)

2. Search for and list all of the components being imported. Components are located on lines starting with "2100" class code.

Example:

In this example file, 13 lines starting with "2100" were found. 

One can further narrow the search to a specific type of components (ex. supports) by searching for class code and Component class

Example: search for "2100 AT_SUPPORT"

In this example file, 4 lines starting with "2100 AS_Support" were found. 

Question: Are there only 4 supports in this example? or are there more than 4 supports in this example file? 

Answer: Take a moment and think, look at the first search... again how many supports?

There are 7 supports in this file. The narrow search did not consider component class tags that do not start with 

"2100 AT_SUPPORT"

Ex: 2100 AT_SHOE,

Users must take care to really scrutinize the components list to find all the supports. 

3. Open CADAP.MAP file in a text editor.

This file can be found by using AutoPIPE's command Preference (Tools > Tools > Settings > Preferences), select "User profile Path" .

4. The CADAP.MAP file is how AutoPIPE maps a particular component to an AutoPIPE component. If the mapping is missing the component may be imported using default mapping or completely ignore. Search CADAP.MAP file for each of the Support component class tag types mentioned above. Confirm the imported support is being correctly mapped to the desired AutoPIPE component. 

Example:

Steps to confirm imported support mapping 

a. Identify a "support component class tag" from import PXF file, ex. "AT_SUPPORT_UBOLT".

b. Search CADAP.MAP file for "AT_SUPPORT_UBOLT"

c. Find 

Question: Which line is used for mapping "AT_SUPPORT_UBOLT", Line 216 or line 677?

Answer: 216... Why?

The mapping MUST be an exact mapping, line 216 is an exact mapping, while Line 677 is not an exact mapping.

d. Scroll to the top of the section to understand the column format. Find column callout and definitions.  

e. The AutoPLANT component (column 1) is mapped to an AutoPIPE component in column 2 and 3.

f. Search CADAP.MAP file for "COMPONENT MAPPING TABLE"

g. Again, read the details on column description, and then scroll down a few rows to Component Item Type = 17:

h. As indicated in column 3, scroll down a few more rows to the "Support Mapping Table".

i.  Recall the "Class Mapping table" above, row 216, column 4 = "GUIDE", find this designation in the "Support Mapping table", row = 1105.

j. Column 3 is defined as "COLUMN 3 : AUTOPIPE SUPPORT TYPE ( 4 CHARACTERS )". 

Conclusion,

Line 90 of the imported PXF file has a component designated by "2100 = AT_SPPPORT_UBOLT"

Searching the CADAP.MAP for this "Component Class Tag" finds an exact match on line 216 - "AT_SPPPORT_UBOLT"

The "CLASS MAPPING TABLE" on line 216 designates the "Item Type" = 17 and "Menu Ref Key" = "GUIDE"

The "COMPONENT MAPPING TABLE" on line 1080 maps this component to the "Support TABLE"

The "SUPPOT MAPPING TABLE" on line 1105 maps " Menu Ref Key = "GUIDE" to "AUTOPIPE SUPPORT TYPE" = "GUID"

5 Supports are having component class matching in the Cadap.map file for example:
Go to line no. 83 "2100 AT_SUPPORT_TEESHOE" here: 2100 is the code for a component and AT_SUPPORT_TEESHOE is the component class tag.

5. Again, search PXF file for and confirm each imported support mapping in the CADAP.MAP file. 

Question: Is every support from the example PXF file mapped in the CADAP.MAP file?

Answer: No. which one(s)?

6. All support entries, with the exception of one, are mapped in the CADAP.MAP file. The exception occurs on Line 374, where "2100 AT_SUPPORT" is not included in the CADAP.MAP file 

Insert a new Support mapping

a. Start by opening the CADAP.MAP

b. Scroll down to the "SUPPORT MAPPING TABLE" (lines 1087 to 1116) and decide what the support "AT_Support" will be mapped too

Ex. 13 - Stop = Line

d. Next go back to the "CLASS MAPPING TABLE", on lines 90 to 1042, decide exactly what line the new mapping will be inserted on

Suggest to keep all components of the same type in the same area of the file. After reviewing the "CLASS MAPPING TABLE", 

find most supports are designated with the prefix "AT_Support", which occur on lines 204 to 238, and lines 659 to 677.

Ex.  Since there is no Line support, for no other reason the new support mapping will be added on Line 678

e. Copy the entire row 677, and paste onto line 678 (note, the text should be all aligned with the row above)

f. Enable the text editor setting to "Show all Characters"

(notes, only spaces and text are allowed, nothing else, especially tabs!)

g. While maintaining column alignment, modify the data on line 678 as needed

(Note, suggest to set editor to Overwrite mode instead of Insert mode)

7. Done.

8. Save the CADAP.MAP file, restart AutoPIPE and try importing the PXF file again. 

If you have any troubles, please post a new technical support case, include your PXF and CADAP.MAP files for review. 

See Also

Bentley AutoPIPE Resource Center

External Links

Bentley Technical Support KnowledgeBase

Bentley LEARN Server