Only since R13 DXF supports space character in block name.
--HG-- branch : feature
This commit is contained in:
parent
cc0d6d994b
commit
2b3434fe87
|
@ -626,7 +626,15 @@ bool VDxfEngine::ExportToAAMA(const QVector<VLayoutPiece> &details)
|
||||||
const VLayoutPiece &detail = details.at(i);
|
const VLayoutPiece &detail = details.at(i);
|
||||||
|
|
||||||
dx_ifaceBlock *detailBlock = new dx_ifaceBlock();
|
dx_ifaceBlock *detailBlock = new dx_ifaceBlock();
|
||||||
detailBlock->name = detail.GetName().toStdString();
|
|
||||||
|
QString blockName = detail.GetName();
|
||||||
|
if (m_version <= DRW::AC1009)
|
||||||
|
{
|
||||||
|
blockName.replace(' ', '_');
|
||||||
|
}
|
||||||
|
|
||||||
|
detailBlock->name = blockName.toStdString();
|
||||||
|
detailBlock->layer = "1";
|
||||||
|
|
||||||
ExportAAMAOutline(detailBlock, detail);
|
ExportAAMAOutline(detailBlock, detail);
|
||||||
ExportAAMADraw(detailBlock, detail);
|
ExportAAMADraw(detailBlock, detail);
|
||||||
|
@ -638,10 +646,10 @@ bool VDxfEngine::ExportToAAMA(const QVector<VLayoutPiece> &details)
|
||||||
input->AddBlock(detailBlock);
|
input->AddBlock(detailBlock);
|
||||||
|
|
||||||
DRW_Insert *insert = new DRW_Insert();
|
DRW_Insert *insert = new DRW_Insert();
|
||||||
insert->name = detail.GetName().toStdString();
|
insert->name = blockName.toStdString();
|
||||||
insert->basePoint = DRW_Coord(FromPixel(detail.GetMx(), varInsunits),
|
insert->basePoint = DRW_Coord(FromPixel(detail.GetMx(), varInsunits),
|
||||||
FromPixel(- detail.GetMy(), varInsunits), 0);
|
FromPixel(- detail.GetMy(), varInsunits), 0);
|
||||||
insert->layer = "0";
|
insert->layer = "1";
|
||||||
|
|
||||||
input->AddEntity(insert);
|
input->AddEntity(insert);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user