How can we get a custom part camera view 0r design view representation through an assembly?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I created a design view representation in part with specific orientation and direction. i can get all camera information in part. but when i tried to get the information of this design view representation of part through assembly, it return the assembly camera view information.
how can i get the right camera information of part in an assembly?
ComponentOccurrenceProxy oComponentOCC =InventorApp.CommandManager.Pick(SelectionFilterEnum.kAssemblyLeafOccurrenceFilter, "Select proxy");
DesignViewRepresentation getView = null;
AssemblyDocument oSubAssembly = oComponentOCC.ParentOccurrence.Definition.Document;
DesignViewRepresentations oDesignViewReps=oSubAssembly.ComponentDefinition.RepresentationsManager.DesignViewRepresentations;
foreach (DesignViewRepresentation oDesignView in oDesignViewReps)
{
if (oDesignView.Name=="FirstView")
{
getView = oDesignView;
UnitVector upVector=getView.Camera.UpVector;
break;
}
}