Hi,
This should be a simple one - I'm using the ComponentOccurrence.RangeBox property in an assembly. It seems that if the component is not visible then the RangeBox defaults to zero.
Is this 'as designed', and is there a workaround, other than switching the visibility on before checking rangebox (as this will slow program down)?
Try the below code in an assembly with one invisible part (Its iLogic code for simplicity but I get the same result regardless).
Many thanks for your help,
Luke
For Each Occ As ComponentOccurrence In ThisApplication.ActiveDocument.ComponentDefinition.Occurrences
MessageBox.Show("RangeBox Max is " & Occ.RangeBox.MaxPoint.X & " and RangeBox Min is " & Occ.RangeBox.MinPoint.X, "Title")
Next