Author Topic: Use "entmake" replace "command"  (Read 1761 times)

0 Members and 1 Guest are viewing this topic.

andy_lee

  • Newt
  • Posts: 147
Use "entmake" replace "command"
« on: December 09, 2016, 11:01:06 AM »
Dear all

How use "entmake" replace "command" ?
Code: [Select]
(command "_.pline" p1 "a" "d" (- an 45) pt p2 "d" (+ an 225) pt "d" (- an 45) px "d" (- an 225) pt "")
Thanks very much!
andy.
Best regards.

CincyJeff

  • Newt
  • Posts: 89
Re: Use "entmake" replace "command"
« Reply #1 on: December 09, 2016, 11:53:39 AM »
The easiest way I've found to get the dxf list for most entmake calls is to draw the entity, a polyline in this case, and use (entget (car (entsel))) on the polyline. It returns the list needed. Look for the code 10 points that represent the vertices and replace them with the program specific ones.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Use "entmake" replace "command"
« Reply #2 on: December 09, 2016, 12:10:18 PM »
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Grrr1337

  • Swamp Rat
  • Posts: 812
Re: Use "entmake" replace "command"
« Reply #3 on: December 09, 2016, 04:03:50 PM »
(apply ''((a b c)(a b c))
  '(
    (( f L ) (apply 'strcat (f L)))
    (( L ) (if L (cons (chr (car L)) (f (cdr L)))))
    (72 101 108 108 111 32 87 111 114 108 100)
  )
)
vevo.bg

andy_lee

  • Newt
  • Posts: 147
Re: Use "entmake" replace "command"
« Reply #4 on: December 11, 2016, 12:38:06 PM »
andy.
Best regards.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Use "entmake" replace "command"
« Reply #5 on: December 11, 2016, 01:18:56 PM »
Thanks, hope you both can make use of it.  8)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.