<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>How to Add Drop down Option Using New Value Map for Pipeline Properties</title><link>https://communities.bentley.com/products/plant/w/plant_design_and_engineering__wiki/50469/how-to-add-drop-down-option-using-new-value-map-for-pipeline-properties</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>How to Add Drop down Option Using New Value Map for Pipeline Properties</title><link>https://communities.bentley.com/products/plant/w/plant_design_and_engineering__wiki/50469/how-to-add-drop-down-option-using-new-value-map-for-pipeline-properties</link><pubDate>Sun, 28 Jun 2020 15:39:54 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2f495e08-33be-4b31-91e4-04252d98fdf9</guid><dc:creator>Rahul Kumar</dc:creator><comments>https://communities.bentley.com/products/plant/w/plant_design_and_engineering__wiki/50469/how-to-add-drop-down-option-using-new-value-map-for-pipeline-properties#comments</comments><description>Current Revision posted to OpenPlant | AutoPLANT Wiki by Rahul Kumar on 6/28/2020 3:39:54 PM&lt;br /&gt;
&lt;h1&gt;&lt;b&gt;&lt;img alt=" " height="60" src="/cfs-file.ashx/__key/communityserver-components-sitefiles/TSG-Logo.png" width="189" /&gt;&lt;/b&gt;&lt;/h1&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;table style="background-color:#dce5f0;border:0px solid #dce5f0;height:142px;width:475px;" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;Applies To&amp;nbsp;&lt;/b&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;OpenPlant Modeler&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;08.11.11.316 (SS6)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Environment:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Windows 7/8.1/10 (64 bit)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Area:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;OpenPlant Modeler&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Subarea:&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Schemas&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Original Author:&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;Rahul Kumar, Bentley Product Advantage Group&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;In OpenPlant Modeler, user wants to define drop down option for Pipeline properties using Value Map option.&lt;/p&gt;
&lt;h1&gt;Background&lt;/h1&gt;
&lt;p&gt;Value Map Class present in schema gives various option to user to pre-define meta data which can be used as any property existing values and to be pulled out from its field as a drop down option. Below wiki describes the steps to manage newly created properties and a new Value map class definition in schema.&lt;/p&gt;
&lt;h1&gt;Steps to Accomplish&lt;/h1&gt;
&lt;ol&gt;
&lt;li&gt;Launch Bentley Class Editor,Open OpenPlant_3D.01.07. ecschema.&lt;/li&gt;
&lt;li&gt;Supplement with below highlighted schema as shown.&lt;br /&gt; &lt;b&gt;Path:&lt;/b&gt; C:\ProgramData\Bentley\OpenPlantModelerV8i\WorkSpace\Projects\OPModeler_Metric\DataSet\Schemas&lt;br /&gt;&lt;br /&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-43/5582.1.1.png"&gt;&lt;img alt=" " border="0" height="386" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-43/584712.jpg" width="670" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;em&gt;&lt;strong&gt;&amp;nbsp;For More information on supplementing schemas&amp;nbsp;&lt;a title="To Supplement schemas" href="/products/plant/design___engineering/w/plant_design_and_engineering__wiki/31218.to-open-schema-in-class-editor"&gt;click here&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt;Navigate to value map class, right click on it and select Add derived class.&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " border="0" height="319" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-43/843067.jpg" width="313" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Create a new class name, say &lt;strong&gt;&lt;/strong&gt; See image below:&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " border="0" height="225" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-43/44848.jpg" width="503" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Switch to Properties tab and add few properties which should be present while assigning to Property attribute in drop down selection. See image below:&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " border="0" height="259" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-43/1568206.jpg" width="649" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " border="0" height="216" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-43/7735600.jpg" width="620" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Navigate to &lt;strong&gt;Pipeline&lt;/strong&gt; class and add property &lt;strong&gt;DESIGN_NOTE&lt;/strong&gt; in it like shown in image below.&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " border="0" height="198" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-43/45283780.jpg" width="765" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Right click on &lt;strong&gt;DESIGN_NOTE&lt;/strong&gt; property &lt;strong&gt;-&amp;gt;&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Custom Attributes&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;--&amp;gt;&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;Add/Remove&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " border="0" height="243" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-43/8741.jpg" width="434" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Select Custom attributes, &lt;strong&gt;ExtendType&lt;/strong&gt; and &lt;strong&gt;Lookup Value Map Pointer&lt;/strong&gt; from dialog box shown below and assign location to schema shown in image.&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " border="0" height="314" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-43/58621.jpg" width="722" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Enter the value as shown in image below. This will map the new Value map class defined and explained in above steps.&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " border="0" height="136" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-43/70471007.jpg" width="724" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Save &amp;amp; Close Schema.&lt;/li&gt;
&lt;li&gt;Launch OpenPlant Modeler.&lt;/li&gt;
&lt;li&gt;Select Create Pipeline and verify result. Notice Dropdown for Property DESIGN_NOTE holds the value.&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " border="0" height="358" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-43/8671266.jpg" width="329" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h1&gt;See Also&lt;/h1&gt;
&lt;div class="abbreviated-post-header shared-link"&gt;&lt;a href="/products/plant/w/plant_design_and_engineering__wiki/12020/schema---openplant-modeler"&gt;&lt;a href="https://communities.bentley.com/products/plant/w/plant_design_and_engineering__wiki/12020/schema---openplant-modeler"&gt;communities.bentley.com/.../schema---openplant-modeler&lt;/a&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="abbreviated-post shared-link  with-image "&gt;&lt;/div&gt;
&lt;h1&gt;Comments or Corrections?&lt;/h1&gt;
&lt;p&gt;Bentley&amp;#39;s&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Product Advantage&lt;/span&gt;&amp;nbsp;Group requests that you please confine any comments you have on this Wiki entry to this &amp;quot;Comments or Corrections?&amp;quot; section. THANK YOU!&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: OpenPlant Modeler, OPMv8i, ValueMap, Value Map, drop down list, Drop Down, Schemas, Pull Down Menu&lt;/div&gt;
</description></item></channel></rss>