Author
Topic: BlockTesting2011 (Read 15582 times)

This will be an ongoing thread with functions added as I get a chance.Refer to the attached Zip for the full solution.The routines are noted for functionality.

There are some gotcha's and traps in these incomplete samples. The intent was to proceed step by step to explore the concepts involved.//---------------------------------------------------------------Jeff H has volunteered to convert these Methods to VB.netThanks Jeff.

gile has volunteered to convert these Methods to F#Thanks gile.//---------------------------------------------------------------

NOTE Solutions updated //------------------------------- Sample Blocks3DBlock.dwg - block with no attibutes is attached to this first post :

3DBlock_A.dwg - block with one attibute is attached to this first post :

So, here's a F# translation of the C# code from the 'BlockTesting2011 _20110331.1115' source.Maybe it's not 'very good' F# coding (I'm newby) but every command seems to work as expected (and it was a fine exercice).

If you don't use VS 2010 pro, - to run the dll, you have to install the F# runtime.- to play with F#, you can add F# to Visual Studio 2008 (Standard edition or greater) or use a free Visual Studio Shell (2008 or 2010) see here.

I'll post the code the same way as Kerry and Jeff H to make easier comparisons, just adding some 'off code' comments for F# main differences from C# or VB.