Tema: error 91
Ver Mensaje Individual
  #12 (permalink)  
Antiguo 12/11/2008, 01:44
ebu
 
Fecha de Ingreso: noviembre-2008
Mensajes: 153
Antigüedad: 15 años, 6 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!