Skip to main content
1-Visitor
May 13, 2017
Question

how do i set the current sheet number to a current model

  • May 13, 2017
  • 1 reply
  • 905 views

can anyone help me to set the current sheet number to a currentmodel.

Iam just tried //currentmodel.SetCurrentSheetNumber()----it doesn't work

can anybody guide me to get correct coding..

    1 reply

    15-Moonstone
    May 15, 2017

    Have you tryed to cast your Model to Drawing ?

    e.g.:

    Drawing drw = (Drawing) session.GetCurrentModel;

    int sheetNum = 5; // for example 5

    drw.SetCurrentSheetNumber(sheetNum);