Assigning entities
Posted: 28 Feb 2008, 11:51
Hi,
I'm trying to copy entities from one drawing to another. I'm selecting entities from one drawing, pressing a button, then it copies selected entities to the new drawing. So far so good everything is fine. But I have some problems.
Here are the problems that I'm encountering.
1) The copied entities could not be selected. The newly created TsgDXFImage objects GetPoint method is returning (0,0) point. It can not transform the world coordinates to device coordinates.
TPoint vTL = FDXFImg->GetPoint(Entity->Box.TopLeft);
vTL is (0,0). This is very important. How can I impose the transformation. What can be done?
2) Some lines has different linetypes. For example a dashdot linetype. Although I'm adding the LType to the new Converter as shown in the following, linetypes are still "Continous". What am I missing?
DXFConverter->Sections[csLTypes]->AddEntity(LType);
3) It seems Hatch entities are copied but not displayed. Why?
Thanks
Aby
I'm trying to copy entities from one drawing to another. I'm selecting entities from one drawing, pressing a button, then it copies selected entities to the new drawing. So far so good everything is fine. But I have some problems.
Here are the problems that I'm encountering.
1) The copied entities could not be selected. The newly created TsgDXFImage objects GetPoint method is returning (0,0) point. It can not transform the world coordinates to device coordinates.
TPoint vTL = FDXFImg->GetPoint(Entity->Box.TopLeft);
vTL is (0,0). This is very important. How can I impose the transformation. What can be done?
2) Some lines has different linetypes. For example a dashdot linetype. Although I'm adding the LType to the new Converter as shown in the following, linetypes are still "Continous". What am I missing?
DXFConverter->Sections[csLTypes]->AddEntity(LType);
3) It seems Hatch entities are copied but not displayed. Why?
Thanks
Aby