ozimad Posted January 20, 2010 Posted January 20, 2010 Hi! I am using autocad civil 3d 2008. I am writing a lisp and want to use pline command in it, and use 'so - tranparent commands. But cannot select them. Writing by hand i can select them. Any ideas whay? the error _.pline Specify start point: '_so Invalid point. ; error: Function cancelled Quote
Lee Mac Posted January 20, 2010 Posted January 20, 2010 Is there no way you can call 'so' directly? Quote
ozimad Posted January 20, 2010 Author Posted January 20, 2010 Thanks it works! Can somebody explain how i can run _.so get the aligment i need and put all the data in. (command "_.so" "something here to ask for aligment" and "data") How does data must look like I have this code now (defun c:papl () (vl-load-com) (setq al (ssget)) ;;select aligment,but i dont realy want this here because it ;;;is possible to select another object not aligment, (command "_.so" al "10" "5" "20" "10") ;;;inputing data this way i get an erro (princ) ) Command: papl Select objects: 1 found Select objects: _.so Select alignment: Specify station: 10 Specify station offset: 5 Command: 20 Unknown command "20". Press F1 for help. Command: 10 Unknown command "10". Press F1 for help. Quote
ozimad Posted January 21, 2010 Author Posted January 21, 2010 Hey, I decided to change the concept of my lisp. Now I know how i can get without intersection points. I will use aligment and tranparent commands. I want to bulid a road with the additional slowing line. I allways have an aligment so i want to use it, the concept is i do not need to do the geometry intersection points finding, just simple maths. I use pline=>'so command to find the point coordinate, My code now looks like that. (defun c:papl () (vl-load-com) (setq al (ssget)) (command "_.so" al "10" "0") (princ) ) in console it gives me Command: PAPL Select objects: 1 found Select objects: _.so Select alignment: Specify station: 10 Specify station offset: 0 Command: Command: (21.9795 19.8182 0.0) ;;;i need to get that point and use it in building polyline Can somebody help me with getting the point, thanks! 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.