Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

MText Contents Problem

neam
Collaborator

MText Contents Problem

neam
Collaborator
Collaborator

Hi everyone

I wrote a code with the help of subroutines to get information from the curves.
when I select som of object, the code works correctly.
but when I select all objects, mtext is created, but its content is empty.
when I move the objects to 0,0,0 it works.
What is the cause of this problem?
Thank you for guiding me.

0 Likes
Reply
Accepted solutions (1)
683 Views
7 Replies
Replies (7)

hosneyalaa
Advisor
Advisor

@neam 

Is thatthe problem

 

road_mark.JPG

0 Likes

neam
Collaborator
Collaborator

Hi hosneyalaa:

thank you for attention.

problem is in creating mtext, not in the table.

0 Likes

hosneyalaa
Advisor
Advisor

It works fine for me
Do Have a picture of where the problem is , So I focus on it

0 Likes

Sea-Haven
Mentor
Mentor

This is part 2 of the prior request trying to find post1. 

 

Its not a good idea to start new posts rather keep asking at original post if you have problems.

 

Found Solved: Create table from list - Autodesk Community - AutoCAD

neam
Collaborator
Collaborator

You are absolutely right.
The previous post was related to lists and tables, which was resolved.
This post is a problem in Contents of mtext.
I thought I should bring it up in a new post.
Please accept my apologies again.

0 Likes

neam
Collaborator
Collaborator

In the attachment file in the current Zoom, Lisp did not write mtext.
When you get zoom extend, Lisp works correctly at 0,0.

0 Likes

ВeekeeCZ
Consultant
Consultant
Accepted solution

The issue is that the content is simply too long.

If the length exceeds 250 chars, it splits the definition into multiple 3 codes by 250 chunks. 

 

Rather use the command method to create MTEXT that long. 

 

Read about code 3 here

https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-5E5DB93B-F8D3-4433-ADF7-E92E250D2BAB