Author Topic: as used command & command-s  (Read 12628 times)

0 Members and 1 Guest are viewing this topic.

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: as used command & command-s
« Reply #15 on: November 05, 2014, 12:14:33 PM »
I have no idea what the difference between "circle " "_circle" and "._circle"

See here & here.

velasquez

  • Newt
  • Posts: 195
Re: as used command & command-s
« Reply #16 on: November 05, 2014, 12:44:23 PM »
I do not understand the problem with command and command-s
I copied the lines below the help of AutoCAD 2015.

"(command-s "._circle" (getpoint "\nSpecify center point: ") "_d" 2.75)"
Turns out the lines of code work fine in AutoCAD 2015 and 2012.
1
Code: [Select]
(command-s "._circle" (getpoint "\nSpecify center point: ") "_d" 2.75)2
Code: [Select]
(command "._circle" (getpoint "\nSpecify center point: ") "_d" 2.75)
Can someone explain me better how to reproduce the error that is as reported.
I better understand all the comments about it.
Thanks

Sorry I forgot to post the text of the AutoCAD 2015 help file.
"The following is an invalid use of prompting for user input with the command-s function.
(command-s "._circle" (getpoint "\nSpecify center point: ") "_d" 2.75)"


RC

  • Guest
Re: as used command & command-s
« Reply #17 on: November 05, 2014, 04:36:24 PM »
I'd personally take the time to go through the code and fix it though.
If it ain't broke, why 'fix' it?
I 'know' AutoCAD, I don't 'know' autolisp (or any of its variants) or C++ or V<whatever>. 
I write what I know in order to make my cad production faster, not to go back and re-write cr4p with every new release.  I see nothing at all 'broken' about using command calls .. until someone mucks with the program to make such legacy calls an issue.