Message 1 of 3
Not applicable
04-10-2017
12:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I was coding a function and have a few question.
1. I'm doing a loop through the surfaces to do some actions. How can I filter out volume surfaces?
(while (< ctr surfctr) (setq surf (vlax-get-property surfcoll 'Item ctr) surfname (vlax-get surf 'Name)) (setq p3 p1xy) (while (< (distance p1xy p3) (distance p1xy p2xy)) ;etc
2. How do I find the 0-point of the Sample Line? (The point where the Alignment crosses the Sample Line)
(setq vtxs (vlax-get sampleline 'Vertices)) (setq p1 (vlax-invoke vtxs 'Item 0) p2 (vlax-invoke vtxs 'Item 1) p1xy (list (car (vlax-get p1 'Location)) (cadr (vlax-get p1 'Location))) p2xy (list (car (vlax-get p2 'Location)) (cadr (vlax-get p2 'Location))) )
Thanks in advance!
Solved! Go to Solution.