@jlobo2 wrote:
@Alexander.Rivilis
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();
Maybe "Standard" is renamed? If is easy rename dimstyle "Standard" to any other name with _RENAME command.
using (Transaction acTrans = theDb.TransactionManager.StartTransaction())
{
DimStyleTable pDimensionStyleTbl = acTrans.GetObject(theDb.DimStyleTableId,
OpenMode.ForRead) as DimStyleTable;
try {
idDimensionStyleStandard = pDimensionStyleTbl["Standard"];
} catch {};
acTrans.Commit();
}
Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"
Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
