Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Child Features

4 REPLIES 4
Reply
Message 1 of 5
kulkary
334 Views, 4 Replies

Child Features

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

4 REPLIES 4
Message 2 of 5
Vladimir.Ananyev
in reply to: kulkary

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

Message 3 of 5
kulkary
in reply to: Vladimir.Ananyev

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.
Message 4 of 5
philippe.leefsma
in reply to: kulkary

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

Message 5 of 5
kulkary
in reply to: philippe.leefsma

Thanks Philippe, for the explanation.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report