<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Multiply Text in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/multiply-text/m-p/11668806#M10422</link>
    <description>&lt;P&gt;Did you try this manually in autocad?&amp;nbsp; Start the "text" command, use text "line 1", press enter, use text "line 2", etc.&lt;/P&gt;&lt;P&gt;When you check the result, there are separate "text" entities for each line.&amp;nbsp; You cannot create a single text entity that has multiple lines.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2023 12:11:18 GMT</pubDate>
    <dc:creator>fieldguy</dc:creator>
    <dc:date>2023-01-10T12:11:18Z</dc:date>
    <item>
      <title>Multiply Text</title>
      <link>https://forums.autodesk.com/t5/net-forum/multiply-text/m-p/11668261#M10419</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a two-line text ( DBtext) when I click on a point. (I'm stuck in the code I indicated in red...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the space between the two; As far as font height...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do that ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;acText.SetDatabaseDefaults();&lt;BR /&gt;acText.Position = pointRes.Value;&lt;BR /&gt;acText.Height = YaziYuks;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;acText.TextString = TxtVeri + "\n\n" + Txtveri2;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;acBlkTblRec.AppendEntity(acText);&lt;BR /&gt;tr.AddNewlyCreatedDBObject(acText, true);&lt;BR /&gt;tr.Commit();&lt;BR /&gt;ed.WriteMessage("\n......OK!\n");&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 07:32:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/multiply-text/m-p/11668261#M10419</guid>
      <dc:creator>k005</dc:creator>
      <dc:date>2023-01-10T07:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Text</title>
      <link>https://forums.autodesk.com/t5/net-forum/multiply-text/m-p/11668377#M10420</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DBText -&amp;gt; single line text&lt;/P&gt;
&lt;P&gt;MText&amp;nbsp; -&amp;gt; multiline text&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 08:38:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/multiply-text/m-p/11668377#M10420</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2023-01-10T08:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Text</title>
      <link>https://forums.autodesk.com/t5/net-forum/multiply-text/m-p/11668498#M10421</link>
      <description>&lt;P&gt;I use this as a method. That's the one line one.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now we need a two-line one.&lt;/P&gt;&lt;P&gt;more precisely, I need the multiple one... but how should I design it?&lt;/P&gt;&lt;P&gt;so txtveri is like txtveri2 txtverixx...&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; public void YaziOlustur2(string TxtVeri,string Txtveri2)
        {
            Document doc = Application.DocumentManager.MdiActiveDocument;
            Database db = doc.Database;
            Editor ed = doc.Editor;
            double YaziYuks = db.Textsize * 1.5;
            DBText acText = new DBText();
            using (DocumentLock docLock = doc.LockDocument())
            using (Transaction tr = doc.TransactionManager.StartTransaction())
            {

                BlockTable acBlkTbl;
                acBlkTbl = tr.GetObject(db.BlockTableId,
                                             OpenMode.ForRead) as BlockTable;

                BlockTableRecord acBlkTblRec;
                acBlkTblRec = tr.GetObject(acBlkTbl[BlockTableRecord.ModelSpace],
                                                OpenMode.ForWrite) as BlockTableRecord;

                var pointRes = ed.GetPoint("\nNereye Yazılsın ? &amp;gt;");
                if (pointRes.Status != PromptStatus.OK)
                {
                    ed.WriteMessage("\n\nNokta bulunamadı\n");
                    return;
                }

                acText.SetDatabaseDefaults();
                acText.Position = pointRes.Value;
                acText.Height = YaziYuks;
                acText.TextString = TxtVeri + "\n\n" + Txtveri2;
                acBlkTblRec.AppendEntity(acText);
                tr.AddNewlyCreatedDBObject(acText, true);
                tr.Commit();
                ed.WriteMessage("\n......OK!\n");
            }

        } // birleşik yazar.&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 Jan 2023 09:34:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/multiply-text/m-p/11668498#M10421</guid>
      <dc:creator>k005</dc:creator>
      <dc:date>2023-01-10T09:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Text</title>
      <link>https://forums.autodesk.com/t5/net-forum/multiply-text/m-p/11668806#M10422</link>
      <description>&lt;P&gt;Did you try this manually in autocad?&amp;nbsp; Start the "text" command, use text "line 1", press enter, use text "line 2", etc.&lt;/P&gt;&lt;P&gt;When you check the result, there are separate "text" entities for each line.&amp;nbsp; You cannot create a single text entity that has multiple lines.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 12:11:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/multiply-text/m-p/11668806#M10422</guid>
      <dc:creator>fieldguy</dc:creator>
      <dc:date>2023-01-10T12:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Text</title>
      <link>https://forums.autodesk.com/t5/net-forum/multiply-text/m-p/11668821#M10423</link>
      <description>&lt;P&gt;Yes. I know. There are no two lines in DBtext.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my goal is to give separate variables (which are two in this code. txtveri , txtveri2 ) with a space between them as much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as the default font height, and just click on a point and write it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 12:23:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/multiply-text/m-p/11668821#M10423</guid>
      <dc:creator>k005</dc:creator>
      <dc:date>2023-01-10T12:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply Text</title>
      <link>https://forums.autodesk.com/t5/net-forum/multiply-text/m-p/11668835#M10424</link>
      <description>&lt;P&gt;Right.&amp;nbsp; The user clicks for the insertion of the first text and your program calculates the insertion point of the second, third and so on.&amp;nbsp; The distance is calculated by adding text height and a space factor (1/2 the text height or something similar).&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 12:28:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/multiply-text/m-p/11668835#M10424</guid>
      <dc:creator>fieldguy</dc:creator>
      <dc:date>2023-01-10T12:28:49Z</dc:date>
    </item>
  </channel>
</rss>

