sketchline, sketch is lower case letter

sketchline, sketch is lower case letter

Anonymous
Not applicable
423 Views
1 Reply
Message 1 of 2

sketchline, sketch is lower case letter

Anonymous
Not applicable

Hello, everyone, I faced a strange thing in these day.

I think if I dim a new object, the first letter of object will be upper case letter automatically by system. But now I got a problem, when I dim a sketchline or sketch, it is the lower case letter. (Please see the attached file) It seems that the problem runs correctly, but I want to know the reason of it.

 

P.S.: I tried in another computer, it's normal.

Thanks in advance.

0 Likes
424 Views
1 Reply
Reply (1)
Message 2 of 2

ekinsb
Alumni
Alumni

Visual Basic is not case sensitive so the variable sketchLine, SketchLine, SKETCHLINE, or SkEtChLiNe are all treated as the same name.  This can be a bit confusing when working with the code so the code editors will typically automatically change the variable to match how it's been previously entered so they all look the same.  I've seen it sometimes where the editor for some reason gets confused and isn't using the version of the name that I would like.  Typically if I shut down the IDE (Visual Studio or Inventor if I'm using VBA) and the restart it resets this and I get the results i would expect.  Although, as I said, it really doesn't matter because everything is case insensitive.


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