PDA

View Full Version : selct by parts



dilaima
07-01-2004, 09:44 AM
once again a problem to set parts in a drpdown, and select one of the existing parts, how to make array for parts existing in an object?

selmode(GLOBAL);
s = Surface();
i = 0;
if(!s)
error("No available surfaces.");
while(true)
{
if(!s)
break;
sArrayName[++i] = s.name;
s = s.next();
}

this one is to select existing surfaces, s = Surface(); what if s is a part what should s = ?
thanks for any help