retrieve sketch plane and features programmaticly

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'll get straight to it - I have a part with multiple features such as extrudes, sweeps, lofts etc. For each feature in the part i need to get:
- the dimensions of the sketch
- the plane that the sketch was created on
- the feature variables e.g extrusion length.
(The actual dimension values are not improtant, more the ability to retrieve them)
example below:
a cylinderical prism (smartie tube) created using 1 circular extrusion. Information retrieved:
- diameter dimension of edge 1
- Drawn on the top plane
- extrusion length of 150mm
in the future it could be a cube, or a more complex sketch so im wondering if i can utilise the 'retrieve dimensions' function somehow.
another example (ideal information retrieved from part):
Feature 1 (extrusion) :
- 30x30mm square (linear dimension edge 1 - edge 2 & linear dimension edge 3- edge 4)
- extrusion length 140mm
- sketch plane: Right
Feature 2 (revolve):
- dodecahedron sketch with obscure rectangular pattern (retrieve dimensions - linear edge 1-edge 2 etc...)
- revolved angle: 90 degrees & axis used to revolve
- sketch plane: Top
To try and explain myself regarding the retrieve dimensions. I need to get all the dimensions that the user used to contrain the part when they were creating it. So if i could get an output from my code that sais; linear dimension 1 from edge 1-edge 2. angular dimension 1 from edge 3-edge 2, linear dimension 2 from edge 7-edge2... I could work with that.
I know I am asking a lot, if anyone could offer me some pointers to get started, it would be greatly apreciated and I'll do the rest of the digging myself. I am an intermediate programmer that has worked with Inventor API for a while, just never with sketches and existing features before 😛
Thanks in advance