Vb.Net "Stand alone" application - get the part sizes (X,Y,Z) including the sketch plane

isocam
Collaborator

Vb.Net "Stand alone" application - get the part sizes (X,Y,Z) including the sketch plane

isocam
Collaborator
Collaborator

Can anybody help?

 

Does anybody know how to get the part sizes (X,Y,Z), including the sketch plane that the sketch was created on, for an Inventor part (ipt) using a stand alone Vb.Net application?

 

I have a VBA macro that works great, that also finds the sketch plane but I need to re-create this in a Vb.Net application.

 

Many thanks in advance!

 

Darren

0 Likes
Reply
239 Views
1 Reply
Reply (1)

Michael.Navara
Advisor
Advisor

There are two parts of this task.

How to create external application. In the Inventor SDK are samples how to do it. You can copy one of the samples to different location and put your code in it.

 

How to adapt VBA code for VB.NET. This can be little bit more of work, but because VBA and VB.NET has similar syntax and the API is the same, you can copy & paste the VBA code to VB.NET module or class. Then you get several errors which needs to be fixed. In context menu of each issue is description what's wrong and how to fix it.

The most common issues are

  • Keyword Set is obsolete - delete them
  • Method arguments must be enclosed in round brackets

MichaelNavara_1-1723736806195.png

 

0 Likes