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

evaluation:RGB ValueR ValueG ValueB

3 REPLIES 3
Reply
Message 1 of 4
1127204185
288 Views, 3 Replies

evaluation:RGB ValueR ValueG ValueB

123.png

 

AcColorSettings pColorSettings; 
acedGetCurrentColors(&pColorSettings);
DWORD rgbColor = pColorSettings.dwGfxModelBkColor;
BYTE ValueR=GetRValue(rgbColor);
BYTE ValueG=GetGValue(rgbColor);???????
BYTE ValueB=GetBValue(rgbColor);

 

3 REPLIES 3
Message 2 of 4
daniel_cadext
in reply to: 1127204185

Compiler is set too strict, disable "Smaller Type Check"  /RTC c

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
Message 3 of 4
1127204185
in reply to: daniel_cadext

Thank you very much!
How to solve the problem of vs2012

acedColorSettingsChanged(false, true, true);

acrxEntryPoint.cpp(253): error C3861: “acedColorSettingsChanged”: 找不到标识符
Message 4 of 4
daniel_cadext
in reply to: 1127204185

acedColorSettingsChanged is undocumented, so, I would have to guess something like

 

#pragma comment( lib, "acad.lib")
__declspec(dllimport) BOOL __cdecl acedColorSettingsChanged(BOOL,BOOL,BOOL)

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx

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

Post to forums  

Forma Design Contest


Autodesk Design & Make Report