Dim model As IpfcModel
        Try
            model = CoCreoAsyncConnection.Session.CurrentModel
            If model Is Nothing Then
                Throw New Exception("Model not present")
            End If
            Dim pOwner As IpfcParameterOwner
            pOwner = CType(model, IpfcParameterOwner)
            Dim pv As IpfcParamValue
            Dim p As IpfcParameter
            pv = (New CMpfcModelItem).CreateStringParamValue("123")
            p = pOwner.GetParam("NAME")
            If p Is Nothing Then
                pOwner.CreateParam("NAME", pv)
            Else
                Dim LstrValue As String = p.GetScaledValue.StringValue
            End If
            run.createParametersFromProperties(model, model.Origin)
        Catch ex As Exception
            MsgBox(ex.Message.ToString + Chr(13) + ex.StackTrace.ToString)
        End Try

相关文章:

  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2021-04-01
  • 2022-12-23
  • 2021-06-11
  • 2022-01-25
猜你喜欢
  • 2022-01-18
  • 2021-08-29
  • 2021-06-25
  • 2021-11-29
  • 2021-11-29
  • 2021-06-26
  • 2022-12-23
相关资源
相似解决方案