How to tell if a model is a top assembly?
I could check if a model is an assembly
model.GetType() == ModelType.MDL_ASSEMBLY
However, how can I check if it is top level assembly or just sub-assembly?
I could check if a model is an assembly
model.GetType() == ModelType.MDL_ASSEMBLY
However, how can I check if it is top level assembly or just sub-assembly?
There isn't any data stored in an assembly that indicates what assemblies it is a part of. An assembly only refers to its components, be they parts or further assemblies. It doesn't go the other way. The only place you might be able to get at that kind of information would be in Windchill or a similar data management system. You aren't going to be able to get any information of the sort from a Creo assembly file.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.