<?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 Problem with creating custom text edited imension in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/problem-with-creating-custom-text-edited-imension/m-p/3147492#M15480</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I'm trying to create dimention for my grip point, using custom edited text. For example when I use distance editing by &lt;STRONG&gt;AcDbAlignedDimension&lt;/STRONG&gt;﻿ class I want to support different measures, so user string "10m" means istance 10 meaters, and string "10mm" means 10 millimeaters and so on.&lt;/P&gt;&lt;P&gt;So I try to use setCustomStringFunc﻿ to solve this problem, but my function work only when I enter a numeric value (if I enter another sybol it doesn't called). Here the part of me code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void MybObject::dim_gripDimensionFunc(AcDbGripData* pThis, const AcDbObjectId&amp;amp; entId, double dimScale, AcDbDimDataPtrArray&amp;amp; arrDimData)﻿&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;AcDbAlignedDimension *pGradeDim = new AcDbAlignedDimension();&lt;BR /&gt;pGradeDim-&amp;gt;setDatabaseDefaults(acdbHostApplicationServices()-&amp;gt;workingDatabase());&lt;BR /&gt;pGradeDim-&amp;gt;setNormal(AcGeVector3d::kZAxis);&lt;BR /&gt;pGradeDim-&amp;gt;setElevation(0.0);&lt;BR /&gt;pGradeDim-&amp;gt;setInspection(false); //As far as I unerstand it might swich off checking of numeric entering&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;AcDbDimData *pDimData = new AcDbDimData(pGradeDim);&lt;BR /&gt;pDimData-&amp;gt;setDimFocal(true);&lt;BR /&gt;pDimData-&amp;gt;setOwnerId(entId);&lt;BR /&gt;pDimData-&amp;gt;setDimEditable(true);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;pDimData-&amp;gt;setCustomString(true);&lt;BR /&gt;pDimData-&amp;gt;setCustomStringFunc(dim_setCustomStringFunc);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//dim_setCustomStringFunc﻿ - is my function, which might interpritate entered string, but if I unput something ifferent from //number (for example "10m") it doesn't even call this function!&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;pDimData-&amp;gt;setAppData(pData);&lt;BR /&gt;arrDimData.append(pDimData);﻿&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks. ﻿&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2011 12:36:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-09-06T12:36:25Z</dc:date>
    <item>
      <title>Problem with creating custom text edited imension</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/problem-with-creating-custom-text-edited-imension/m-p/3147492#M15480</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I'm trying to create dimention for my grip point, using custom edited text. For example when I use distance editing by &lt;STRONG&gt;AcDbAlignedDimension&lt;/STRONG&gt;﻿ class I want to support different measures, so user string "10m" means istance 10 meaters, and string "10mm" means 10 millimeaters and so on.&lt;/P&gt;&lt;P&gt;So I try to use setCustomStringFunc﻿ to solve this problem, but my function work only when I enter a numeric value (if I enter another sybol it doesn't called). Here the part of me code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void MybObject::dim_gripDimensionFunc(AcDbGripData* pThis, const AcDbObjectId&amp;amp; entId, double dimScale, AcDbDimDataPtrArray&amp;amp; arrDimData)﻿&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;AcDbAlignedDimension *pGradeDim = new AcDbAlignedDimension();&lt;BR /&gt;pGradeDim-&amp;gt;setDatabaseDefaults(acdbHostApplicationServices()-&amp;gt;workingDatabase());&lt;BR /&gt;pGradeDim-&amp;gt;setNormal(AcGeVector3d::kZAxis);&lt;BR /&gt;pGradeDim-&amp;gt;setElevation(0.0);&lt;BR /&gt;pGradeDim-&amp;gt;setInspection(false); //As far as I unerstand it might swich off checking of numeric entering&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;AcDbDimData *pDimData = new AcDbDimData(pGradeDim);&lt;BR /&gt;pDimData-&amp;gt;setDimFocal(true);&lt;BR /&gt;pDimData-&amp;gt;setOwnerId(entId);&lt;BR /&gt;pDimData-&amp;gt;setDimEditable(true);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;pDimData-&amp;gt;setCustomString(true);&lt;BR /&gt;pDimData-&amp;gt;setCustomStringFunc(dim_setCustomStringFunc);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//dim_setCustomStringFunc﻿ - is my function, which might interpritate entered string, but if I unput something ifferent from //number (for example "10m") it doesn't even call this function!&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;pDimData-&amp;gt;setAppData(pData);&lt;BR /&gt;arrDimData.append(pDimData);﻿&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks. ﻿&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2011 12:36:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/problem-with-creating-custom-text-edited-imension/m-p/3147492#M15480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-06T12:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with creating custom text edited imension</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/problem-with-creating-custom-text-edited-imension/m-p/3154998#M15481</link>
      <description>&lt;P&gt;Can you explain this in more detail please? Also, have you got a sample application to look at?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, can you post some images that show roughly what you are talking about please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;Fenton Webb&lt;/P&gt;
&lt;P&gt;Autodesk Developer Network&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2011 22:14:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/problem-with-creating-custom-text-edited-imension/m-p/3154998#M15481</guid>
      <dc:creator>fenton_webb</dc:creator>
      <dc:date>2011-09-12T22:14:26Z</dc:date>
    </item>
  </channel>
</rss>

