Thanks Philippe
With your help I have got one part done. Since I am just starting out in programming iLogic and also don't have access to the API model, the whole affair has been a struggle.
Well the code that I have so far is
Dim objDocument As PartDocument
objDocument = ThisApplication.ActiveDocument
Dim objFeatures As PartFeatures
objFeatures = objDocument.ComponentDefinition.Features
Dim objExtrudes as ExtrudeFeatures
objExtrudes = objFeatures.ExtrudeFeatures
Dim objExtrude As ExtrudeFeature
objExtrude = objExtrudes.Item(1)
oSketch = objExtrude.Profile.Parent.PlanarEntity
MessageBox.Show(oSketch.Name, "Title")
Now if you could help in any way in checking the endfaces or workplane angles. I have attached a sample file with an adaptive extrusion and would like to collect the end face angles.
I think the way this can be done is
- Collect the first extrusion (as done in the code above)
- then find the end faces (need help here)
- calculate the angles between them and the origin plane as collected by oSketch (need help here)
Not to sure how to do any of the above. Hope you can help me out when you find the time.
Thank you