PDA

View Full Version : Help in command for pyramid


aml
2007-10-12, 04:27 PM
Hi,

I'm trying to build a pyramid via AutoLisp. So far, I managed to use the something like the following:

(command "_.pyramid" '(0 0) "3<0" 4)

AutoCad will consider the above radius 3 as Inscribed or Circunscribed according to what was used in the last constructed pyramid.

Now, let's suppose that I want to treat 3 as an Inscribed radius but, obviously, I don't know what was used in the last constructed pyramid (it might have been constructed by the user!). The problem is that AutoCad only asks for the other option, that is, if the last pyramid constructed used an Inscribed radius, in the next one it presents the Circunscribed option, otherwise it presents the Inscribed option. This means that I can't predictably understand what AutoCad is asking so I can't provide the proper command arguments.

Is there a solution? Is there a variable that determines whether the radius is inscribed or circunscribed?

Thanks in advance,

António Leitão.