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

Running a command problem?

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
285 Views, 5 Replies

Running a command problem?

Hello All,

Our dept. here uses AutoCAD 2005. I have some commands that I have developed
in C#.NET. All of the assemblies are loaded with 'NETLOAD', no problem.
This week we got a new computer in our dept. AutoCAD 2005 is installed,
configured correctly and working fine. All of my custom commands that I
developed in ARX work too. For some reason, with the C#.NET commands, when I
try to run the commands, all I get is the command line message:

Unknown command "TMCI"

All of the other computers in our dept will run the .NET commands with no
problem.

The assemblies are definitely being loaded. When I load the assembly using
'NETLOAD' manually I don't receive any error messages, so it seems like that
is working ok.

What am I missing on this one computer to get this problem? I have never
seen this before. Never had this kind of trouble.

If anyone could help I would appreciate it!

Thanks!
Larry Burnett
5 REPLIES 5
Message 2 of 6
davidgarner
in reply to: Anonymous

This may be a long shot, but is the .Net Framework installed on the computer?
Message 3 of 6
Anonymous
in reply to: Anonymous

>> This may be a long shot, but is the .Net
>> Framework installed on the computer?

It should be clear from his description that
it is. If it wasn't he couldn't do much of
anything with C# based code.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
Message 4 of 6
davidgarner
in reply to: Anonymous

Perhaps you're right. But all the OP said was that the assembly loaded without errors.

But ACAD will load an assembly whether .net is installed or not. Because Net is JIT compiled the errors won't happen until a method or property is called that accesses the .net framework in the GAC.

Do you know what the problem is? At least I'm trying to help. What was your goal in posting?
Message 5 of 6
Anonymous
in reply to: Anonymous

You might want to take a close look at the LAYER
dialog in AutoCAD 2005.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:5113665@discussion.autodesk.com...
Perhaps you're right. But all the OP said was that the assembly loaded without errors.

Because Net is JIT compiled the errors won't happen until a method or property is called that accesses the .net framework in the GAC.

Do you know what the problem is? At least I'm trying to help. What was your goal in posting?
Message 6 of 6
karpediemnow
in reply to: Anonymous

I have the same problem, in autocad 2011 work fine but in autocad 2010 write unricognized command :(.

 

The problem are the command name have the command:

 

[CommandMethod("_BDHelp")]

 

if remove the underscore and work fine.

 

[CommandMethod("BDHelp")]

 

 

Regards

 

 

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