Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...