Skip to main content
1-Visitor
January 25, 2017
Question

Access system drawing parameters by Visual Basic.net

  • January 25, 2017
  • 2 replies
  • 1589 views

I try to load the amount of sheets and sheet size by the following programming lines:

            parameter(14) = drw.GetParam("total_sheets")

            pvalue(14) = parameter(14).GetScaledValue

            CB_AOP.Text = pvalue(14).IntValue.ToString

Only it doesn't work and gives me the NullExeption warning. With custom parameters it just works.

Please, could you help?

2 replies

12-Amethyst
January 25, 2017

The problem is that 'total_sheets' is not a drawing parameter.  It is a thing you call out in a manner similar to calling out a parameter, so you get at it with a different mechanism than you use for parameters. I unfortunately don't know the VB API, in Toolkit the function you'd want is ProDrawingSheetsCount.

1-Visitor
January 27, 2017

In VB API you will look for  IpfcSheetOwner::NumberOfSheets