Is there a mdl function available to have a dynamic preview to the cursor for a selected icon (.cell) from a string list.

Dear All,

Is there a mdl function available to have a dynamic preview to the cursor for a selected icon (.cell) from a string list.

Could anyone please help me out.

Regards

Rajkumar

Parents
  • I would suggest getting the current MicroStationSDK and looking at the celexp example.  It has a listbox with a ListModel attached but it does a preview and has a place cell segment of code in there.

    HTH,

  • Thank you very much for your nice reply.

    Meanwhile, for better transparency, i am able to select an item (.cell) from a string list through a DITEM_MESSAGE_STATECHANGED. Also i am able to place the selected item (.cell extension)by picking a point in drawing using mdlcell_placecell().

    where as, before picking a point in the drawing, while moving the cursor in drawing, i seek a mdl function to show the preview of the selected item (.cell extension) along/to the cursor to ensure the selected item before placing it by using mdlcell_placecell().

    Is there a mdl function available? Could you please help me.

    Regards

    Rajkumar

  • Your question conflates several unrelated topics. It's not clear, for example, why you ask about DITEM_MESSAGE_STATECHANGED at the same time as mdlCell_placeCell.

    Separate the process of obtaining a cell name from the task of creating a cell element. mdlCell_placeCell doesn't care where the name orginates.

    MicroStation's Placement State Engine

    To create a new element and display it dynamically to the user, use the mdlState_api

    • Start the state engine with mdlState_startPrimitive
      • Specify a data point callback function datafunc
    • MicroStation will call your datafunc automatically when user places a data point
    • If you specify a dynamics function, MicroStation will call it while the user moves the cursor

    There are examples of the mdlState_api in the examples delivered with the SDK.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

  •  

    Dear Jon Summers,

    As show in the image, i would like to have a mdl function that should enable the selected cell image preview to the cursor.

    So wherever the cursor is moved the selected cell image preview should be shown to ensure the selected item from the list.

    Could you please help me this.

    Regards

    Rajkumar

     

  • roubleraj said:
    Could you please help me this?

    Mark and I have both provided suggestions. MicroStation's input state engine lets you display an element in dynamics, which is exactly what you have asked.

    You can use MDL, VBA, or the C++ MicroStationAPI to implement a custom tool that will display a cell in dynamics. What further help do you need?

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

Reply
  • roubleraj said:
    Could you please help me this?

    Mark and I have both provided suggestions. MicroStation's input state engine lets you display an element in dynamics, which is exactly what you have asked.

    You can use MDL, VBA, or the C++ MicroStationAPI to implement a custom tool that will display a cell in dynamics. What further help do you need?

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

Children
No Data