Applies To Product(s): AutoPLANT Version(s): 08.11.06.30 Environment: N/A Area: N/A Subarea: N/A Original Author: Jesse Wolfe, Bentley Technical Support Group Overview Occasionally, especially in cases where a drawing is restored from backup, it may take a bit of legwork to get the restored copy up and running normally. Oftentimes, the Repair Drawing function in the AutoPLANT Relationship Manager can resolve all issues with such Drawings. In cases where the errors persist, a variable called NEXT_GROUP_CODE has often become "out of whack". This variable is kept in Models for the purpose of assigning Comp ID's in the Project Database. Comp ID's are assigned to each component placed in a sequential alpha-numerical fashion and will usually look something like this AT_G1C8B8JN_0. The NEXT_GROUP_CODE is stored in the Drawing Variables as a placemarker so that upon each saved change the COMP_ID's will know where to pick up assigning for the next component. The issue here is that a restored backup may contain a NEXT_GROUP_CODE variable that is already taken in the Project Database. The following steps resolve this error by resetting the NEXT_GROUP_CODE to the correct value. Steps to Resolve the Error: **WARNING.. The following suggested steps require edits to the Project Database, only qualified AutoPLANT Administrators or other personnel with signifigant experience should attempt these changes** 1. Type the following command at the command line in the model in question with before AutoPLANT is loaded: (at_dwgdata_getfldlist "at_rebis_app" "dwginfo") This will output the DWGIDCODE and the NEXT_GROUP_CODE, write these values down. 2. Open your projdata database and query the RELATIONSHIPINSTANCE table as follows: **In certain Database Formats, you can simply open the table and filter for the values listed below** SELECT *FROM RELATIONSHIPINSTANCE WHERE ID2 LIKE '%DWGIDCODE%' ORDER BY RELATIONSHIPID This will show the records in descending order based on the relationshipid field. The relationshipid field code is defined as follows: AT + DWGIDCODE + NEXT _GROUP_CODE 3. What you need to do is set the NEXT_GROUP_CODE in your model so that it will create the next logical value as a relationshipid. For example if the ID2 value in a given model that needs to be changed is: AT_EGMKC2AN_14D2 Use the following command change the NEXT_GROUP_CODE in the problem model to the next logical value from the RELATIONSHIP INSTANCE table: (at_DwgData_setFld "AT_REBIS_APP" "DWGINFO" "NEXT_GROUP_CODE" "C" "yyyyyy" 1 0 nil) Where the "yyyyy y" equals the desired NEXT_GROUP_CODE. You should just make it the next code that will be found by the application. For instance if the current value is AT_EGMKC2AN_14D2, change the NEXT_GROUP_CODE to 14D3, this represents the next logical code to be used to create a valid relationshipid. Once that is done save your model then load piping and try to place a component. You should be able to, in that case everything is now fine in that model. See Also Product TechNotes and FAQs External Links Bentley Technical Support KnowledgeBase Bentley LEARN Server Comments or Corrections? Bentley's Technical Support Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!
↧