cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Access system drawing parameters by Visual Basic.net

bdijkstra
4-Participant

Access system drawing parameters by Visual Basic.net

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 2
mender
6-Contributor
(To:bdijkstra)

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.

TomasLoun
4-Participant
(To:mender)

In VB API you will look for  IpfcSheetOwner::NumberOfSheets

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags