Quantcast
Channel: OpenPlant | AutoPLANT
Viewing all articles
Browse latest Browse all 12277

Wiki Page: How To Pre-Define What Layer Colors Will Be Assigned Whenusing Color By Layer [TN]

$
0
0
Applies To Product(s): AutoPLANT Piping Version(s): V8i; 08.11.05.36 Environment: N/A Area: N/A Subarea: N/A Original Author: Bentley Technical Support Group Overview There have been requests to be able to assign color layers by reading the color.ini. For example, if a user selected a new line number and service, when they inserted components it would read the color.ini table for "colorbyservice" and not only create the new layer but set the color accordingly. The customization below makes this possible. Solution Copy the following file: ..\program files\bentley\plant (v8i or xm)\modules\base\common\compprop.ebs Copy it to the following folder: ..\project name\config\modules\base\common\ Note: The folders "base" and "common" won't exist. You'll have to create them before copying the file. Open the compprop.ebs file in notepad. Search for the following lines: If(status = at_SUCCESS) Then tempLayer = compLineNumber status = at_PipingSystem_getColorByValue(layerColor, "ByLineNo", compLineNumber) End If Change it to: If(status = at_SUCCESS) Then tempLayer = compLineNumber status = at_Component_getString(compService, compID, "SERVICE") status = at_PipingSystem_getColorByValue(layerColor,"ByService", compService) End If Save and close. Procedure for use in AutoPLANT: Restart AutoPLANT. Start a new drawing. Set the layer and service. Note: Service colors must be defined in the color.ini file before creating the new drawing. Otherwise, the following command should be used when modifying existing drawings: (at_pipingsystemcolortable_reset) Insert a component. Set the layer and service to something different. Insert another component (not connecting). Color should change to the correct service color. Component Color must be set to "Bylayer" Component Layer must be set to "By Line Number" Data Mode should be set to "From Settings" when joining to a pipe with a different line number See Also Product TechNotes and FAQs Plant 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!

Viewing all articles
Browse latest Browse all 12277

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>