Message 1 of 10
Not applicable
11-28-2013
05:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello.
I'm trying to use function deepClone() to copy some elements on my drawing. Fragment of wrong code is:
if(AcTxtSize != DefaultTSSize) { // setting layer of the improper text entities to ERROR
AcDbObjectPointer<AcDbText> pText2;
AcDbIdMapping idMap;
idMap.setDestDb(pAC_DB);
pText->deepClone(pText, pText2, idMap, true);
pText->setLayer(_T("_ERROR"), true);
++acc;
}
How I should write this fragment of code to work properly (make second text entity visible on the drawing)?
Solved! Go to Solution.