Article | 60001533 |
Type | HowTo |
Product | Engine |
Version | 6 |
Date Added | 11/4/2011 |
Submitted by | Bryan Gilbert |
Keywords |
vdDoc.lunits.UType = LUnits.LUnitType.lu_Architectural; // the coordinates are displayed in Architectural units (feet inches etc) .................. double distance; string userInput = vdDoc.ActionUtility.getUserString(); // user inputs 1'-12" distance = vdFramedControl1.BaseControl.ActiveDocument.lunits.LengthFromString(userInput); // and this is translated in D.U decimal MessageBox.Show("user typed: ' "+ userInput +" ' , while the value LengthFromString returned the double: "+distance.ToString());