Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Good morning,
in VB you don't need to use CType(), but you have to declare the correct variable types.
For example:
The method GetParam(sParamName)
So it is better to do it this way:
Dim hCurMdl As IpfcModel
Dim hParameterOwner As IpfcParameterOwnerDim
Dim hParameter As IpfcParameter
Set hCurMdl = hSession.CurrentModel
Set hParameterOwner = hCurMdl ' <<< this is the conversion you need...
Set hParameter = hParameterOwner.GetParam(sParamName)
...
Hope this helps...
Andreas
__________________________________
Andreas Hellmann
MCAD Services Pro/E & Pro/E customization
Am Wartfeld 7
D-61169 Friedberg
phone: +49 151 21259910