
12/11/2008, 01:44
|
| | Fecha de Ingreso: noviembre-2008
Mensajes: 153
Antigüedad: 16 años, 5 meses Puntos: 0 | |
Respuesta: error 91 en el API de solidworks pone:
Syntax (OLE Automation)
Children = Configuration.GetChildren ( )
Output:
(VARIANT) Children Array containing the children configurations of this configuration
por lo q vChildComp tiene q ser un array. pero luego es mi programa no me lo reconoce como un array:
vChildComp = swConf.GetChildren 'se supone q aqui vChildComp es un array
MsgBox TypeName(vChildComp) 'me dice q vChildComp está vacio.
For i = 0 To UBound(vChildComp) 'y aqui me da error 13: q no coinciden los tipos
Set swChildComp = vChildComp(i)
el otro dia hice un programa parecido con las mismas sentencias y me hacia bien aunq en el array de este programilla me pusiera tambien empty. es un poco extraño no??
gracias de todos modos! |