Difference between acedCmd and acedPostCommand?

Difference between acedCmd and acedPostCommand?

Anonymous
Not applicable
1,489 Views
6 Replies
Message 1 of 7

Difference between acedCmd and acedPostCommand?

Anonymous
Not applicable

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

0 Likes
Accepted solutions (2)
1,490 Views
6 Replies
Replies (6)
Message 2 of 7

Alexander.Rivilis
Mentor
Mentor
Accepted solution

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

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

Alexander.Rivilis
Mentor
Mentor
Accepted solution

@Anonymous 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

0 Likes
Message 5 of 7

Anonymous
Not applicable
Thanks for the information. Very good info.
0 Likes
Message 6 of 7

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

Alexander.Rivilis
Mentor
Mentor

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

0 Likes