folle76
Guest
The idea is always that. maximum integration between cad and management data in small businesses. we have a management that works with sql server and therefore great ease of creating customized views with sql and reporting with crystal reports. we have proes and no desire or money to buy a pdm system, place that can really interface with our management that is distributed by mondoesa.
with the vba and the bees of proe at least I could (after having exceeded the insufficient documentation) load in the management database the parameters of proe models and, possibly in need, can do the opposite. Here, for those who care and know vba, a small example to print in the immediate window the parameters values of an active model in session. If someone can make me have some more complex and interesting examples I would be grateful. I would like to exchange the knowledge, where I will deepen the subject.
proe as modeler is exceptional, protoolkit (incasinatissimo and with horrible documentation) and vb bees for proe are less. There is very little attention to this and little people who understand about it.
private sub command0_click()
dim model as ipfcmodel
dim session as ipfcbasesession
dim connection as ipfcasyncconnection
dim params as ipfcparameters
dim paramvalue as ipfcparamvalue
dim param2 as ipfcbaseparameter
dim c as ipfcparameter
on error goto fine:
dim classasyncconnection as new ccpfcasyncconnection
set connection = classasyncconnection.connect(dbnull, dbnull, dbnull, dbnull)
set session = connection.session
set model = session.currentmodel
set c = model
set params = c.listparams()
for i = 0 to params.count - 1
set param2 = params(s)
set paramvalue = param2.value
debug.print paramvalue.stringvalue
next
end:
if not connection is nothing and connection.isrunning then
connection.disconnect (1)
end if
end
with the vba and the bees of proe at least I could (after having exceeded the insufficient documentation) load in the management database the parameters of proe models and, possibly in need, can do the opposite. Here, for those who care and know vba, a small example to print in the immediate window the parameters values of an active model in session. If someone can make me have some more complex and interesting examples I would be grateful. I would like to exchange the knowledge, where I will deepen the subject.
proe as modeler is exceptional, protoolkit (incasinatissimo and with horrible documentation) and vb bees for proe are less. There is very little attention to this and little people who understand about it.
private sub command0_click()
dim model as ipfcmodel
dim session as ipfcbasesession
dim connection as ipfcasyncconnection
dim params as ipfcparameters
dim paramvalue as ipfcparamvalue
dim param2 as ipfcbaseparameter
dim c as ipfcparameter
on error goto fine:
dim classasyncconnection as new ccpfcasyncconnection
set connection = classasyncconnection.connect(dbnull, dbnull, dbnull, dbnull)
set session = connection.session
set model = session.currentmodel
set c = model
set params = c.listparams()
for i = 0 to params.count - 1
set param2 = params(s)
set paramvalue = param2.value
debug.print paramvalue.stringvalue
next
end:
if not connection is nothing and connection.isrunning then
connection.disconnect (1)
end if
end