|
Hi All,
Iam a NewBie to C# Programming,How can I Import a DWG file into my C# Application.I got a Sample Code From "Search" but the code reads only DXF files and that to it is unable to read all DXF files.
Help Needed,
Cheers
ansu
|
|
|
|
|
DWG is a proprietary format by Audodesk and as far as I know they don't publish up to date versions of their format, that is why they created the DXF format for interchanging with other programs. As far as I know there are almost no differences between the DWG and the DXF version of a file except perhaps that the DWG might contain new structures from new releases of ACAD that Autodesk are trying out.
There are of course some programs that will read DWG files but as far as I know these are "hacking" their way of it or using AutoCAD components.
|
|
|
|
|
Hi
I have one treeview there i have
Database
SQL
ORACLE
DB2
I have created one context menu
ContextMenu cMenu=new ContextMenu(0;
cMenu.Add("New");
cMenu.Add("Edit");
cMenu.Add("Schedule");
What is my problem is how to populate the context menu in database click(SQL, ORACLE or DB2) also how to capture the event to do some functionalities for edit, new and schedule.
anyone help me pleaseeeeeee?
kesavan
|
|
|
|
|
this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem1,
this.menuItem2});
this.contextMenu1.Popup += new System.EventHandler(this.contextMenu1_Popup);
// menuItem1
//
this.menuItem1.Index = 0;
this.menuItem1.Text = "xczcxz";
this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
//
// menuItem2
//
this.menuItem2.Index = 1;
this.menuItem2.Text = "zxczx";
this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
this.contextMenu1 = new System.Windows.Forms.ContextMenu();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
see here may be you goth somme ideea
|
|
|
|
|
Thanks a lot for your timing help.
kesavan
|
|
|
|
|
Hello all, I am trying to use the same feature of "SqlBulkCopy" but on oracle database, can anybody tell if there is a same feature for oracle or if there are better ways to do that, any help will be appreciated.;);)
LEARNER MAN
|
|
|
|
|
i'm plannin doin a project on online library using c#.net.
can i have the procedure or guidelines
|
|
|
|
|
|
dows someone know how to open a USB PORT?
|
|
|
|
|
|
Hi all,
i am new to programming in C#. i dont know to code it to get the output ie., the largest among the four numbers and the user will give the input as numbers. and the munbers are int type inta,b,c,d;
i need the code for largest among the four numbers of int a,b,c,d.
pleae help me in sending code.
regards,
chitra.
|
|
|
|
|
you can apply a simple algorithm,
if (a > b)
{
if (a > C)
{
if (a > d)
{
return a;
}
else
{
return d;
}
}
else
{
if (c > d)
{
return c;
}
else
{
return d;
}
}
}
else
{
if (b > C)
{
if (b > d)
{
return b;
}
else
{
return d;
}
}
else
{
if (c > d)
{
return c;
}
else
{
return d;
}
}
}
Learning is a never ending process of Life.
|
|
|
|
|
There's a simpler algorithm:
int Max4(int a, int b, int c, int d)
{
return Math.Max(Math.Max(a, b), Math.Max(c, d));
} Is this for a school assignment?
|
|
|
|
|
Luis Alonso Ramos wrote: Is this for a school assignment?
Seems pretty likely - and you just did him no favours by doing it for him.
|
|
|
|
|
Yeah, I didn't notice until I saw other posts from this same guy...
Anyway, the solution was trivial if he knew of the existence of Math.Max .
|
|
|
|
|
i'd use:
int[] numbers = {a,b,c,d};
int MaxNumber = GetHighestNumber(numbers);
public int GetHighestNumber(int[] testNumbers)
{
int max = 0;
foreach(int i in testNumbers)
{
//algorithm goes here
}
return max;
}
|
|
|
|
|
Using extension methods (C# 3.0):
int[] nums = {a,b,c,d};
int max = nums.GetLargest();
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
I have a solution that has two c# project named test and test.test, but MSBuild doesn't compile test.test.csproj.
I am trying to compile like this
msbuild.exe "c:\test.sln" "/t:test" "/p:Configuration=Debug": This command compiles correctly test project in test.sln solution.
msbuild.exe "c:\test.sln" "/t:test.test" "/p:Configuration=Debug":But this command doesn't compile test.test project, and gives the error that unable to find project test.test in test solution.
Any help regarding that.
Warm Regards,
Mushq
|
|
|
|
|
hi,
It should read smth like /t:Rebuild or /t:Compile or /t:Rebuild;Compile.
Greetings
Kaine
|
|
|
|
|
you are right but we can also provide target for individual project in a solution file, for example i can also do this
msbuild.exe "c:\test.sln" "/t:Rebuild:test" "/p:Configuration=Debug":
Look at the target, now the above command is going to rebuild only test project in test solution file.
Regards,
Mushq
|
|
|
|
|
Didnt know that last part... Thanks for the update
Greetings,
Kaine
|
|
|
|
|
hi, can anybody tell me is it possible to put multiple controls in a single grid cell? for eg, a static text box and a button inside one cell. use DataGridView class in C#
thanks!
Nathan
|
|
|
|
|
nathan7 wrote:
can anybody tell me is it possible to put multiple controls in a single grid cell?
Yes. You can use TemplateField
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
See here[^]
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
I have to insert images in Access db using C#.net. what datatype should i use to achieve that?
Thanks in advance
|
|
|
|