Jump to content

double selection of pline


mousho

Recommended Posts

hi everyone

im attaching part of code that im using (some lines wrote by lee-mac)

the problem in the code is that i need to choose the same pline twice (setq ent / setq se2)

i try everything with no success

hope that someone can help me :)

 

(setq ent (car (func (strcat "\nSelect object with " prop " property: "))))

(setq se2 (ssget ":S" '((0 . "LINE,SPLINE,LWPOLYLINE,POLYLINE,ARC,CIRCLE,ELLIPSE"))))

 

new 1.lsp

Edited by mousho
Link to comment
Share on other sites

hi everyone

im attaching part of code that im using (some lines wrote by lee-mac)

the problem in the code is that i need to choose the same pline twice (setq ent / setq se2)

i try everything with no success

hope that someone can help me :)

 

(setq ent (car (func (strcat "\nSelect object with " prop " property: "))))

(setq se2 (ssget ":S" '((0 . "LINE,SPLINE,LWPOLYLINE,POLYLINE,ARC,CIRCLE,ELLIPSE"))))

 

 

Have you tried

 

 

(setq se2 (ssget ":S" '((0 . "LINE,SPLINE,LWPOLYLINE,POLYLINE,ARC,CIRCLE,ELLIPSE"))))
(setq ent (ssname se2 0))

Link to comment
Share on other sites

Work perfect

thx for your help :)

i dont understand the line but each day u learn new thing

 

have you tried

 

 

(setq se2 (ssget ":s" '((0 . "line,spline,lwpolyline,polyline,arc,circle,ellipse"))))
(setq ent (ssname se2 0))

Link to comment
Share on other sites

Work perfect

thx for your help :)

i dont understand the line but each day u learn new thing

 

 

[color=seagreen];The line below is to get a selection set. The ssget ":s" means single selection[/color]
[color=seagreen] attempt only and the following list is a list of allowed entity types[/color]

(setq se2 (ssget ":s" '((0 . "line,spline,lwpolyline,polyline,arc,circle,ellipse"))))
[color=seagreen]
[/color]
[color=seagreen];The line below accesses the first entity in the selection set assigned to variable se2
[/color]
(setq ent (ssname se2 0))

Link to comment
Share on other sites

Re read post you want to select via variable "PROP"

 

 

(setq prop "lwpolyline")
(princ (strcat "\nSelect object with " prop " property: "))
(setq ss (ssget ":s" (list (cons 0 prop))))

Link to comment
Share on other sites

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