I am trying to extract all material from CADWorx models. I am on a trial right now to make sure everything works as expected before purchase. I noticed that on pipe segments its not loading the XData for CPD1. You can see it in autoCAD with XDLIST, I will attach a file for refference
It seems you’re experiencing difficulties extracting XData for the CPD1 registered application from CADWorx models. If the XData for pipe segments is not loading as expected, this could be due to several factors, including the specific configuration of the CADWorx model or the method of data access.
To troubleshoot this issue, consider the following steps:
Check Model Configuration: Verify that the pipe segments in your CADWorx model are properly configured to include the XData you are attempting to extract.
Use Aspose.CAD: Ensure you are utilizing the correct methods in Aspose.CAD to access XData. Refer to the Aspose.CAD documentation for guidance on extracting XData from CAD files.
Debugging: Implement logging to identify if the extraction process is encountering errors or if the data is simply absent in the model.
Sample Code: Here’s a basic example to help you get started with extracting XData:
using Aspose.CAD;
using Aspose.CAD.FileFormats.Cad;
// Load the CAD file
using (var cadImage = CadImage.Load("path_to_your_file.dwg"))
{
// Access the entities and extract XData
foreach (var entity in cadImage.Entities)
{
if (entity.XData != null)
{
// Process the XData
Console.WriteLine(entity.XData);
}
}
}
If the issue persists, consider reaching out to Aspose support for more specific guidance related to your CADWorx models.
Feel free to ask if you have any further questions!
@dvest,
thank you for details, sure, we always encourage customers to verify everything before the purchase. I have notes the .NET version in the task and will come bask with more details on it as soon as I have it.