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

Difference between acedCmd and acedPostCommand?

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
bjhuffine
955 Views, 6 Replies

Difference between acedCmd and acedPostCommand?

Just out of curiosity, what's the difference between acedPostCommand and acedCmd?

6 REPLIES 6
Message 2 of 7

This is a completely different functions:

1) The first asynchronous - the second synchronous
2) The first takes as a parameter only string - the second strings, doubles, array of doubles, etc.
3) The first requires the final " " or "\n" - the second does not.

But both functions require PInvoke in .NET 🙂

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

How does this vary from Editor.Command()? Is it basically a wrapped implementation of acedCmd?
Message 4 of 7


@bjhuffine wrote:
How does this vary from Editor.Command()? Is it basically a wrapped implementation of acedCmd?

acedCmd is the same as Editor.Command()

acedPostCommand is similar (but not the same) as Document.SendStringToExecute()

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

Thanks for the information. Very good info.
Message 6 of 7

Sorry for the additional reply. I was answering from out of town previously. What is the major difference between acedPostCommand() and SendStringToExecute() then?
Message 7 of 7

acedPostCommand send command only to active document (Application.DocumentManager.MdiActiveDocument)

Document.SendStringToExecute() send command to any opened document.

More on this can probably tell only Autodesk specialists.

 

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

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost