<?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: Read and set Dimension style from current drawing file. in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883958#M5289</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1626012"&gt;@jlobo2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;ok,&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;now the error message is&amp;nbsp;&lt;BR /&gt;
&lt;PRE&gt;Error (active)		identifier "acdbHostApplicationServices" is undefined	&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;So, the first code snippet I posted, works on AutoCAD 2018 on Windows 8, but fails to work on AutoCAD 2018 on Windows 10. Any idea why?&lt;/LI&gt;
&lt;/OL&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No ideas. You have to debug your code.&lt;/P&gt;
&lt;P&gt;P.S.: Error is due to your not include dbapserv.h&lt;/P&gt;
&lt;P&gt;Best solution is create new project with ObjectARX Wizard 2018&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2019 21:30:31 GMT</pubDate>
    <dc:creator>Alexander.Rivilis</dc:creator>
    <dc:date>2019-07-01T21:30:31Z</dc:date>
    <item>
      <title>Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883650#M5276</link>
      <description>&lt;P&gt;How do I read, from a Dimension Style table in the current drawing, and set it to an object to be used later for drawing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code below, returns object id as null. Am I missing something here?&lt;/P&gt;&lt;P&gt;Thank You for your help in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;AcDbDimStyleTable *pDimensionStyleTbl;

theDb-&amp;gt;getSymbolTable(pDimensionStyleTbl, AcDb::kForRead);
pDimensionStyleTbl-&amp;gt;getAt(_T("_STANDARD"), idDimensionStyleStandard);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 18:58:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883650#M5276</guid>
      <dc:creator>jlobo2</dc:creator>
      <dc:date>2019-07-01T18:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883704#M5277</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1626012"&gt;@jlobo2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to use AcDbDatabase::dimStyleTableId for get AcDbObjectId of AcDbDimStyleTable&lt;/P&gt;
&lt;P&gt;Also you have to check name _STANDARD (maybe STANDARD without underscore)&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 19:19:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883704#M5277</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-07-01T19:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883743#M5278</link>
      <description>&lt;P&gt;Thank You for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The underscore, is the part of the name in the current drawing.&lt;/P&gt;&lt;P&gt;Not sure, what did you mean by&amp;nbsp;AcDbDatabase::dimStyleTableId ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	AcDbDatabase::dimStyleTableId *tempDb;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 19:39:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883743#M5278</guid>
      <dc:creator>jlobo2</dc:creator>
      <dc:date>2019-07-01T19:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883777#M5279</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1626012"&gt;@jlobo2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;static void ADSKMyGroupMyCommand() {
  Acad::ErrorStatus es;
  AcDbDatabase *pCurDb = acdbCurDwg();
  AcDbObjectId idDimStyleTable = pCurDb-&amp;gt;dimStyleTableId();
  AcDbDimStyleTablePointer pDimStyleTable(idDimStyleTable, AcDb::kForRead);
  if ((es = pDimStyleTable.openStatus()) == Acad::eOk)
  {
    AcDbObjectId idDimStyleTableRecord;
    if ((es = pDimStyleTable-&amp;gt;getAt(_T("_STANDARD"), idDimStyleTableRecord)) == Acad::eOk)
    {
      acutPrintf(_T("\nidDimStyleTableRecord=%x"), idDimStyleTableRecord.asOldId());
    }
    else
    {
      acutPrintf(_T("\npDimStyleTable-&amp;gt;getAt() = %s"), acadErrorStatusText(es));
    }
  }
  else
  {
    acutPrintf(_T("\npDimStyleTable.openStatus() = %s"), acadErrorStatusText(es));
  }

}

&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jul 2019 19:55:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883777#M5279</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-07-01T19:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883823#M5280</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/481027"&gt;@Alexander.Rivilis&lt;/a&gt;&amp;nbsp; Thank You for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am receiving an error with&amp;nbsp; AcDbDimStyleTablePointer pDimStyleTable(idDimStyleTable, AcDb::kForRead);&lt;/P&gt;&lt;P&gt;saying, that it's an undeclared identifier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which libraries are you using? I am using Object ARX, in Visual Studio. I only have the options below with the&amp;nbsp;&lt;/P&gt;&lt;P&gt;AcDbDimStyleTable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DimensionStyle.jpg" style="width: 769px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/652990i1F72311108826562/image-size/large?v=v2&amp;amp;px=999" role="button" title="DimensionStyle.jpg" alt="DimensionStyle.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 20:13:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883823#M5280</guid>
      <dc:creator>jlobo2</dc:creator>
      <dc:date>2019-07-01T20:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883830#M5281</link>
      <description>&lt;P&gt;Ok. Add line on top of file:&lt;/P&gt;
&lt;PRE&gt;#include "dbobjptr.h"&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jul 2019 20:15:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883830#M5281</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-07-01T20:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883865#M5282</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/481027"&gt;@Alexander.Rivilis&lt;/a&gt;&amp;nbsp; Thank You, but the id is still NULL. Not sure why.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 20:28:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883865#M5282</guid>
      <dc:creator>jlobo2</dc:creator>
      <dc:date>2019-07-01T20:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883868#M5283</link>
      <description>&lt;P&gt;Attach your dwg-file. What ObjectARX SDK version you use?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 20:30:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883868#M5283</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-07-01T20:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883892#M5284</link>
      <description>&lt;P&gt;We are using ObjectArx 2018 version. we have a template file setup. So all we are trying to do is read data from the template drawing file and use the data while drawing a new one.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 20:38:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883892#M5284</guid>
      <dc:creator>jlobo2</dc:creator>
      <dc:date>2019-07-01T20:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883911#M5285</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1626012"&gt;@jlobo2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;We are using ObjectArx 2018 version. we have a template file setup. So all we are trying to do is read data from the template drawing file and use the data while drawing a new one.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I've created new dwg-file, created new Dimension Style with name _STANDARD and exec my code in this drawing - no error and valid AcDbObjectId:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/cd2419c5-b82f-4bde-8577-417a3868f98d" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" width="640" height="700" frameborder="0"&gt;&lt;/IFRAME&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 20:54:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883911#M5285</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-07-01T20:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883946#M5286</link>
      <description>&lt;P&gt;Ok.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am sure we are missing some files.&lt;/P&gt;&lt;P&gt;In the code -&amp;nbsp; AcDbDatabase *pCurDb = acdbCurDwg(); gives us an error, acdbCurrDwg is undefined.&lt;/P&gt;&lt;P&gt;Which header file should we include for this one?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 21:17:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883946#M5286</guid>
      <dc:creator>jlobo2</dc:creator>
      <dc:date>2019-07-01T21:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883951#M5287</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1626012"&gt;@jlobo2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Ok.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am sure we are missing some files.&lt;/P&gt;
&lt;P&gt;In the code -&amp;nbsp; AcDbDatabase *pCurDb = acdbCurDwg(); gives us an error, acdbCurrDwg is undefined.&lt;/P&gt;
&lt;P&gt;Which header file should we include for this one?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Add:&lt;/P&gt;
&lt;PRE&gt;#include "migrtion.h"&lt;/PRE&gt;
&lt;P&gt;or replace &lt;STRONG&gt;acdbCurDwg()&lt;/STRONG&gt; with &lt;STRONG&gt;acdbHostApplicationServices()-&amp;gt;workingDatabase()&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 21:20:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883951#M5287</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-07-01T21:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883955#M5288</link>
      <description>&lt;P&gt;ok,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;now the error message is&amp;nbsp;&lt;BR /&gt;&lt;PRE&gt;Error (active)		identifier "acdbHostApplicationServices" is undefined	&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;So, the first code snippet I posted, works on AutoCAD 2018 on Windows 8, but fails to work on AutoCAD 2018 on Windows 10. Any idea why?&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 01 Jul 2019 21:24:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883955#M5288</guid>
      <dc:creator>jlobo2</dc:creator>
      <dc:date>2019-07-01T21:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883958#M5289</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1626012"&gt;@jlobo2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;ok,&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;now the error message is&amp;nbsp;&lt;BR /&gt;
&lt;PRE&gt;Error (active)		identifier "acdbHostApplicationServices" is undefined	&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;So, the first code snippet I posted, works on AutoCAD 2018 on Windows 8, but fails to work on AutoCAD 2018 on Windows 10. Any idea why?&lt;/LI&gt;
&lt;/OL&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No ideas. You have to debug your code.&lt;/P&gt;
&lt;P&gt;P.S.: Error is due to your not include dbapserv.h&lt;/P&gt;
&lt;P&gt;Best solution is create new project with ObjectARX Wizard 2018&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 21:30:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883958#M5289</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-07-01T21:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883992#M5290</link>
      <description>&lt;P&gt;Yes, I believe that's the way to go. Was just debugging and bug fixing code for my colleague, who is no more with the company. I really appreciate your help. It saved me lot of research time.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 21:44:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8883992#M5290</guid>
      <dc:creator>jlobo2</dc:creator>
      <dc:date>2019-07-01T21:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8909779#M5291</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/481027"&gt;@Alexander.Rivilis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this code in C#.NET to access the DimStyles on a different project.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;It works well with users in one country, but not with another country.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Am I missing anything here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DimStyleTable pDimensionStyleTbl;

using (Transaction acTrans = theDb.TransactionManager.StartTransaction())
{
&amp;nbsp; &amp;nbsp; &amp;nbsp; pDimensionStyleTbl = acTrans.GetObject(theDb.DimStyleTableId,
&amp;nbsp; &amp;nbsp; &amp;nbsp; OpenMode.ForRead) as DimStyleTable;
&amp;nbsp; &amp;nbsp; &amp;nbsp; idDimensionStyleStandard = pDimensionStyleTbl["Standard"];
}

pDimensionStyleTbl.Dispose();&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Jul 2019 15:11:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8909779#M5291</guid>
      <dc:creator>jlobo2</dc:creator>
      <dc:date>2019-07-15T15:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8909818#M5292</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1626012"&gt;@jlobo2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/481027"&gt;@Alexander.Rivilis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this code in C#.NET to access the DimStyles on a different project.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;It works well with users in one country, but not with another country.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Am I missing anything here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DimStyleTable pDimensionStyleTbl;

using (Transaction acTrans = theDb.TransactionManager.StartTransaction())
{
&amp;nbsp; &amp;nbsp; &amp;nbsp; pDimensionStyleTbl = acTrans.GetObject(theDb.DimStyleTableId,
&amp;nbsp; &amp;nbsp; &amp;nbsp; OpenMode.ForRead) as DimStyleTable;
&amp;nbsp; &amp;nbsp; &amp;nbsp; idDimensionStyleStandard = pDimensionStyleTbl["Standard"];
}

pDimensionStyleTbl.Dispose();&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Maybe "Standard" is renamed? If is easy rename dimstyle "Standard" to any other name with _RENAME command.&lt;/P&gt;
&lt;PRE&gt;using (Transaction acTrans = theDb.TransactionManager.StartTransaction())
{
      DimStyleTable pDimensionStyleTbl = acTrans.GetObject(theDb.DimStyleTableId,
      OpenMode.ForRead) as DimStyleTable;
      try {
        idDimensionStyleStandard = pDimensionStyleTbl["Standard"];
      } catch {};
      acTrans.Commit();
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 15:28:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8909818#M5292</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-07-15T15:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8909831#M5293</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="SpainStandardDimStyle.jpg" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/657625i4C8202B3AF1E77C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SpainStandardDimStyle.jpg" alt="SpainStandardDimStyle.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I thought so, but its named as Standard.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 15:32:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8909831#M5293</guid>
      <dc:creator>jlobo2</dc:creator>
      <dc:date>2019-07-15T15:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8909926#M5294</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1626012"&gt;@jlobo2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;I thought so, but its named as Standard.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What value of idDimensionStyleStandard after code execution?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 16:04:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8909926#M5294</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-07-15T16:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Read and set Dimension style from current drawing file.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8912563#M5295</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/481027"&gt;@Alexander.Rivilis&lt;/a&gt;&amp;nbsp; Any help to the question below. i would really appreciate it.&lt;/P&gt;&lt;P&gt;&lt;A title="Make Dimensions Annotative from a Template in the drawing" href="https://forums.autodesk.com/t5/autocad-forum/how-to-set-dimensions-to-annotative-using-c-net/td-p/8912554" target="_blank" rel="noopener"&gt;Make Dimensions Annotative from a Template in the drawing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dimensions are not being annotative.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnnotativeScaleDimensions.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/658085i21914AB46F2FE047/image-size/large?v=v2&amp;amp;px=999" role="button" title="AnnotativeScaleDimensions.jpg" alt="AnnotativeScaleDimensions.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 17:50:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/read-and-set-dimension-style-from-current-drawing-file/m-p/8912563#M5295</guid>
      <dc:creator>jlobo2</dc:creator>
      <dc:date>2019-07-16T17:50:08Z</dc:date>
    </item>
  </channel>
</rss>

