VB Programming naming standards for inventor

VB Programming naming standards for inventor

kmiller
Collaborator Collaborator
502 Views
1 Reply
Message 1 of 2

VB Programming naming standards for inventor

kmiller
Collaborator
Collaborator

Hi all,

 

I am working on trying to learn inventor programming with vb.net.  I know with VB code there are typical naming prefix's, etc... for controls that you can put in your forms.  As I am reading through some programming documents/articles on inventor programming I am noticing in the code examples that there are some possible naming prefixes that are used.  For example oEdge1 for an edge object.  assuming "o" for object.  At this point I do not know if this is the intension of the person who wrote the documents or if I am even "analyzing" it correctly. 

 

My question mainly is, is there a list of some sort of standards or typical naming prefixes that are used when programming for inventor?  If so, what are they or is there somewhere to find them? 

-------------------------------------------------------------------------------------------------

If this response answers your question please click "Accept as Solution".
0 Likes
503 Views
1 Reply
Reply (1)
Message 2 of 2

ekinsb
Alumni
Alumni

There aren't any naming standards.  Hungarian naming style has been popular and is still often used.  This is when variables have a prefix that indicates the type.  The "o" prefix you see in many of the samples was meant to indicate an object.  Probably a better prefix would have been to use "inv" for an Inventor object.  (I can criticize it since I'm the one that started the "o" prefix in the samples 🙂 )  Microsoft is suggesting not to use hungarian notation for variable anymore since Intellisense provides information for the variable by just hovering the cursor over the name.

 

A great post about the current Microsoft naming recommendations can be found here: http://10rem.net/articles/net-naming-conventions-and-programming-standards---best-practices


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes