Author Topic: Help with code-slope of polyline  (Read 5616 times)

0 Members and 1 Guest are viewing this topic.

Stefan

  • Bull Frog
  • Posts: 319
  • The most I miss IRL is the Undo button
Re: Help with code-slope of polyline
« Reply #15 on: February 29, 2016, 10:31:51 AM »
Wor

Hi Stefan it reads this: 

error: malformed list on input

(I use autocad 2013)

Works here. Are you sure you select the entire code? Check if there is a ")" after (princ).

nekonihonjin

  • Newt
  • Posts: 103
Re: Help with code-slope of polyline
« Reply #16 on: February 29, 2016, 10:48:55 AM »
Wor

Hi Stefan it reads this: 

error: malformed list on input

(I use autocad 2013)

Works here. Are you sure you select the entire code? Check if there is a ")" after (princ).


You're right, my bad  :?

it's working perfectly, thank you.  :-)

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Help with code-slope of polyline
« Reply #17 on: March 01, 2016, 03:04:08 AM »
@ Stefan:
You are using:
Code: [Select]
(ssget ":E:S" ...)I find that the selection set can contain more than 1 item with this code. For example if entities are superimposed.

:E Everything within the cursor's object selection pickbox.

Stefan

  • Bull Frog
  • Posts: 319
  • The most I miss IRL is the Undo button
Re: Help with code-slope of polyline
« Reply #18 on: March 01, 2016, 03:55:18 AM »
@ Stefan:
You are using:
Code: [Select]
(ssget ":E:S" ...)I find that the selection set can contain more than 1 item with this code. For example if entities are superimposed.

:E Everything within the cursor's object selection pickbox.
Oh, no!! My whole life is a lie!! Seriously, I was convinced just one object is selected. Never tried to get another object other than (ssname ss 0) from a ":E:S" selection.
Well, trying your suggestion, "_+.:S", seems to solve the problem... But, as you do with every native command, when you want to select just a single object you make sure the selected object is the one you want by zooming the area.
Beside, if 2 objects are overlapping, your suggestion it does not guarantee that the selected object is the one you want.
Thanks for the heads up.