Distance between two points
This transaction will calculate the distance between two created points and print it to the console.
transaction 1 script 'New script transaction' { DPoint3d ptD3d = new DPoint3d(2.0, 1.0, 0.0); DPoint3d farPtD3d = new DPoint3d(4.0, 3.0, 0.0); double distance = farPtD3d.Distance(ptD3d); Print(''+distance); }
To display the console window you must select (Script Console ).