void AsdkAcUiDialogSample::OnButtonPoint() { // Hide the dialog and give control to the editor BeginEditorCommand();
ads_point pt;
// Get a point if (acedGetPoint(NULL, "\nPick a point: ", pt) == RTNORM) { // If the point is good, continue CompleteEditorCommand(); m_strXPt.Format("%g", pt[X]); m_strYPt.Format("%g", pt[Y]); m_strZPt.Format("%g", pt[Z]); DisplayPoint(); } else { // otherwise cancel the command (including the dialog) CancelEditorCommand(); }
} |