Jump to content

Help with Selection Set (ssget) Filters (Associative code 3) for MTEXT


Recommended Posts

Posted

I am attempting to add text entities with a text string that includes the word "LATITUDE" to a selection set.

 

I'd greatly appreciate any clarification on why the following code:

(ssget '((3 . "*LATITUDE*")))

 

does not add an entity with the following entity data to a selection set:

((-1 . <Entity name: 400a8bb0>) (0 . "MTEXT") (330 . <Entity 
name: 400b4c38>) (5 . "11436") (100 . "AcDbEntity") (67 . 1) (410 . "C-1") (8 . 
"0") (100 . "AcDbMText") (10 30.4417 22.6489 0.0) (40 . 0.12) (41 . 5.0) (71 . 
1) (72 . 5) (3 . "{\\C4;COORDINATES:\\P\\P\\H0.8333x;\\L\\C7;PROPOSED 
ELECTRICAL EQUIPMENT LOCATION\\P\\lLATITUDE    XX%%DXX'XX.XX\" N\\PLONGITUDE  
XXX%%DXX'XX.XX\" W\\P\\PNAD 1983 GEODETIC COORDINATES AND ELEVATIONS WERE 
ESTABLISHED USING SURVEY GRADE \"ASHTECH\" G.P.S. RECEIVERS A") (1 . "ND 
ASHTECH SURVEY GRADE PRECISION SOFTWARE FOR POST-PROCESSING.}") (7 . 
"ROMANS_TITLE") (210 0.0 0.0 1.0) (11 1.0 0.0 0.0) (42 . 4.87123) (43 . 1.7971) 
(50 . 0.0) (73 . 1) (44 . 1.0))

 

Thanks!

:)

Posted
I am attempting to add text entities with a text string that includes the word "LATITUDE" to a selection set.

 

I'd greatly appreciate any clarification on why the following code:

(ssget '((3 . "*LATITUDE*")))

does not add an entity with the following entity data to a selection set:

((-1 . <Entity name: 400a8bb0>) (0 . "MTEXT") (330 . <Entity 
name: 400b4c38>) (5 . "11436") (100 . "AcDbEntity") (67 . 1) (410 . "C-1") (8 . 
"0") (100 . "AcDbMText") (10 30.4417 22.6489 0.0) (40 . 0.12) (41 . 5.0) (71 . 
1) (72 . 5) (3 . "{\\C4;COORDINATES:\\P\\P\\H0.8333x;\\L\\C7;PROPOSED 
ELECTRICAL EQUIPMENT LOCATION\\P\\lLATITUDE    XX%%DXX'XX.XX\" N\\PLONGITUDE  
XXX%%DXX'XX.XX\" W\\P\\PNAD 1983 GEODETIC COORDINATES AND ELEVATIONS WERE 
ESTABLISHED USING SURVEY GRADE \"ASHTECH\" G.P.S. RECEIVERS A") (1 . "ND 
ASHTECH SURVEY GRADE PRECISION SOFTWARE FOR POST-PROCESSING.}") (7 . 
"ROMANS_TITLE") (210 0.0 0.0 1.0) (11 1.0 0.0 0.0) (42 . 4.87123) (43 . 1.7971) 
(50 . 0.0) (73 . 1) (44 . 1.0))

Thanks!

:)

 

 

Its most likely because there can be multiple occurrences of DXF group code 3 in an mtext entity. I agree though..this should probably be added to Autodesk's ssget filter-list help as an unrecognized group code.

Posted

Use (ssget '((0 . "mtext"))) then wcmatch to look for "latitude" within the items selected there was a similar post here quite a while ago about changing coloour of mtext by a string match. Search BIGAL & LEE-MAC.

Posted

Thanks for the replies!

It appears a new path must be found.

 

Cheers!

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