Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SSS148 on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

CATIA CAA Dialog Editor Value

Status
Not open for further replies.

NaWin55

Mechanical
Mar 21, 2020
98
Hello all

i am new to CAA

i am trying to get value from CATDlgEditor
i used following code

double dNumOfPoints = m_pCreatePntsDlg->GetEditor()->GetValue();

but i cant get the entered value in Editor, getting 0

i used GetText() method but i tried to convert in to double using ConvertToNUM in CATUnicodestring got the value for int variable but for double i am not getting correct value

here is the code

CATUnicodeString dNumOfPoints = m_pCreatePntsDlg->GetEditor()->GetText();
int dretriedValX = 0;
CATUnicodeString xParamVal(dNumOfPoints);
xParamVal.ConvertToNum(&dretriedValX,"%d");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor