[Copied from the VB(A) forum]
Chaps,
I'm completely new to VB.NET (though I'm a novice with VBA) and also new to posting in this forum although I've visited a few times before so, "Howdy!".
Can somebody please point me in the right direction with a couple of examples so that I can get my head around the way VB.NET works (in AutoCAD 2008)?
Example 1: Create a new layer "Test", change the color to "Red". Maybe check for the layer's presence and color first...? Now draw a line from '(0 0 0) to a point picked by the user - showing the rubber band between the two.
Example 2: Search for a block "hfd" and then an attribute in it called "tek". Get the final four characters of the contents, convert this to an integer, add 1, convert it back to text and substitute the part of the original text with this new part. Basically I'm incrementing a drawing number.
Both are incredibly simple in LISP (so why not stick with it?!) but it's time to see what VB.NET can do!
S