Not applicable
โ08-02-2018
08:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I would be very grateful if someone could take the time to try to help me.
I'm still a beginner in LISP...
I would be very grateful if someone could take the time to try to help me.
I'm still a beginner in LISP...
I need to extract lots of Xdata from selectionsets and add them to leaders.
Example:
Example:
Selectionset ss1 ( for instance 3 polylines)
I need to extract the Xdata assigned to AAA1/AAA2/AAA3 and want to add these to a string.
The string of each polyline should be added to a new line of a leader, like such:
I need to extract the Xdata assigned to AAA1/AAA2/AAA3 and want to add these to a string.
The string of each polyline should be added to a new line of a leader, like such:
This is what I have so far:
(setq ss1 (ssget '((0 . "LWPOLYLINE") (8 . "LAY1,LAY2,LAY3") (-3 ("AAA"))))) ;;selection set (if (= "AAA1" (cdr (car e2)));;retrieve first Xdata (progn (if (or (wcmatch (cdr (cadr e2)) "8..")(wcmatch (cdr (cadr e2)) "8#.")) (setq T1 "_NO_AAA1") (setq T1 (cdr (cadr e2))) ) ) ) (if (= "AAA2" (cdr (car e2)));;retrieve second Xdata (progn (if (= (cdr (cadr e2)) "???") (setq T2 "_NO_AAA2") (setq T2 (cdr (cadr e2))) );new ) ) (if (= "AAA3" (cdr (car e2)));;retrieve third Xdata (progn (if (= (cdr (cadr e2)) "?") (setq T3 "_NO_AAA3") (setq T3 (cdr (cadr e2))) ) ) ) (setq R1 (strcat T1 T2 T3));;make the string for the first polyline (command "leader" pause pause "" "" "" R1 "");;make the leader
I probably need something to go from the SSget to the e2, but i'm drawing blanks...
Also I think I need to repeat this command for each polyline, but I haven't been able to figure out what is the correct way of handling this.
Any help is much appreciated!
Also I think I need to repeat this command for each polyline, but I haven't been able to figure out what is the correct way of handling this.
Any help is much appreciated!
Thanks in advance to those who reply ๐
Solved! Go to Solution.
Link copied