Hi.
I cannot get layout of this DXF file.
MHMD02__31N.zip (17.0 KB)
I use the following code:
public static void main(String[] args)
{
//ExStart:ListLayouts
String dataDir = Utils.getDataDir(ListLayouts.class) + "CADConversion/";
String sourceFilePath = dataDir + "MHMD02__31N.dxf";
Image image = Image.load(sourceFilePath);
CadImage cadImage = (CadImage)image;
CadLayoutDictionary layouts = cadImage.getLayouts();
for (CadLayout layout : layouts.getValues())
{
System.out.println("Layout " +layout.getLayoutName());
}
//ExEnd:ListLayouts
}
Other DXF files, I can get.
Except this.
Are there specific DXF files restricted by the CadLayoutDictionary
getLayouts
method?
Note that if you use AutoCad software, you can see that there are 2 layouts “Model” and “Layout1”.