Child Features

Child Features

Anonymous
Not applicable
428 Views
4 Replies
Message 1 of 5

Child Features

Anonymous
Not applicable

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

0 Likes
429 Views
4 Replies
Replies (4)
Message 2 of 5

Vladimir.Ananyev
Alumni
Alumni

Could you please look at the Box object methods?

I believe Box.Extend method could be useful.


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 5

Anonymous
Not applicable
Not sure if Extend would help. Sometimes the second box could be inside the
first one and Extend may shrink the first box itself. Wish to have Union of
boxes.

Also wish to know if there is easy way to collect Child features of a given
features.
0 Likes
Message 4 of 5

philippe.leefsma
Alumni
Alumni

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.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 5 of 5

Anonymous
Not applicable
Thanks Philippe, for the explanation.
0 Likes