Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Mar 21, 2020
Messages
98
Location
IN
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

Back
Top