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

Wiki Page: OPPID - How to Customize the Pipeline Annotation

$
0
0
Applies To Product(s): OpenPlant PID Version(s): 08.11.10.XXX (SS5) Environment: Windows 7/8.1/10 (64 bit) Area: Customization Subarea: Original Author: Gerd Eichler, Bentley Product Advantage Group Background In this process you will modify the existing annotation format for a process line (Pipeline) so that the annotation string will contain the Size, Line Number and Service. When complete the annotation string for a process line will format as 4"-1001-SW where Service is coming from the PIPELINE.object. When a pipeline annotation is about to be placed and the user hovers over a pipe run then all of the annotation's properties that match a property of the pipe run object are synchronized. In the same way all properties of the annotation that have a PIPELINE_ prefix are synchronized with the corresponding porperties of the pipeline object. The following descriptions use the ansi project of OpenPlant PowerPID. Reviewing the existing pipeline annotation classes Start OPPID by selecting the ansi project and loading PID_Example.dgn Placing an existing annotation Place a pipeline In the Taskbar select the Annotation workflow and expand Pipeline annotations Click the 2 nd annotation tool pipeline-size-spec and hover with the annotation string over the pipeline. The annotation string adopts the values from the specific pipe run. Place the annotation Review the corresponding annotation class From the main menu select Utilities > Class Editor → The ECClassEditor is launched Open the schema OpenPlant_PID.01.02.ecschema.xml. Expand the class tree Annotation > Pipe Line Annotation and select class Pipe Line Annotation alternate 1 Select the class Pipe Line Annotation alternate 1. On the Properties tab select the property Pipe Line Annotation String . The property has the Calculated ECProperty Specification custom attribute that contains the annotation format. For class Pipe Line Annotation the format is: this.SIZE & "-" & this.NAME & "-" & this.PIPELINE_NAME Create and customize a new pipeline annotation class Select the class Pipe Line Annotation and click the right mouse button from the context menu select the option Add Derived Class. A new class with the default name "Class" is created". Change the class name to "PIPE_LINE_ANNOTATION_ALT6" and the display label to "Pipe Line Annotation alternate 6" and click the Save button in the loer right corner. Select the properties tab. Click the Add button and select New. A new property is created Change the name of the new property to "PIPELINE_SERVICE" and the display label to "Pipeline Service" and click Save to save the changes.. By prefixing SERVICE with "PIPELINE_" you are telling the product to use the SERVICE from the PIPELINE and not PIPE RUN. Likewise if you wanted to add the Design Specification from the PIPELINE to the annotation string you would add a property named PIPELINE_SPECIFICATION. Select the Pipe Line Annotation String property and click the Overwrite button. Change the Calculated ECExpression to this.SIZE & "-" & this.PIPELINE_NAME & "-" & this.PIPELINE_SERVICE Click the Save button. Restart OPPID. From the main menu select Utilities > Keyin. The keyin dialogbox is displayed. Type the command "pid insert OpenPlant_PID PIPE_LINE_ANNOTATION_ALT6" and hit enter. The new annotation string is displayed on the cursor. Hover over a pipe run to adopt the values for the annotation. Place the annotation. Add your newly created annotation to user tools for a quick reference Open PIDProjectSymbols.dgnlib file from your %project%\Dataset\dgnlibs\ folder In the top menu select Workspace->Customize Browse to the desired place (User Tools->Annotation->Pipeline Annotations) Copy one of the existing tools to easily modify it; Change the name and Key-in of the tool ("pid insert OpenPlant_PID PIPE_LINE_ANNOTATION_ALT6") Copy this tool to Tasks as well; Save and close the dgnlib file. Restart OPPID. Notes : Properties from the Pipeline (PIPING_NETWORK_SYSTEM) must have the prefix “PIPELINE_ ” PIPELINE_NAME PIPELINE_SERVICE Property types on the Annotation class must match the property types defined on the class in which they will annotate Property ‘MYSTRING’ defined as string on PIPING_NETWORK_SYSTEM (typeName="string") Property ‘PIPELINE_MYSTRING ’added to PIPE_LINE_ANNOTATION_ALT6 class must be defined as string (typeName="string") Mismatched property types will result in annotation not evaluating correctly Comments or Corrections? Bentley's Product Advantage 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>