home *** CD-ROM | disk | FTP | other *** search
- --ArcLen.upl
- --Calculates the length of an arc
- -------------------------------------------------------------
- proc main
-
- real AngleBegin, AngleEnd -- in radiens
- real Length -- length of arc
- real CRadius --Radius of arc
- integer Num, MIB(1), iend
-
- --digitize the arc to get MIB number
- GetEnt(1,Num,MIB(1),Iend)
-
- --verify stmt retrieves info on entites
- verify arc entid(MIB(1)) radius(CRadius) ab(AngleBegin) ae(AngleEnd)
-
- --calcuate the length of the arc
- Length = 0.01754*CRadius*(AngleEnd-AngleBegin)
-
- print 'The length is ', Length
-
- end proc
-