TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Nils Blums
NA
3
0
Problem with C# and AutoCAD
Nov 29 2008 5:09 PM
Hello! I have a liitle problem with my programm. I need to create programm that is making a AutoCAD drawing from a windows form. I Alrady got the everything done, but have one small problem: I can send command to autocad only once per my programm is running, if i try to send two commands it crushes and give me error that Call was rejected by callee. I mange to find that it is becuse of the time the send command need to go to autocad. I also find this solution http://msdn.microsoft.com/en-us/library/ms228772(VS.80).aspx from the post here http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/617a7fbf-2090-41e7-aca0-c14957d632c8/ I done the solution and it actualy work, but there is another problem now, actualy still same. The MessageFilter.Register(); works and its stops the crush and the error message are not showing, but nothing hapens, i mean the next send command aint working, it just stops working, i mean the command aint sending. Here is the piece of my code: public void RenameLayoutu() { MessageFilter.Register(); acadDoc.SendCommand("_layout r Layout1"); SendKeys.Send("{ENTER}"); acadDoc.SendCommand("mylayout"); SendKeys.Send("{ENTER}"); MessageFilter.Revoke(); } It is to rename one of the layouts in the document. First command working, then enter key sending, and after that nothing, there aint crush, programm is still runing and i can draw in autocad manualy everything is working exept sending of second command. Thank to anyone who will help. Best regards NILS.
Reply
Answers (
3
)
How to insert a rich text format into a word file in C#?
Passing HWND from Win32 to C#