Inventor 2013 + VB.net API help, referencing sketch entities?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Im new to Programing and attempting to teach my self some basics, I have done the My first inventor API and have been to Mod the machine. It's a big jump I am trying to make. I am looking for some assistance in terms of access to variouse levels of the COM.
I have examples of part document creation that can be used for any document type ect. and how to make it the active doc.
And also some code that works for sketch creation.
What i need some assistance with is making the some sketch geometry, If I am creating a new line for example I need a sketch (so in terms of doing it inventor I create sketch then edit sketch then create line).
For a program to do this I realise I need to tell the program where to sketch ect like "right click edit sketch1"
However this is where my dilema comes in I need to reference a sketch, from what i have read + a few guesses the GetReferenceKey method gives me some
code like 214124124515 thats refers specifically to a sketch entity.
OK so I need to GetReferenceKey of a Planar sketch with reference key (GetReferenceKey of a planar sketch ect ect ect, you get the idea.
I will come back to this in a moment.
Sketches have names so I could cross reference sketches with name "sketch1" ie GetReferenceKey of sketch with name "sketch1".
So far I have not aksed a specific question because I wanted to give you some Idea of what I am thinking so you understand what I am looking for.
1- is the the PropertySets -----> Property Set -----> Property the way you would access any property of any object?
Could some one please help me creating a command that does this cross reference so I can start making some circles and stuff, or just tell me I have got it all wrong (if thats that case). And some other method to use?