Jump to content

How can I get the text inside amnote in VBA


freshcad

Recommended Posts

How can I get the text inside amnote in VBA

 

you must first set the MTEXT object (perhaps via a SelectionSet object method, or prompting the user to select it) and then simply use its "TextString" property

Link to comment
Share on other sites

The type of amdtnote is IMcadSymbol, but it has no "TextString" property.

 

Sorry, I thought you were after an AutoCAD MText object

I get it IMcadSymbol has to do with AutoCAD Mechanical object model, which I don't use.

may be this https://forums.autodesk.com/t5/visual-basic-customization/add-text-to-any-text-object/td-p/334342 or this http://forums.augi.com/showthread.php?85779-Detach-an-object-from-a-geometry-(acad-Mech)) threads, albeit with no solution, could help you in digging into the object model of your interest.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...