Bad Point Argument with dotted pairs

Bad Point Argument with dotted pairs

tjlongLMQG9
Explorer Explorer
455 Views
4 Replies
Message 1 of 5

Bad Point Argument with dotted pairs

tjlongLMQG9
Explorer
Explorer

I am fairly new to working with autolisp and scripting and I couldn't figure out if there was a reference that would define what the numbers signified in the dotted pair properties in the line I have below. 

 

I am trying to use a lisp that finds the dotted pair of an object so that mtext within a group can be modified without removing the grouping. I have pretty much everything I need working but I am getting a Bad Point Argument with this specific line:

 

(setq CURREV1 (ssget "X" (cons 1 R1VAL) '(0 . "MTEXT") '(410 . "Layout1") '(8 . "BORDER_REV")))
 
Any help is greatly appreciated.
0 Likes
Accepted solutions (2)
456 Views
4 Replies
Replies (4)
Message 2 of 5

ВeekeeCZ
Consultant
Consultant
Accepted solution

I'll just fix your filter syntax... The entire filter must be within 1 list.

 

(setq CURREV1 (ssget "X" (list (cons 1 R1VAL) '(0 . "MTEXT") '(410 . "Layout1") '(8 . "BORDER_REV"))))

Presumably, R1VAL is a string.

0 Likes
Message 3 of 5

Kent1Cooper
Consultant
Consultant
Accepted solution

@tjlongLMQG9 wrote:

.... if there was a reference that would define what the numbers signified in the dotted pair properties ....


See the >DXF Reference's Entities section<, and pick MTEXT from the list, as well as Common Group Codes for Entities at the top.

Kent Cooper, AIA
0 Likes
Message 4 of 5

tjlongLMQG9
Explorer
Explorer

Thank you both, I didn't realize I needed the list in front, and the reference is exactly what I was looking for!

0 Likes
Message 5 of 5

Sea-Haven
Mentor
Mentor

Just a comment when in doubt use (list and (cons for all the ssget filters. Saves the ' quote problems.

0 Likes