BHAInc Posted March 8, 2016 Posted March 8, 2016 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! Quote
jvillarreal Posted March 8, 2016 Posted March 8, 2016 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. Quote
BIGAL Posted March 9, 2016 Posted March 9, 2016 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. Quote
BHAInc Posted March 9, 2016 Author Posted March 9, 2016 Thanks for the replies! It appears a new path must be found. Cheers! Quote
Recommended Posts
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.