Autocad 2025 - UPDATE - TABLE CELL VALUE

Autocad 2025 - UPDATE - TABLE CELL VALUE

grobnik
Collaborator Collaborator
373 Views
1 Reply
Message 1 of 2

Autocad 2025 - UPDATE - TABLE CELL VALUE

grobnik
Collaborator
Collaborator

Hi to everybody,

I have a question about Autocad  VBA and Table writing value inside a cell. I recently made an update to 2025 version, but probably methods it was already available on previous release.

I never used before the second option below described.

I found on ActiveX on line Help two different methods to write a value into a Table cell's.

1) 

object.SetValue nRow, nCol, nContent, acValue

2)

object.SetCellValueFromText row, col, val, nOption

 Apparently seems both methods has the same effect, but probably it's not true. Seems using the second one instead the first the Mtext formatting can be preserved by Option value setting.

In any case somebody could give me some further help on specific issue ? the best could be some real example.

 

Thank you

 

0 Likes
374 Views
1 Reply
Reply (1)
Message 2 of 2

Ed__Jobe
Mentor
Mentor

Option 1 seems to be used for linked tables. See this NET wrapper function. It's confusing on what the difference is between Content and Value. If you look at the properties palette, only Contents is listed, not Value.

 

@ambrosl Can you shed some light on this? The documentation is not very clear.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes