Hello,
I wish to find out combined Bounding Box of a feature and it's child features. Whats the way?
E.g. If I have a Hole built into Extruded Box. I wish to :
given Extruded Box feature, find child as Hole, get their idividual feature Range Boxes and the union them to get a bigger bounding box.
Please suggest APIs to do so
Thanks
Yogesh
Could you please look at the Box object methods?
I believe Box.Extend method could be useful.
Simply get the min/max of each box and build a new one if needed, or just use the data.
Also there is no easy way to detect dependencies between features: if you create an extrusion, then a hole feature, the extrusion is placed above the hole in the features history, so it has no clue what happen next.
From the hole it is not straighforward to detect it depends on the extrusion, you may take a look at the faces, the Face.CreatedByFeature property can provide that info.
You may want to take a look at the objects supporting the Dependents property (mainly Parameters, Sketches & Workfeatures).
Hope that helps,
Philippe.