Vb API selection
Hello,
I'm trying to make a selection, using the example in instalation folder. I'm connected with the running session in CREO, but I'm unable to make the selection.
There is an messagebox appearing the follwing message.

Any help?
Hello,
I'm trying to make a selection, using the example in instalation folder. I'm connected with the running session in CREO, but I'm unable to make the selection.
There is an messagebox appearing the follwing message.

Any help?
What about the parameter? Does it exist in the model?
In your code you get a parameter DESCRICAO_PAR, read the value of this parameter. Then write this value back to parameter. If the model don't have this parameter, then you will get an error.
Dim paramOwner As IpfcParameterOwner
Set paramOwner = session.CurrentModel
Dim parameter As IpfcParameter
Set parameter = paramOwner.GetParam("DESCRICAO_PAR")
Dim modelItem As CMpfcModelItem
Set modelItem = New CMpfcModelItem
Dim paramValue As IpfcParamValue
Set paramValue = modelItem.CreateStringParamValue("TEST")
parameter.SetScaledValue paramValue, Nothing
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.