How to use codes to open the AcccuDraw

I inherited the class of DgnPrimitiveTool ,  my aim is to use this tool class to draw a line,

in the mouse click event - _OnDataButton , write the codes.

first:  how to open the AccuDraw use codes , when I draw the line , both  before and  after I click the mouse ,I need the AccuDraw to take effect  .   

second: how to use the  AccuDraw to set direction , example lock x axis.

supplements: we can open the AccuDraw by shortcut F11 and O

Parents Reply Children
  • Unknown said:
    I want to know how to use codes to open AccuDraw

    There is an AccuDraw example delivered with the MicroStation CONNECT SDK...

    ..\SDK\examples\Elements\AccuDrawDemo

    Unknown said:
    Development language is MDL

    The MicroStation CONNECT SDK provides the MicroStationAPI C++ interface.  While some MDL functions remain, the API is mostly C++ classes.

    For example, if you search MicroStationAPI help you will find classes for both AccuDraw and AccuSnap.

     
    Regards, Jon Summers
    LA Solutions