Block is not part of the DxfEntityCollection
Wout
9/14/2023 10:14 AM
|
---|
Hi,
The call cloneContext.ResolveReferences(); has to be moved up to right after var clonedBlock = (DxfBlock)sourceBlock.Clone(cloneContext);. The reason for this is that the block's entities are cloned during the ResolveReferences() call, and not before. So in your version, at the clonedBlock.GetAttributeDefinitions() call, they do not exist yet at that point.
Also I found a bug in CadLib during the reading of your DWG file, and it will cause a problem in this case (the 0 layer got renamed to AUDIT_0, and another 0 layer object was created by CadLib), so please download the latest CadLib 4.0 version to fix this.
- Wout
|
Sandeep Bhat
9/14/2023 11:06 AM
|
---|
Thanks for the hint Wout, that worked. Well I am still using WW.Cad.NetStandard - 1.0.0-rc70. I see there is a latest version '1.0.0-rc76'. I can use this directly without the need to generate a new license string right?
|
Wout
9/14/2023 11:10 AM
|
---|
Ah, the .NET standard version is discontinued, the successor to .NET standard is the 6.0 multi-platform version. I haven't updated that version yet either though, will do that tomorrow.
- Wout
|
Sandeep Bhat
9/14/2023 12:36 PM
|
---|
Alright, Thanks for the information :)
|