Jump to content

Recommended Posts

Posted

hey guys i have a question, still learning here... but

 

my friend sent me this example but has been really busy and we havent had time to talk more. Im not sure how to do it and i could really use it today if i could figure it out, any help would be much appreciated!!

 

[font=Arial][font=Arial][font=Arial](setq ABC212 (LIST '(AA 1 2 3 4)[/font]
[font=Arial]                            '(AB 2 3 4 5)[/font]
[font=Arial]                            '(AC 3 4 5 6)[/font]
[font=Arial]                    );end list[/font]
[font=Arial]);end setq[/font]
[/font][/font]

Posted

i want to have a list of parametric shapes that i can draw, then extrude them along a line, im going to use these list to get points then create a pline along the points, then extrude it. So im trying to figure out how to drill into a sub list and load the correct one then plot the points from that sublist, then run the routine

Posted

i want to draw a pline from point to point then close it, then extrude it (by entering a distance)

Posted

so i guess enter the defun, then specify the list, like AA then tell it how far to extrude from the basepoint i pick

Posted

So the list you provided in your first post is the list of vertices for the polyline?

 

I would suggest looking into the assoc function.

Posted
So the list you provided in your first post is the list of vertices for the polyline?

 

I would suggest looking into the assoc function.

Don't forget cdr.

 

Command: (assoc "B" (list '("A" 1 2 3) '("B" 4 5 6) '("C" 7 8 9)))
("B" 4 5 6)
Command: (cdr (assoc "B" (list '("A" 1 2 3) '("B" 4 5 6) '("C" 7 8 9))))
(4 5 6)

Posted

let me try that, i just started getting into lisp then i got busy with work now im trying to remember everything

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...