Search found 18 matches

by Rigor69
14 Jan 2010, 21:37
Forum: CAD .NET
Topic: Text Justification
Replies: 20
Views: 76872

Re: Text Justification

Thanks, It worked!
by Rigor69
04 Dec 2009, 20:13
Forum: CAD .NET
Topic: Text Justification
Replies: 20
Views: 76872

Re: Text Justification

OK, maybe I am not the expert, but I fail see how. The Draw function must have a defined signature. See my pseudocode below(this was possible in your prior versions): PrintToDXF() { yourClassNameThatIDoNotRememberTheNameOf mf1; Draw(ref mf1.Graphics); } PrintToScreen() { Graphics g = e.Graphics; Dra...
by Rigor69
30 Nov 2009, 18:27
Forum: CAD .NET
Topic: Text Justification
Replies: 20
Views: 76872

Re: Text Justification

Well, no, because I would like to let the Draw method to stay ignorant of exactly which Graphics object that it was drawing itself to. In this way, I can use the same Draw method for both screen representation and "DXFPrint". This was possible in the older versions.

Best Regards,
by Rigor69
30 Nov 2009, 12:46
Forum: CAD .NET
Topic: Text Justification
Replies: 20
Views: 76872

Re: Text Justification

Well, Each Object x, y, .. have their own Draw method. When the graphics object is passed to the Draw method, the object draws to the Graphics object.
I am not sure what you mean by "changes"

Best Regards,
by Rigor69
30 Nov 2009, 12:14
Forum: CAD .NET
Topic: Text Justification
Replies: 20
Views: 76872

Re: Text Justification

Well Yes, My draw method draws directly to the "Graphics" object.

Best Regards,
by Rigor69
16 Nov 2009, 13:14
Forum: CAD .NET
Topic: Text Justification
Replies: 20
Views: 76872

Re: Text Justification

OK, Than I will have to look elsewhere. For the sake of clarity i would anyhow like to explain the reasoning behind my request. You have a function in your lib that makes it possible to print a "Form" to DXF. I think this is very useful! Consider if there is an existing application that does advance...
by Rigor69
15 Nov 2009, 20:19
Forum: CAD .NET
Topic: Text Justification
Replies: 20
Views: 76872

Re: Text Justification

Dear Support.

I'd like to know if you are considering to change the code to comply with my last post, or if not. If you are not, I will have to look for another solution.
Best Regards
by Rigor69
15 Nov 2009, 20:15
Forum: CAD .NET
Topic: Demo appplication do not show any texts?
Replies: 10
Views: 37982

Re: Demo appplication do not show any texts?

Hello Support.

Your new build fixed the problem of disappearing text in autocad, but it causes other problems instead. Please see my other thread "text justification". I have explained it there.
Best Regards,
by Rigor69
02 Nov 2009, 20:21
Forum: CAD .NET
Topic: Text Justification
Replies: 20
Views: 76872

Re: Text Justification

Thanks for the new version. It looks promising, as the texts now show when dxf is opened with autocad. However something has changed in this build so that I cannot any longer pass the Graphics object of the MetaForm to my Draw() function. MetaForm mf1 = new MetaForm(); Draw(ref mf1.Graphics); Gives ...
by Rigor69
29 Oct 2009, 10:02
Forum: CAD .NET
Topic: Text Justification
Replies: 20
Views: 76872

Re: Text Justification

Sorry, still i cant make it work. If i use the syntax from above, the text appears justified to center on the form , but appears justified Left on the DXF. If i use the Drawstring argument with Rectangle, the text within the rectangle appears Left justified withing the rectangle. Do you support text...
by Rigor69
24 Oct 2009, 13:56
Forum: CAD .NET
Topic: Text Justification
Replies: 20
Views: 76872

Re: Text Justification

OK, This is it:

Code: Select all

String Name = "name";
StringFormat Nameformat = new StringFormat();
Nameformat.Alignment = StringAlignment.Center;
graphicsObj.DrawString(Name, font, Brushes.SandyBrown, Pos.X , Pos.Y,Nameformat);
String comes out left-aligned.

Best regards,
by Rigor69
20 Oct 2009, 20:58
Forum: CAD .NET
Topic: Demo appplication do not show any texts?
Replies: 10
Views: 37982

Re: Demo appplication do not show any texts?

Lines and Arcs.. I'ts in your demo app DXFExport too.

Best Regard,
by Rigor69
15 Oct 2009, 21:07
Forum: CAD .NET
Topic: Text Justification
Replies: 20
Views: 76872

Text Justification

The StringFormat argument of stringformat does not seem to work.
Text justified to center on the screen appears justified Left on DXF.

Is there any way around this?

Best Regards,
by Rigor69
13 Oct 2009, 21:59
Forum: CAD .NET
Topic: Demo appplication do not show any texts?
Replies: 10
Views: 37982

Re: Demo appplication do not show any texts?

Hi agan,

If this can help u:
I found out that after adding some graphic object, the first text added does not display.

Awaiting your response.
Best Regards,
Rigor
by Rigor69
13 Oct 2009, 21:37
Forum: CAD .NET
Topic: Demo appplication do not show any texts?
Replies: 10
Views: 37982

Re: Demo appplication do not show any texts?

Dear Support. I have tested further in this subject. In my opinion there is a bug, either in DXFExport or Autocad. when I do this: graphicsObj.DrawString("SETTINGSANDVALUE", font, Brushes.Blue, Pos.X + SizeRight, Pos.Y - 25); graphicsObj.DrawString("SETTINGS", font, Brushes.Red, Pos.X + SizeRight, P...