Nathan Taylor wrote:
> Attached is a VB.NET example with a block.
>
> Regards - Nathan
>
>
> ------------------------------------------------------------------------
Thanks a bunch Nathan.
Sorry I didnt answer sooner, didnt realize till a couple days ago you posted.
I didnt even try anything like this because the docs gave the impression
that jig would only work with "simple" entities. Now I see thats not the case
so jig looks like a winner 😉
Couldnt get your code to compile at first. At the very beginning where your inserting
a block I got the error "Autodesk.AutoCAD.Interop.Common.AcadBlockReference is not defined"
neither could I find it in the object browser. So I just commented out that part and inserted
the block by hand and it compiled fine.
Then, the "jig" would not move with the cursor, it stayed at 0,0. I found a slight typo in
the code. The line in the sampler functiona that reads
"If objCurCorsorPos objPrevCursorPos Then"
should read:
"If objCurCorsorPos <> objPrevCursorPos Then"
Surprised I didnt get a compiler error on that. After that change, it work
nicely. Im translating it into C# to incorporate into my progam now.
Thanks again !
Perry