How to run OPM sample from Kean's blog?

How to run OPM sample from Kean's blog?

Anonymous
Not applicable
8,486 Views
52 Replies
Message 1 of 53

How to run OPM sample from Kean's blog?

Anonymous
Not applicable

has anyone tried to get the following sample to run from c# express?

 

re: Modifying an AutoCAD object’s state via a dynamic property defined using .NET

URL:

http://through-the-interface.typepad.com/through_the_interface/2009/05/modifying-an-autocad-objects-...

 

This post has link to sample project for accessing property pallet, but I can't figure out how to make it work.  There is a mixture of c++ and c# and I can't find what modules I have to save to acad's folder (per kean's instructions) and what reference to use to replace the one that doesn't load when I try to run the sample project he supplied.

 

When I run the csproj file in the downloaded sample project a reference comes up "missing"

Warning 1 The referenced component 'OPMNetExt' could not be found.  

There is no OPMNetExt.dll in the downloaded sample, there is an OPMNetExtSample.dll and I placed that in the acad folder as he directed but that isn't the right one.

 

I also get the error:

Error 2 The type or namespace name 'OPM' does not exist in the namespace 'Autodesk.AutoCAD.Windows' (are you missing an assembly reference?) 

 

and the error:

Error 3 The type or namespace name 'IDynamicProperty2' could not be found (are you missing a using directive or an assembly reference?)

 

0 Likes
Accepted solutions (1)
8,487 Views
52 Replies
Replies (52)
Message 41 of 53

Alexander.Rivilis
Mentor
Mentor

@mttlp wrote:

I cannot look at the properties of the object I selected. can you help me

 

 


It seems you do not understand the difference between static and dynamic properties of entity. You can see the added dynamic properties only in the properties panel (OPM).

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

Anonymous
Not applicable

"asdkOPMNetExt.dll" not load in Autocad 2019 and 2020. After loaded this .dll Auto CAD 2019 & 2019 generated error i.e. Unable to load asdkOPMNetExt.dll is incompatible with this version of AutoCAD.

Please provide solution as possible.  I am waiting for your valuable response. 

0 Likes
Message 43 of 53

Alexander.Rivilis
Mentor
Mentor
Accepted solution

@Anonymous wrote:

"asdkOPMNetExt.dll" not load in Autocad 2019 and 2020. After loaded this .dll Auto CAD 2019 & 2019 generated error i.e. Unable to load asdkOPMNetExt.dll is incompatible with this version of AutoCAD.

Please provide solution as possible.  I am waiting for your valuable response. 


Try attached zip-file.

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

Anonymous
Not applicable

I have already worked on this link but it doesn't work for 2019 AutoCAD , kindly help me out.

0 Likes
Message 45 of 53

Alexander.Rivilis
Mentor
Mentor

@Anonymous wrote:

I have already worked on this link but it doesn't work for 2019 AutoCAD , kindly help me out.


Sorry, but attached OPMNetExt work with AutoCAD 2019. Try these settings in order to build sample:

 

2019-07-10_19-19-49.jpg

 

Demonstration:

 

 

 

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

tamara
Advocate
Advocate

Hello, 

I thought I'd give it a try to see if anybody on this tread has built asdkOPMNetExt.dll for AutoCAD 2020...

 

Best regards,

Popovic Tamara

0 Likes
Message 47 of 53

Alexander.Rivilis
Mentor
Mentor

Attached in post https://forums.autodesk.com/t5/net/how-to-run-opm-sample-from-kean-s-blog/m-p/8898365#M63185 have to be compability with AutoCAD 2019 and 2020.

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

tamara
Advocate
Advocate

I'm so sorry, I was meaning to write AutoCAD 2021. So sorry... I will edit my question.

0 Likes
Message 49 of 53

Alexander.Rivilis
Mentor
Mentor

OK. Try this project. It was ported to VS 2019 and ObjectARX SDK 2021.

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

Message 50 of 53

安娜hoohoo
Advocate
Advocate

Hello,

I have used your advice ,but "asdkOPMNetExt.dll " still not load in AutoCAD2020.I'm green hand,kindly help me out

 

Best wishes

Anna

0 Likes
Message 51 of 53

安娜hoohoo
Advocate
Advocate

Hello,

I have used your advice ,but "asdkOPMNetExt.dll " still not load in AutoCAD2020.I'm green hand,kindly help me out.I use VS2019,autocad2020 and ObjectARX2021.......

 

Best wishes

Anna

0 Likes
Message 52 of 53

tamara
Advocate
Advocate

You should use ObjectARX 2020 if you are using AutoCAD 2020...

0 Likes
Message 53 of 53

vucic_tamara
Enthusiast
Enthusiast

Hello,

 

This topic is popular again with the coming out of the new 2025 version. Anyone has the new build?

 

With kindest regards,

Tamara

0 Likes