Problem with AcgeMatrix3d?

Problem with AcgeMatrix3d?

D_D_K
Advocate Advocate
973 Views
4 Replies
Message 1 of 5

Problem with AcgeMatrix3d?

D_D_K
Advocate
Advocate

hello I am using vsto2019(compile platform vsto2017), however I cannot use the AcGeMatrix3d class, I always get errors when compiling the code. This is the code I use

 

//register function test
static void scaleEntity(); extern void test() { scaleEntitye(); } //Try compiling the code static void scaleEntity() { ADSN adent; acdbEntLast(adent); ID is = IDNULL; acdbGetObjectId(is, adent); AcDbObjectIdArray mas; mas.append(is); ads_point pPoint; double scaleCoef = 2.0; AcGeMatrix3d m; m.setToScaling(scaleCoef, AcGePoint3d(pPoint[X], pPoint[Y], pPoint[Z])); //continue code
... }

This is the error I receive, 

 

image.png

 

Error	LNK2019	unresolved external symbol "public: class AcGeMatrix3d & __cdecl AcGeMatrix3d::setToScaling(double,class AcGePoint3d const &)" (?setToScaling@AcGeMatrix3d@@QEAAAEAV1@NAEBVAcGePoint3d@@@Z) referenced in function "void __cdecl scaleEntitye(void)" (?scaleEntitye@@YAXXZ)	
Error	LNK2019	unresolved external symbol "public: __cdecl AcGeMatrix3d::AcGeMatrix3d(void)" (??0AcGeMatrix3d@@QEAA@XZ) referenced in function "void __cdecl scaleEntitye(void)" (?scaleEntitye@@YAXXZ)

If I didn't declare the prototype code static void scaleEntity () and call another function or call scaleEntity but remove these code related AcGeMatrix3d

 

	AcGeMatrix3d m;
	m.setToScaling(scaleCoef, AcGePoint3d(pPoint[X], pPoint[Y], pPoint[Z]));

then the code compiles normally.

I tried changing the runtime library in properties but it still didn't work.

Please help, thanks a lot!

 

 

 

 

 

 

 

 

0 Likes
Accepted solutions (2)
974 Views
4 Replies
Replies (4)
Message 2 of 5

Alexander.Rivilis
Mentor
Mentor
Accepted solution

You have to link with acge23.lib (23 - for AutoCAD 2019...2020).

Edited as @moogalm corrected

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

moogalm
Autodesk Support
Autodesk Support
Accepted solution

AcGe24.lib is not for AutoCAD 2020, AutoCAD 2020 is non binary breaking release, find for AcGe23.lib from SDK\lib-x64.

 

Message 4 of 5

Alexander.Rivilis
Mentor
Mentor

Oops! Sorry. I think you can guess in what version of ObjectARX SDK I looked. 🙂

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

D_D_K
Advocate
Advocate

Hi Experts , It was really working 😀 , i am now able to continue with my project.

Many thanks! 

 

 

 

0 Likes