Autoloader doesn't - unknown command

Autoloader doesn't - unknown command

kstate92
Collaborator Collaborator
2,239 Views
12 Replies
Message 1 of 13

Autoloader doesn't - unknown command

kstate92
Collaborator
Collaborator

Package Contents.pngI've resigned myself to using the Appload / Startup Suite / lsp file workaround to get my project to load on startup, as I cannot understand why the autoload function doesn't.  The last thing I changed was switching from LoadonAutoCADStartup to LoadOnCommandInvocation and the required  Commands / Command nodes.  Using the Startup lisp routine, the project loads and runs when the command name 'partslist' is entered.

 

 

KState92
Inventor Professional 2020
AutoCAD Mechanical 2022.0.1
Windows 10 Pro 64 bit - 1903
Core i7-8700 32 GB Ram
Quadro P2000
0 Likes
Accepted solutions (1)
2,240 Views
12 Replies
Replies (12)
Message 2 of 13

moogalm
Autodesk Support
Autodesk Support

Sorry, I didn't understand your query correctly, can you please explain what is working for you and what is n't ?

 

0 Likes
Message 3 of 13

kstate92
Collaborator
Collaborator

@moogalm wrote:

Sorry, I didn't understand your query correctly, can you please explain what is working for you and what is n't ?

 


Even with the bundle folder structure and the xml file shown in my first post, when I invoke the routine (Command Method), I get 'unknown command'.

 

My plugin runs fine if I first manually netload the dll from the projects' folder bundle placed in C:\ProgramData\Autodesk\ApplicationPlugins, or if I add a netload lisp file to the appload Startup Suite.

 

KState92
Inventor Professional 2020
AutoCAD Mechanical 2022.0.1
Windows 10 Pro 64 bit - 1903
Core i7-8700 32 GB Ram
Quadro P2000
0 Likes
Message 4 of 13

moogalm
Autodesk Support
Autodesk Support

Can you please share Bundle structure XML ?, no need of your .NET dll, I will create my own helloworld sample.

 

 

0 Likes
Message 5 of 13

TimB67530
Enthusiast
Enthusiast

@moogalm wrote:

Can you please share Bundle structure XML ?, no need of your .NET dll, I will create my own helloworld sample.

 

 


 

0 Likes
Message 6 of 13

Alexander.Rivilis
Mentor
Mentor

@TimB67530 wrote:

@moogalm wrote:

Can you please share Bundle structure XML ?, no need of your .NET dll, I will create my own helloworld sample.

 

 


 


It is look like empty 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 7 of 13

TimB67530
Enthusiast
Enthusiast

Oh, FFS...

Added files (I hope).

0 Likes
Message 8 of 13

Alexander.Rivilis
Mentor
Mentor
Accepted solution

What about replace:

ModuleName="./Contents/PartsList.dll"

with

ModuleName="./Contents/Resources/PartsList.dll"

and

SupportPath="./Contents/Resouces"

with

SupportPath="./Contents/Resources"

???

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

TimB67530
Enthusiast
Enthusiast

@Alexander.Rivilis wrote:

What about replace:

ModuleName="./Contents/PartsList.dll"

with

ModuleName="./Contents/Resources/PartsList.dll"

and

SupportPath="./Contents/Resouces"

with

SupportPath="./Contents/Resources"

???


First an empty zip file, then overlooking two childish mistakes...

There must be a third one, as it still comes back with Unknown Command.

Corrections attached.

0 Likes
Message 10 of 13

Alexander.Rivilis
Mentor
Mentor

Repeat please:

ModuleName="./Contents/Resources/PartsList.dll"

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

Alexander.Rivilis
Mentor
Mentor

Test with this attached bundle. Do not forget to unblock the zip-file!!!

Command PartsList have to be working.

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

Alexander.Rivilis
Mentor
Mentor

 

 

 

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

TimB67530
Enthusiast
Enthusiast

THIRD DUMB MISTAKE FOUND: I forgot I had re-named the actual dll filename during all my various amateur attempts.

I changed it back to match the xml file and it loads on command entry.

 

Thank you very much, Alexander.

0 Likes