cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Did anyone figure out a reliable way of getting a value type from PRO_E_MFG_PARAM_COMPOUND child element?

FV
17-Peridot
17-Peridot

Did anyone figure out a reliable way of getting a value type from PRO_E_MFG_PARAM_COMPOUND child element?

Hi all,

Creo API had replaced the old PRO_E_MFG_PARAMVAL element which was a child of PRO_MFG_PARAM element with the new PRO_E_MFG_PARAM_COMPOUND element with children:

PRO_E_MFG_PARAM_COMPOUND

|__PRO_E_MFG_PRM_NAME

|__PRO_E_MFG_PRM_VAL_DBL

|__PRO_E_MFG_PRM_VAL_STR

|__PRO_E_MFG_PRM_ATTR

The problem is that in old PRO_E_MFG_PARAMVAL the value type could be acquired via ProElementValuetypeGet but with the API changes we could get values from either child element. One could only guess that if PRO_E_MFG_PRM_VAL_STR had returned a null pointer then the value type must be double...

TIA.

( I had placed a tech support call, but no answer so far...)

Feliks.

ACCEPTED SOLUTION

Accepted Solutions
FV
17-Peridot
17-Peridot
(To:FV)

Hi all,

Tech Support had confirmed an API gap. It will be addressed with Creo 4.0 or later... Meanwhile one should use the NULL value of the string element as the test for a type of double and non NULL value of the string element for a type of wchar_t*.

Feliks. 

View solution in original post

1 REPLY 1
FV
17-Peridot
17-Peridot
(To:FV)

Hi all,

Tech Support had confirmed an API gap. It will be addressed with Creo 4.0 or later... Meanwhile one should use the NULL value of the string element as the test for a type of double and non NULL value of the string element for a type of wchar_t*.

Feliks. 

Announcements
Business Continuity with Creo: Learn more about it here.

Top Tags