TheSwamp

Code Red => .NET => Topic started by: ekoneo on November 20, 2015, 01:50:24 AM

Title: I didnt show a form from my "commands.cs" class sheet. Where is my false?
Post by: ekoneo on November 20, 2015, 01:50:24 AM
Hi All,

I spent too much time for my researches about showing a form from a class page. I m using a civil3d template. In this template I have a class file. Also I have a form in the solution explorer. The Class file runs first then after all calculations completed the form become visible. Then I press a butoon in the form an array will be written in an excell sheet. I spent 5 days but I didnt do what I think. I didnt show the form from my "commands.cs" class sheet. Where is my false?
Title: Re: I didnt show a form from my "commands.cs" class sheet. Where is my false?
Post by: n.yuan on November 20, 2015, 10:06:13 AM
Showing picture of the "Solution Explorer" does nothing helping understand your issue. You need to show your code, especially the code in the CommandMethod.

If I have guess, it could be the issue of understanding whether the command being "static" or not. It would also make difference if the form is shown as modal, or as modeless.

These posts may be helpful:

http://drive-cad-with-code.blogspot.ca/2010/09/command-method-static-or-not-static.html (http://drive-cad-with-code.blogspot.ca/2010/09/command-method-static-or-not-static.html)
http://drive-cad-with-code.blogspot.ca/2014_02_01_archive.html (http://drive-cad-with-code.blogspot.ca/2014_02_01_archive.html)

Title: Re: I didnt show a form from my "commands.cs" class sheet. Where is my false?
Post by: CADbloke on November 25, 2015, 05:25:56 AM
Did you miss the CommandMethod Attribute?   https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-NET/files/GUID-F77E8FE0-8034-4704-93BD-F717608F8223-htm.html