OpenPlant V8i Component Scripting C# Settings for the values FACING

Hi, everyone

I created an add-in project to insert my own element (valve).

Everything is built well, but the FACING attribute values for the ports do not work.

My element has 2 ports: mainPort and runPort. For each of them there can be different values of the attributes FACING_1 and FACING_2.

But when you insert an element into the project, for all ports the same values are set equal to FACING_1.

Please tell me where the settings for the values FACING_1 and FACING_2 are carried out.

Regards, Vitaliy

Parents
  • Can you share your C# Project? Facing values are read from spec and your spec should have its columns mapped to correct Fluid Port properties for Facing.

    If you have customized your schemas, please share your V8i OPM project too, so that we can take a look.

    Thanks,

  • Hi!
    Thanks for reply.

    I attach the archive with C# project, the archive with schemas (these are schemes where I did some changes), test spec and description about adding a new element in Bentley Class Editor.
    I created the element in OPModeler_Imperial project.

    SafetySpringValve.zip6505.Schemas.zip
    testSpec.mdb

    DESCRIPTION SAFETY_SPRING_VALVE.dll:
    ---------------------------------
    Assembly Name : SafetySpringValve
    Class Name : SAFETY_SPRING_VALVE
    Namespace : SafetySpringValve
    
    
    
    ==================================================================================
    ADDING CLASS IN Bentley Class Editor:
    -----------------------------------------
    Child Class Angle Valve
    Placement tool : ValvePlacementTool
    Handler Type : Valve
    
    
    
    ==================================================================================
    ADDING ATTRIBUTES IN Bentley Class Editor:
    --------------------------------------------
       Name 		|| 	Display Label 	|| 		Type 	|| 		     Description 			|| 	PropertyName (OpenPlant_Physical_Catalogue_Property_Map)
    ----------------------------------------------------------------------------------------------------------------------------------------------------
    COMP_HEIGHT		|| Component Height	|| 		double	|| 	Valve height					||		COMP_HEIGHT
    END_COND_M		|| END_COND_M		|| 		string 	|| 	Type of connection on mainport	||		END_COND_1
    END_COND_R		|| END_COND_R		|| 		string 	|| 	Type of connection on runport	||		END_COND_2
    FLNG_OD_M		|| FLNG_OD_M		||		string	||  Flange diameter on mainport		||		FLNG_OD_M
    FLNG_OD_R		|| FLNG_OD_R		||		string	||  Flange diameter on runport		||		FLNG_OD_R
    FLNG_TH_M		|| FLNG_TH_M		||		string	||  Flange thickness on mainport	||		FLNG_TH_M
    FLNG_TH_R		|| FLNG_TH_R		||		string	||  Flange thickness on runport		||		FLNG_TH_R
    RATING_1		|| RATING_1			||		string	||  Valve rating on runport			||		RATING_1
    
    
    
    ==================================================================================
    CALL mdl IN OpenPlant Modeler Vi8: 
    -----------------------------------------------
    mechaddin place SAFETY_SPRING_VALVE dsc=Piping

    Regards, Vitaliy

  • tesSpec mdb is blocked by the website. Can you please rename the extension of mdb to something else like .txt and upload it again/?

    Thanks.

Reply Children
No Data