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

Wiki Page: How to Round Off Values After Decimal For Support Co-ordinates

$
0
0
Applies To Product(s): OpenPlant Isometrics Manager Version(s): 08.11.09.404 & above Environment: Windows 7 64 bit & Others Area: Settings/Attributes Subarea: Original Author: Rahul Kumar, Bentley Technical Support Group To round off Support co-ordinates after decimal point in OpenPlant Isometrics Manager. Background While labelling the support co-ordinates in OpenPlant Isometrics Manager, values displayed with multiple numeric after the decimal point. It has been required to have the control with specific count after decimal. Below are the steps to achieve the desired settings. Steps to Accomplish In Class Editor, Open ‘OpenPlant_3D.01.04.ecschema.xml’ schema and supplement it with ‘OpenPlant_3D_Supplemental_Isometrics_Isoextractor.01.04.ecschema.xml’ Schema. To add a Specific BOM Labels custom attribute on a Support Class an easiest way to do so is to copy it from some other class, say PIPE_BEND which already has it. See images below. Edit this custom attribute on Support class. Delete old entries. Add a new one for coord labels: SUP_COORD_LABEL. For a values use this expression: "X: " & System.Math.Round(this.SUPPORT_POINT_X,0) & "$Y: " & System.Math.Round(this.SUPPORT_POINT_Y,0) & "$Z: " & System.Math.Round(this.SUPPORT_POINT_Z,0). See image below: Edit the Labels, use $( SUP_COORD_LABEL) as a text value for user note on supports. Run the isometrics, see the coordinate output. If required you can modify label note, let’s say use EL instead of Z or any other letters instead of X/Y, like it is set for users default OPIM style. Notes: The “$” symbol in the BOM label value text adds a new line in the note itself. For Math.Round function, second attribute is defining how much round off values desired, Setting value as ‘0’ would leave no values after a decimal point. In case of precise value, use other integers. See results below: See Also Enabling annotation of Support co-ordinates in the Isometrics - http://communities.bentley.com/products/plant/design___engineering/w/plant_design_and_engineering__wiki/13379.enabling-annotation-of-support-co-ordinates-in-the-isometrics.aspx 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 16985

Trending Articles