Dynamic and anonymous blocks?
larsD
5/25/2010 2:09 PM
|
---|
Hi,
at the moment I am evaluating the current CADlib library.
In my drawing, I used dynamic blocks that have been introduced in ACAD 2006. As far as I found out, a dynamic block is converted to an anonymous block definition with extended data (AcDbDynamicBlockTrueName) that holds the true name. Furthermore, if one of the instances of the block is modified within the drawing (e.g. if a dynamic length is changed) a new anonymous block definition is created in the block table that reference the original block.
CADlib does not seem to read anonymous blocks at all, although a post (http://www.woutware.com/forum/index.php?topic=333.msg1261#msg1261) mentioned 'DxfModel.AnonymousBlock' which I couldn't find. If that's true I also won't be able to tell which blocks are referenced by the INSERT entitites, which are read correctly.
Could you tell me if I got something wrong?
Are anonymous blocks supported? When will dynamic blocks be supported?
Thanks,
Lars
|
Wout
5/25/2010 10:12 PM
|
---|
Hi Lars,
Dynamic blocks are not yet supported, and also not yet planned. It's a nice (but also quite big) feature though.
Anonymous blocks are read by CadLib, but not exposed. If you need them I could make the property public. The reason it is currently internal, is that normally anonymous blocks are generated by e.g. dimensions, and the user doesn't need to have access to them.
Best regards,
Wout
|
larsD
5/26/2010 7:57 AM
|
---|
Hi,
thanks for your explanations.
I guess that if you exposed the anonymous blocks by a public property, I would be able to retrieve their extended data, too. I'm especially interested in the AcDbDynamicBlockTrueName in order to determine all the insertion points of block references with a given name (also for dynamic blocks). Currently, I only see *U2, *U3, etc. referenced within the INSERT entitites.
Regards,
Lars
|
Wout
5/26/2010 9:15 AM
|
---|
Hi Lars,
I've just exposed property DxfModel.AnonymousBlocks in CadLib 3.5. You can download the latest version from the web site.
Best regards,
Wout
|
larsD
5/27/2010 8:59 AM
|
---|
Hi Wout,
could you also expose it in CADlib 2.0?
Our application for which I'm evaluating CADlib still relies on .NET 2.0.
Thanks,
Lars
|
Wout
5/27/2010 10:26 AM
|
---|
Hi Lars,
I've just merged all recent CadLib 3.5 changes to 2.0.
Wout
|
larsD
5/27/2010 10:51 AM
|
---|
Thanks a lot,
even if we've not yet decided to buy a licence, your very responsive support is really amazing and promising!
Regards,
Lars
|