ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

setLineWeight - my weight

2 REPLIES 2
Reply
Message 1 of 3
ZK_BUDiKOM
363 Views, 2 Replies

setLineWeight - my weight

If it's possible, how can I do?:

 

enum MyWidth {

kLnWt000 = 0,
kLnWt005 = 2,
kLnWt009 = 3,
kLnWt013 = 5,

...

kLnWtByLayer = -1,
kLnWtByBlock = -2,
kLnWtByLwDefault = -3

}

 

 

I need function:

void setLineWeight(AcDbEntity* pObject, enum MyWidth)
{
     pObject->setLineWeight(MyWidth, true);                         // - my param
     //pObject->setLineWeight(AcDb::kLnWt120, true);          // - from SDK
}

 

I greet

2 REPLIES 2
Message 2 of 3
Balaji_Ram
in reply to: ZK_BUDiKOM

If you can provide more details on what you are trying to do then it will give us a better picture.

 

From the code, it appears that you intend to pass your enum value instead of the one provided in the SDK.

 

Not sure why you would want to do that, but it should work provided the numerical values of those enums are the same.

 

The other way is to create a simple wrapper method that maps your enum values to the ones provided by the SDK and then calls the setLineWeight.

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Message 3 of 3


@ZK_BUDiKOM wrote:

If it's possible, how can I do?:



No.

 

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost