<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Delete the text in group A1, increase the arc length and add the text to group A1? in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/delete-the-text-in-group-a1-increase-the-arc-length-and-add-the/m-p/11127209#M2568</link>
    <description>&lt;P&gt;The main problem is &lt;FONT face="courier new,courier"&gt;AcDbEntityPointer pEnt(objId, AcDb::kForRead);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;This will keep the entity open for read until &lt;FONT face="courier new,courier"&gt;pEnt&lt;/FONT&gt; goes out of scope - which is when the function returns.&lt;/P&gt;
&lt;P&gt;It isn't possible to open an entity for write if it is already opened for read. So your call&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;acdbOpenObject(pEnt, entIds.at(i), AcDb::kForWrite)&lt;/FONT&gt; fails and return &lt;FONT face="courier new,courier"&gt;eWasOpenForRead&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;pEnt&lt;/FONT&gt;&amp;nbsp;remains NULL or uninitialized and &lt;FONT face="courier new,courier"&gt;pEnt-&amp;gt;close() &lt;/FONT&gt;crashes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the fixed version with some comments marked "//tb:" and recommendations:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;static void MSDDMyGroupMyCommand0() {
	ads_name ent;
	ads_point pt;
	if (RTNORM != acedEntSel(_T("\n选择对象: "), ent, pt))
		return;
	AcDbObjectId objId;
	acdbGetObjectId(objId, ent);
	AcDbEntityPointer pEntPtr(objId, AcDb::kForRead); //tb: renamed to avoid confusion with pEnt below
	Acad::ErrorStatus es = pEntPtr.openStatus();
	if (Acad::eOk != es)
	{
		acutPrintf(_T("\nFailed to open object,es=%s"), acadErrorStatusText(es));
		return;
	}

	const AcDbVoidPtrArray* pReactors = pEntPtr-&amp;gt;reactors();
	if (pReactors == NULL || pReactors-&amp;gt;length() &amp;lt; 1)
	{
		acutPrintf(_T("\nThe object has no groups!"));
		return;
	}
	AcDbObjectIdArray entIds;
	for (int i = 0; i &amp;lt; pReactors-&amp;gt;length(); i++)
	{
		void* pSomething = pReactors-&amp;gt;at(i);
		if (pSomething == NULL) continue;
		if (!acdbIsPersistentReactor(pSomething)) continue;
		AcDbObjectId persReactorId = acdbPersistentReactorObjectId(pSomething);
		AcDbObjectPointer&amp;lt;AcDbGroup&amp;gt; pGroup(persReactorId, AcDb::kForRead);
		pGroup-&amp;gt;allEntityIds(entIds); 
	}
	//tb: You are using AcDbEntityPointer pEnt above and 
	// AcDbEntity* pEnt; below. I would suggest to choose different names!
	// The problem is, that the AcDbEntityPointer pEnt keeps the entity open for read 
	// until it goes out of scope.
	// This causes that you can't open AcDbEntity* pEnt for write.
	pEntPtr-&amp;gt;close(); //tb: close it here explicitly.

	for (int i = 0; i &amp;lt; entIds.length(); i++)
	{
		AcDbEntity* pEnt = NULL; //tb: Confusing! NOT the same as AcDbEntityPointer pEnt above!
		//tb: It is always a good idea to store the Acad::ErrorStatus.
		// It gives important information if something goes wrong.
		// You should only open objects for write, if you really need to modify them.
		Acad::ErrorStatus es = acdbOpenObject(pEnt, entIds.at(i), AcDb::kForRead); //tb: Write-&amp;gt;Read
		if (es == Acad::eOk)
		{
			if (pEnt-&amp;gt;isKindOf(AcDbText::desc()))
			{
				//tb: Here we need write acces. So we upgradeOpen() the entity.
				es = pEnt-&amp;gt;upgradeOpen();
				if (es==Acad::eOk)
					pEnt-&amp;gt;erase();
			}
			else
			{
				double PaPtCen;
				AcGePoint3d PtCen;
				WCHAR s[20];

				// pEnt-&amp;gt;close();
				//tb: no need to reopen the entity. 
				// The 3rd usage of the variable name pEnt gave extra confusion!
				AcDbCurve* pCurve = AcDbCurve::cast(pEnt); 
				if (pCurve) // AcDbCurve::cast(pEnt) returns NULL if it isn't an AcDbCurve
				{
					double startParam, endParam, startDist, endDist;
					pCurve-&amp;gt;getStartParam(startParam);
					pCurve-&amp;gt;getEndParam(endParam);
					pCurve-&amp;gt;getDistAtParam(startParam, startDist);
					pCurve-&amp;gt;getDistAtParam(endParam, endDist);
					double Clength = endDist - startDist;
					pCurve-&amp;gt;getParamAtDist(Clength * 0.5, PaPtCen);
					pCurve-&amp;gt;getPointAtParam(PaPtCen, PtCen);
					_swprintf(s, L"L=%0.0f", Clength);

					AcDbText* text = new AcDbText(PtCen, s, AcDbObjectId::kNull, 80, 0);
					text-&amp;gt;setColorIndex(50);
					text-&amp;gt;setWidthFactor(0.7);

					text-&amp;gt;setHorizontalMode(AcDb::TextHorzMode::kTextCenter);
					text-&amp;gt;setAlignmentPoint(PtCen);
					text-&amp;gt;setJustification(AcDbText::kTextAlignmentMiddleCenter);

					AcDbDatabase* pDb = acdbHostApplicationServices()-&amp;gt;workingDatabase();
					AcDbBlockTableRecordPointer pBTR(pDb-&amp;gt;currentSpaceId(), AcDb::kForWrite);
					if (text &amp;amp;&amp;amp; Acad::eOk == pBTR.openStatus()) { 
						pBTR-&amp;gt;appendAcDbEntity(text); text-&amp;gt;close(); 
					}
				}
			}
			pEnt-&amp;gt;close(); //tb: moved here.
		}
		//pEnt-&amp;gt;close(); //tb: only close what you have opened!
	}
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="simple-translate"&gt;
&lt;DIV&gt;
&lt;DIV class="simple-translate-button isShow" style="background-image: url('moz-extension://8a33bbf6-8616-49ff-8595-7e2527764252/icons/512.png'); height: 22px; width: 22px; top: 339px; left: 408px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="simple-translate-panel " style="width: 300px; height: 200px; top: 0px; left: 0px; font-size: 13px; background-color: #ffffff;"&gt;
&lt;DIV class="simple-translate-result-wrapper" style="overflow: hidden;"&gt;
&lt;DIV class="simple-translate-move" draggable="true"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="simple-translate-result-contents"&gt;
&lt;P class="simple-translate-result" style="color: #000000;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="simple-translate-candidate" style="color: #737373;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Mon, 25 Apr 2022 16:01:18 GMT</pubDate>
    <dc:creator>tbrammer</dc:creator>
    <dc:date>2022-04-25T16:01:18Z</dc:date>
    <item>
      <title>Delete the text in group A1, increase the arc length and add the text to group A1?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/delete-the-text-in-group-a1-increase-the-arc-length-and-add-the/m-p/11125244#M2567</link>
      <description>&lt;P&gt;Can you help me see what the problem is? thank you!&lt;/P&gt;&lt;P&gt;1 . Delete the text in group A1,&lt;/P&gt;&lt;P&gt;2. increase text the arc length ,&lt;/P&gt;&lt;P&gt;3. add the text to group A1(Similar to the group on the right)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;static void MSDDMyGroupMyCommand0 () {
	ads_name ent;
	ads_point pt;
	if (RTNORM != acedEntSel(_T("\n选择对象: "),ent,pt))
	{
		return;
	}
	AcDbObjectId objId;
	acdbGetObjectId(objId,ent);
	AcDbEntityPointer pEnt(objId,AcDb::kForRead);
	Acad::ErrorStatus es=pEnt.openStatus();
	if (Acad::eOk != es)
	{
		acutPrintf(_T("\nFailed to open object,es=%s"),acadErrorStatusText(es));
		return;
	}

	const AcDbVoidPtrArray *pReactors=pEnt-&amp;gt;reactors();
	if (pReactors==NULL || pReactors-&amp;gt;length()&amp;lt;1)
	{
		acutPrintf(_T("\nThe object has no groups!"));
		return;
	}
	AcDbObjectIdArray entIds;
	for (int i=0;i&amp;lt;pReactors-&amp;gt;length();i++)
	{
		void* pSomething = pReactors-&amp;gt;at(i);
		if (pSomething==NULL) continue;
		if (!acdbIsPersistentReactor(pSomething)) continue;
		AcDbObjectId persReactorId=acdbPersistentReactorObjectId(pSomething);
		AcDbObjectPointer&amp;lt;AcDbGroup&amp;gt; pGroup(persReactorId,AcDb::kForRead);
		pGroup-&amp;gt;allEntityIds(entIds);		
	}

	for (int i=0;i&amp;lt;entIds.length();i++)
	{
		AcDbEntity *pEnt = NULL;
		if (acdbOpenObject(pEnt, entIds.at(i), AcDb::kForWrite) == Acad::eOk)
		{
		if (pEnt-&amp;gt;isKindOf(AcDbText::desc()))
		{
			pEnt-&amp;gt;erase();
		}
		else
		{
			pEnt-&amp;gt;close();
			AcDbCurve* pEnt;
			double PaPtCen;
			AcGePoint3d PtCen;
	
	
			acdbOpenObject(pEnt, entIds.at(i), AcDb::kForRead);
			double startParam, endParam, startDist, endDist;
	
			pEnt-&amp;gt;getStartParam(startParam);  
			pEnt-&amp;gt;getEndParam(endParam);      
			pEnt-&amp;gt;getDistAtParam(startParam, startDist); 
			pEnt-&amp;gt;getDistAtParam(endParam, endDist); 
			double Clength = endDist - startDist;   
			pEnt-&amp;gt;getParamAtDist(Clength * 0.5,PaPtCen);  
			pEnt-&amp;gt;getPointAtParam(PaPtCen,PtCen); 

			WCHAR s[20];
			_swprintf(s, L"L=%0.0f", Clength);

			AcDbText  *text = new AcDbText(PtCen,s,AcDbObjectId::kNull,80,0);
			text-&amp;gt;setColorIndex(50);
			text-&amp;gt;setWidthFactor(0.7);
	
			text-&amp;gt;setHorizontalMode(AcDb::TextHorzMode::kTextCenter);
			text-&amp;gt;setAlignmentPoint(PtCen);
			text-&amp;gt;setJustification(AcDbText::kTextAlignmentMiddleCenter );

			AcDbDatabase* pDb = acdbHostApplicationServices()-&amp;gt;workingDatabase();
			AcDbBlockTableRecordPointer pBTR(pDb-&amp;gt;currentSpaceId(), AcDb::kForWrite); 
			if (text &amp;amp;&amp;amp; Acad::eOk == pBTR.openStatus())  {pBTR-&amp;gt;appendAcDbEntity(text); text-&amp;gt;close();}
	

		}

		}
		pEnt-&amp;gt;close();
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 15:08:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/delete-the-text-in-group-a1-increase-the-arc-length-and-add-the/m-p/11125244#M2567</guid>
      <dc:creator>463017170</dc:creator>
      <dc:date>2022-04-24T15:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the text in group A1, increase the arc length and add the text to group A1?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/delete-the-text-in-group-a1-increase-the-arc-length-and-add-the/m-p/11127209#M2568</link>
      <description>&lt;P&gt;The main problem is &lt;FONT face="courier new,courier"&gt;AcDbEntityPointer pEnt(objId, AcDb::kForRead);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;This will keep the entity open for read until &lt;FONT face="courier new,courier"&gt;pEnt&lt;/FONT&gt; goes out of scope - which is when the function returns.&lt;/P&gt;
&lt;P&gt;It isn't possible to open an entity for write if it is already opened for read. So your call&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;acdbOpenObject(pEnt, entIds.at(i), AcDb::kForWrite)&lt;/FONT&gt; fails and return &lt;FONT face="courier new,courier"&gt;eWasOpenForRead&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;pEnt&lt;/FONT&gt;&amp;nbsp;remains NULL or uninitialized and &lt;FONT face="courier new,courier"&gt;pEnt-&amp;gt;close() &lt;/FONT&gt;crashes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the fixed version with some comments marked "//tb:" and recommendations:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;static void MSDDMyGroupMyCommand0() {
	ads_name ent;
	ads_point pt;
	if (RTNORM != acedEntSel(_T("\n选择对象: "), ent, pt))
		return;
	AcDbObjectId objId;
	acdbGetObjectId(objId, ent);
	AcDbEntityPointer pEntPtr(objId, AcDb::kForRead); //tb: renamed to avoid confusion with pEnt below
	Acad::ErrorStatus es = pEntPtr.openStatus();
	if (Acad::eOk != es)
	{
		acutPrintf(_T("\nFailed to open object,es=%s"), acadErrorStatusText(es));
		return;
	}

	const AcDbVoidPtrArray* pReactors = pEntPtr-&amp;gt;reactors();
	if (pReactors == NULL || pReactors-&amp;gt;length() &amp;lt; 1)
	{
		acutPrintf(_T("\nThe object has no groups!"));
		return;
	}
	AcDbObjectIdArray entIds;
	for (int i = 0; i &amp;lt; pReactors-&amp;gt;length(); i++)
	{
		void* pSomething = pReactors-&amp;gt;at(i);
		if (pSomething == NULL) continue;
		if (!acdbIsPersistentReactor(pSomething)) continue;
		AcDbObjectId persReactorId = acdbPersistentReactorObjectId(pSomething);
		AcDbObjectPointer&amp;lt;AcDbGroup&amp;gt; pGroup(persReactorId, AcDb::kForRead);
		pGroup-&amp;gt;allEntityIds(entIds); 
	}
	//tb: You are using AcDbEntityPointer pEnt above and 
	// AcDbEntity* pEnt; below. I would suggest to choose different names!
	// The problem is, that the AcDbEntityPointer pEnt keeps the entity open for read 
	// until it goes out of scope.
	// This causes that you can't open AcDbEntity* pEnt for write.
	pEntPtr-&amp;gt;close(); //tb: close it here explicitly.

	for (int i = 0; i &amp;lt; entIds.length(); i++)
	{
		AcDbEntity* pEnt = NULL; //tb: Confusing! NOT the same as AcDbEntityPointer pEnt above!
		//tb: It is always a good idea to store the Acad::ErrorStatus.
		// It gives important information if something goes wrong.
		// You should only open objects for write, if you really need to modify them.
		Acad::ErrorStatus es = acdbOpenObject(pEnt, entIds.at(i), AcDb::kForRead); //tb: Write-&amp;gt;Read
		if (es == Acad::eOk)
		{
			if (pEnt-&amp;gt;isKindOf(AcDbText::desc()))
			{
				//tb: Here we need write acces. So we upgradeOpen() the entity.
				es = pEnt-&amp;gt;upgradeOpen();
				if (es==Acad::eOk)
					pEnt-&amp;gt;erase();
			}
			else
			{
				double PaPtCen;
				AcGePoint3d PtCen;
				WCHAR s[20];

				// pEnt-&amp;gt;close();
				//tb: no need to reopen the entity. 
				// The 3rd usage of the variable name pEnt gave extra confusion!
				AcDbCurve* pCurve = AcDbCurve::cast(pEnt); 
				if (pCurve) // AcDbCurve::cast(pEnt) returns NULL if it isn't an AcDbCurve
				{
					double startParam, endParam, startDist, endDist;
					pCurve-&amp;gt;getStartParam(startParam);
					pCurve-&amp;gt;getEndParam(endParam);
					pCurve-&amp;gt;getDistAtParam(startParam, startDist);
					pCurve-&amp;gt;getDistAtParam(endParam, endDist);
					double Clength = endDist - startDist;
					pCurve-&amp;gt;getParamAtDist(Clength * 0.5, PaPtCen);
					pCurve-&amp;gt;getPointAtParam(PaPtCen, PtCen);
					_swprintf(s, L"L=%0.0f", Clength);

					AcDbText* text = new AcDbText(PtCen, s, AcDbObjectId::kNull, 80, 0);
					text-&amp;gt;setColorIndex(50);
					text-&amp;gt;setWidthFactor(0.7);

					text-&amp;gt;setHorizontalMode(AcDb::TextHorzMode::kTextCenter);
					text-&amp;gt;setAlignmentPoint(PtCen);
					text-&amp;gt;setJustification(AcDbText::kTextAlignmentMiddleCenter);

					AcDbDatabase* pDb = acdbHostApplicationServices()-&amp;gt;workingDatabase();
					AcDbBlockTableRecordPointer pBTR(pDb-&amp;gt;currentSpaceId(), AcDb::kForWrite);
					if (text &amp;amp;&amp;amp; Acad::eOk == pBTR.openStatus()) { 
						pBTR-&amp;gt;appendAcDbEntity(text); text-&amp;gt;close(); 
					}
				}
			}
			pEnt-&amp;gt;close(); //tb: moved here.
		}
		//pEnt-&amp;gt;close(); //tb: only close what you have opened!
	}
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="simple-translate"&gt;
&lt;DIV&gt;
&lt;DIV class="simple-translate-button isShow" style="background-image: url('moz-extension://8a33bbf6-8616-49ff-8595-7e2527764252/icons/512.png'); height: 22px; width: 22px; top: 339px; left: 408px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="simple-translate-panel " style="width: 300px; height: 200px; top: 0px; left: 0px; font-size: 13px; background-color: #ffffff;"&gt;
&lt;DIV class="simple-translate-result-wrapper" style="overflow: hidden;"&gt;
&lt;DIV class="simple-translate-move" draggable="true"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="simple-translate-result-contents"&gt;
&lt;P class="simple-translate-result" style="color: #000000;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="simple-translate-candidate" style="color: #737373;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Apr 2022 16:01:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/delete-the-text-in-group-a1-increase-the-arc-length-and-add-the/m-p/11127209#M2568</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2022-04-25T16:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the text in group A1, increase the arc length and add the text to group A1?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/delete-the-text-in-group-a1-increase-the-arc-length-and-add-the/m-p/11128465#M2569</link>
      <description>&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 04:56:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/delete-the-text-in-group-a1-increase-the-arc-length-and-add-the/m-p/11128465#M2569</guid>
      <dc:creator>463017170</dc:creator>
      <dc:date>2022-04-26T04:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the text in group A1, increase the arc length and add the text to group A1?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/delete-the-text-in-group-a1-increase-the-arc-length-and-add-the/m-p/11128512#M2570</link>
      <description>&lt;P&gt;Text length (L =?) Didn't join the group&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 05:36:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/delete-the-text-in-group-a1-increase-the-arc-length-and-add-the/m-p/11128512#M2570</guid>
      <dc:creator>463017170</dc:creator>
      <dc:date>2022-04-26T05:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Delete the text in group A1, increase the arc length and add the text to group A1?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/delete-the-text-in-group-a1-increase-the-arc-length-and-add-the/m-p/11128701#M2571</link>
      <description>&lt;P&gt;What do you mean? Do you want the new &lt;FONT face="courier new,courier"&gt;AcDbText&lt;/FONT&gt; entities to be members of the group?&lt;/P&gt;
&lt;P&gt;Than you just have to append their objectids to the group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;	AcDbObjectIdArray entIds, newTextIds; //tb: store text ids in newTextIds
	AcDbObjectId groupId; //tb: Store the group id here
	for (int i = 0; i &amp;lt; pReactors-&amp;gt;length(); i++)	{
		void* pSomething = pReactors-&amp;gt;at(i);
		if (pSomething == NULL) continue;
		if (!acdbIsPersistentReactor(pSomething)) continue;
		AcDbObjectId persReactorId = acdbPersistentReactorObjectId(pSomething);
		AcDbObjectPointer&amp;lt;AcDbGroup&amp;gt; pGroup(persReactorId, AcDb::kForRead);
		if (pGroup.object()) //tb: Better check. There might be other persistent reactors
		{
			groupId = pGroup-&amp;gt;objectId(); //tb: Store group id for later
			pGroup-&amp;gt;allEntityIds(entIds);
		}
	}
...
					if (text &amp;amp;&amp;amp; Acad::eOk == pBTR.openStatus()) { 
						es = pBTR-&amp;gt;appendAcDbEntity(text); 
						if (es == Acad::eOk)	{
							newTextIds.append(text-&amp;gt;objectId()); //tb: Store the id
							text-&amp;gt;close();
						}
						else
							delete text;
					}

...

	if (!newTextIds.isEmpty())	{ //tb: Append the new text entities to the group.
		AcDbGroup* group;
		if ((es = acdbOpenObject(group, groupId, AcDb::kForWrite)) == Acad::eOk) {
			group-&amp;gt;append(newTextIds);
			group-&amp;gt;close();
		}
	}
&lt;/LI-CODE&gt;
&lt;DIV id="simple-translate"&gt;
&lt;DIV&gt;
&lt;DIV class="simple-translate-button isShow" style="background-image: url('moz-extension://8a33bbf6-8616-49ff-8595-7e2527764252/icons/512.png'); height: 22px; width: 22px; top: 361px; left: 913px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="simple-translate-panel " style="width: 300px; height: 200px; top: 0px; left: 0px; font-size: 13px; background-color: #ffffff;"&gt;
&lt;DIV class="simple-translate-result-wrapper" style="overflow: hidden;"&gt;
&lt;DIV class="simple-translate-move" draggable="true"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="simple-translate-result-contents"&gt;
&lt;P class="simple-translate-result" style="color: #000000;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="simple-translate-candidate" style="color: #737373;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Apr 2022 07:29:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/delete-the-text-in-group-a1-increase-the-arc-length-and-add-the/m-p/11128701#M2571</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2022-04-26T07:29:27Z</dc:date>
    </item>
  </channel>
</rss>

