Jump to content

Select Mtext object without selectionset


Recommended Posts

Posted

Hi,

I have some lines and Mtext objects in my drawing. Mtext objects inserted at midpoint of lines. I can select lines with macro. Is it possible to select Mtext object automatically that exist in modelspace according to midpoint of line with macro?

Posted

Sure; just create a selection set without prompting user, or iterate a selection set of all MText (on that layer?), checking for coincident insertion point.

 

Either way, you may benefit from reading up on the myriad ways of creating selection sets, filters, etc.

 

Cheers

Posted

Thanks a lot

He had never used acSelectionAll before instead of SelectOnScreen

I learned something new.

I'm grateful

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...