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

netload dll not working in AutoCAD Map 2022

1 REPLY 1
Reply
Message 1 of 2
sonderaufgaben
422 Views, 1 Reply

netload dll not working in AutoCAD Map 2022

Hi! I am developing a C# application for our company since about 6 months. I load my builded dll into AutoCad Map with the netload command. In AutoCAD 2022 everything worked fine, so my public methods were accessible with typing in ACAD editor.

Now I installed AutoCAD Map 2022 and the same dll doesn't work anymore. I load it as usual with the netload command but my methods aren't accessible. Also my initialize function output isn't be written in the editor.

Has anything been changed between the 2020 and the 2022 version? I don't find any development changelog or something like that. I've been searching now for two days.

 

The following command should be accessible, doesn't it?

 

[CommandMethod("DebugGetHaltungStartEndWidth", CommandFlags.Session)]
public void GetHaltungStartEndWidth()
{
Entity entityObj = helpers.GetHaltungUI("Haltung");

if (entityObj == null)
return;

Polyline pLine = entityObj as Polyline;

for (int i = 0; i < pLine.NumberOfVertices; i++)
helpers.EditorWriteLine("Vertex " + i.ToString() + ":\n - StartWidth: " + pLine.GetStartWidthAt(i) + "\n - EndWidth: " + pLine.GetEndWidthAt(i));
}

 

I'm looking forward for your help, thank you!

 

1 REPLY 1
Message 2 of 2

Check twice your Initialize method.

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

AutoCAD Inside the Factory


Autodesk Design & Make Report