ello All,
The following codes come from SDK sample:
PipeElbowComponentData elbow1Data = new PipeElbowComponentData(PipeElbowType.PIPE_ELBOW_90_DEGREE, specification, nominalDiameter); PipeElbowComponent elbow1 = new PipeElbowComponent(pipe1.GetEndPoint(1), elbow1Data, 0, DrawingView.ViewFront, false); elbow1.Create();
If I have known the spec and the elbow type, no problem. But if I'd like to place all components in a spec, it means I don't know what's in the spec.
I can read mdb, get all necessary information, such as EC_CLASS_NAME / MAIN_SIZE / etc. For example, the EC_CLASS_NAME is LONG_RADIUS_90_DEGREE_PIPE_ELBOW, how could I know the pipeelbowtype PipeElbowType.PIPE_ELBOW_90_DEGREE? Can SDK get the pipeelbowtype as per EC_CLASS_NAME?
Or can OPM SDK know what components are available in a spec, then I don't need to access spec mdb to get the information?
Thanks a lot.
Hi Changsong,Thankyou for posting your query on Plant Technical Forum.Well need to divert your to SDK team, Let me check upon this part.RegardsAshutosh Patil