Open the help file MicroStationVBA.chm from location C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\MicroStation\ and search for ProjectPointOnPerpendicular method. There are some examples available.
Check the following thread… communities…