How to create intersection point in the intersection of surface and line

Hello,

a) it is posible to set up BricsCAD in 3D to automatically create intersection point during drawing line going through surface (in my case there are two points inner and outer surface)? I would like to use this in the macro to draw a lot of lines going through.
b) How to obtain coordinates of the last (or previous last) created point in this manner?

Thank you forward for answer.