How to read and set Dimension style from current drawing file.

How to read and set Dimension style from current drawing file.

jlobo2
Advocate Advocate
421 Views
1 Reply
Message 1 of 2

How to read and set Dimension style from current drawing file.

jlobo2
Advocate
Advocate

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?

 

The code below, returns object id as null. Am I missing something here?

Thank You for your help in advance.

 

AcDbDimStyleTable *pDimensionStyleTbl;

theDb->getSymbolTable(pDimensionStyleTbl, AcDb::kForRead);
pDimensionStyleTbl->getAt(_T("_STANDARD"), idDimensionStyleStandard);
0 Likes
422 Views
1 Reply
Reply (1)
Message 2 of 2

Alexander.Rivilis
Mentor
Mentor

https://forums.autodesk.com/t5/objectarx/read-and-set-dimension-style-from-current-drawing-file/m-p/...

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | 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
Expert Elite Member

0 Likes