Message 1 of 6
Executing ACAD commands from VB .NET
Not applicable
04-23-2009
03:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Not to be too long winded, but the following preamble may help anyone able to assisit:
What I know (on a scale of 1 = inexperienced to 5 = very experienced):
VB .NET - 4 - I've successfully converted a number VB6 projects to VB .NET (non-ACAD)
LISP - 5 - 'Been using it for 15+ years
ObjectARX - 3 - Had no probelm with small modules used in conjunction with my LISP apps.
What I need:
I am busy converting a mid sized LISP app to ObjectARX 2009 in the .NET managed environment. Much has progressed well and the program is a lot more elegant and refined than before. I am, however, and largely as a result of inexperience, having a oproblem with executing commands in the .NET managed classes. I am familiar with acedCommand & acedCmd in the pure Object ARX environment but after much trolling of discussion groups & the Internet I have been unable to find much help on how to achieve the same in VB .NET. In one thread Tony Tanzillo mentioned that there was a 'RunCommand' method in the editor class, but other than one mention of this (as a new method), I find no info regarding its use. I must also add that I have little experience using Reflection which I believe is the only way to use the RunCommand. BTW, the ObjectARX 2010 documentation does not menttion RunCommand at all.
The commands that I need to excecute are to insert a small drawing (WBLOCK), to draw PLINES and to insert small single lines of TEXT into a drawing.
Has anyone any suggestions or sample code that would help me?
Pse excuse any typos.
What I know (on a scale of 1 = inexperienced to 5 = very experienced):
VB .NET - 4 - I've successfully converted a number VB6 projects to VB .NET (non-ACAD)
LISP - 5 - 'Been using it for 15+ years
ObjectARX - 3 - Had no probelm with small modules used in conjunction with my LISP apps.
What I need:
I am busy converting a mid sized LISP app to ObjectARX 2009 in the .NET managed environment. Much has progressed well and the program is a lot more elegant and refined than before. I am, however, and largely as a result of inexperience, having a oproblem with executing commands in the .NET managed classes. I am familiar with acedCommand & acedCmd in the pure Object ARX environment but after much trolling of discussion groups & the Internet I have been unable to find much help on how to achieve the same in VB .NET. In one thread Tony Tanzillo mentioned that there was a 'RunCommand' method in the editor class, but other than one mention of this (as a new method), I find no info regarding its use. I must also add that I have little experience using Reflection which I believe is the only way to use the RunCommand. BTW, the ObjectARX 2010 documentation does not menttion RunCommand at all.
The commands that I need to excecute are to insert a small drawing (WBLOCK), to draw PLINES and to insert small single lines of TEXT into a drawing.
Has anyone any suggestions or sample code that would help me?
Pse excuse any typos