Reading DimStyles/Other Styles in different countries using C#

Reading DimStyles/Other Styles in different countries using C#

jlobo2
Advocate Advocate
358 Views
1 Reply
Message 1 of 2

Reading DimStyles/Other Styles in different countries using C#

jlobo2
Advocate
Advocate

I have this code in C#.NET to access the DimStyles on a different project.

It works well with users in one country, but not with another country.

Am I missing anything here?

 

DimStyleTable pDimensionStyleTbl;

using (Transaction acTrans = theDb.TransactionManager.StartTransaction())
{
      pDimensionStyleTbl = acTrans.GetObject(theDb.DimStyleTableId,
      OpenMode.ForRead) as DimStyleTable;
      idDimensionStyleStandard = pDimensionStyleTbl["Standard"];
}

pDimensionStyleTbl.Dispose();
0 Likes
359 Views
1 Reply
Reply (1)
Message 2 of 2

kerry_w_brown
Advisor
Advisor

 

Would that be a country that spells 

"Standard"

differently, I wonder ??

Just a wild assed guess.

 

How does your issue manifest itself ? 

ie: what does 'not work' mean ?

 

added:

why are you disposing the DimStyleTable ?

 


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
0 Likes