.NET

Reply
New Member
Posts: 2
Registered: ‎07-01-2012
Message 1 of 5 (953 Views)
Accepted Solution

How change text width in table cell using autocad .net api C#?

953 Views, 4 Replies
07-01-2012 02:47 PM

I create Table using Autocad .net api C#.


var table = new Table();

In single text(class DBText), change text width of the property - WidthFactor.

How change text width in table cell using autocad .net api C#?

1010.jpg


Valued Mentor
Posts: 376
Registered: ‎04-11-2010
Message 2 of 5 (949 Views)

Re: How change text width in table cell using autocad .net api C#?

07-01-2012 03:16 PM in reply to: 1854656984

Hi,

 

Table.Cells(i,j).TextStyleId=Id_Of_The_TextStyle_With_Needed_WidthFactor should work.

 

Gaston Nunez

*Expert Elite*
chiefbraincloud
Posts: 750
Registered: ‎02-13-2008
Message 3 of 5 (932 Views)

Re: How change text width in table cell using autocad .net api C#?

07-02-2012 10:14 AM in reply to: gasty1001

Use Formatting in the contents like Mtext.

 

"{\W0.5;Text Width = 0.5}"

Dave O.                                                                  Sig-Logos32.png
New Member
Posts: 2
Registered: ‎07-01-2012
Message 4 of 5 (912 Views)

Re: How change text width in table cell using autocad .net api C#?

07-03-2012 06:46 AM in reply to: 1854656984

Thanks!!! it works perfectly!!!!

Valued Mentor
KerryBrown
Posts: 259
Registered: ‎11-29-2008
Message 5 of 5 (899 Views)

Re: How change text width in table cell using autocad .net api C#?

07-03-2012 05:19 PM in reply to: 1854656984

1854656984 wrote:

Thanks!!! it works perfectly!!!!


 

 

Since you answered your own post ... which solution worked for you ??

 

 

//-------------------------------------------------------

class keyThumper<T> : Lazy<T>;      another  Swamper

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community