Hi,
How can we update the positions(Transformation Matrix) of more than one component or occurrence(say 20 components) at the same time ?
The following is the code, but it results in update of ActiveView for each component for each frame. Ideally I would want the update of ActiveView once a frame.
for(int iFrame = 0; iFrame < noOfFrames; iFrame++)
{ AllOccurrencesInNthFrameArray = (Array)AllFramesTransformArray.GetValue(iFrame);
for(int iOccurrence = 0; iOccurrence < noOfOccurrences; iOccurrence++)
{
temp_occurrenceTransformArray = (Array)AllOccurrencesInNthFrameArray.GetValue(iOccurrence);
//Get Current Occurrence
current_occurrence = (Inventor.ComponentOccurrence)m_occurencesArray.GetValue(iOccurrence);
current_occurrenceTransformation.PutMatrixData(ref temp_occurrenceTransformArray);
current_occurrence.Transformation = current_occurrenceTransformation;
}
m_inventorApplication.ActiveView.Update();
}
But in Inventor 2008, the update of component's position is happening in the for-loop itself, which is not intended.
Is there any way to stop auto-update of assembly components, so that ActiveView.Update() can be used whenever needed.
Regards,
Rajeev Lochan
Blog: http://www.smallguru.com
Web: http://www.ar-cad.com
Edited by: lochan94 on Oct 23, 2008 1:12 AM
Edited by: lochan94 on Oct 23, 2008 1:14 AM