Hello,
I am writing a routine to compare two selection sets that each contain multiple blocks. There is an if-statement, and it is as follows:
(if (and (= entname entname2) (= inspoint inspoint2))
(progn
(entdel bLock)
(entdel bLock2)
)
)
The program will not enter this if-statement. I have verified through the AutoCAD command line that entname does equal entname2, and inspoint does equal inspoint2. The inspoint variable is the insertion point for a block, and is attained through:
(setq inspoint (cdr (assoc 10 (entget bLock))))
The if-statement will work if I remove the inspoint=inspoint2 requirement, but not if I remove the entname = entname2 part and just leave the inspoint part. Is there a problem in autolisp with comparing insertion points like this?
Any help would be very appreciated. Thank you.
I am writing a routine to compare two selection sets that each contain multiple blocks. There is an if-statement, and it is as follows:
(if (and (= entname entname2) (= inspoint inspoint2))
(progn
(entdel bLock)
(entdel bLock2)
)
)
The program will not enter this if-statement. I have verified through the AutoCAD command line that entname does equal entname2, and inspoint does equal inspoint2. The inspoint variable is the insertion point for a block, and is attained through:
(setq inspoint (cdr (assoc 10 (entget bLock))))
The if-statement will work if I remove the inspoint=inspoint2 requirement, but not if I remove the entname = entname2 part and just leave the inspoint part. Is there a problem in autolisp with comparing insertion points like this?
Any help would be very appreciated. Thank you.