Now might be a good time to switch to VB.NET, you can still use the COM interface and possibly some of your old code, but also have access to more features, such as Teigha.DatabaseServices.Database.ThumbnailBitmap
The one sample has various sample commands, forms to illustrate using many parts of the API. Since your familiar with C++, you might also find something useful in the BRX SDK.
Also, check out TheSwamp.org , there's probably thousands of sample…
@Kerry Brown said:
I'll have a play when the crocodiles stop nipping at my heels.
IKR! We found a huge croc (by our standards) in the gutter… the week before, a cobra fighting a python, meanwhile, mynah birds continue to sn…
@Daniel Marcotte said:
Visual Studio Code is really cool, but its windows only, right?
Open source, cross-platform - based on Electron....
Wow! I stand corrected, time to give it another whirl!
So very difficult way around.... I can not even think how to screw itto my code. ...Especially when I need to fill the table with fields.
But maybe someone is useful. Thank.
Well you did say mtext ;-)
yeah, a little more verb…
@Joe Dunfee said:
The only thing that may fool you, if you are unaware of this, is that you must do a REGEN for any changes to fields to show up. That little detail is probably the thing that made my efforts a few years ago fail.
I know from a .NET perspective, the COM DLLs to reference are axbricscadapp1.dll and axbricscaddb1.dll, located in the install folder.
Also you can find axbricscadapp1.tlb and axbricscaddb1.tlb in the BRX SDK
I started one a while back, ECC 200 and QRCode, I never finished it though : | I could probably make something “no frills”, Although, if your just needing one or two, it might be easier to use an online generator and attach the image. …
Try to use the Transaction to manage database objects (open / close / dispose). If your just opening database objects for read, use the lightweight OpenCloseTransaction. Every item that is, opened by, or added to, a transaction, is disposed…
with the line tr.AddNewlyCreatedDBObject(circle, true); you are handing over memory management of your circle to the transaction. so don't call circle.Dispose();, the transaction will do it for you Cheers