| Author |
Message |
Bradip Pitt
Guest
|
Posted:
Tue Jul 05, 2005 12:10 pm Post subject:
Please HELP:Retrieving dimensions of a rectangular REGION |
|
|
Hi everybody, let's see if someone can help in solving this problem:
I got a "REGION" entity obtained from a polyhedral 3D solid with the
"solidedit - face - copy" command . The REGION is rectangular.
How can I retrieve the size of the rectangular (height and width) from
inside an AutoLISP routine?
This is very useful for my project...so please HELP if you know.
Thanks a lot
Alberto (still working on his final project, but close to the end of the
tunnel!)
|
|
| Back to top |
|
 |
Fatfreek
Guest
|
Posted:
Wed Jul 27, 2005 5:58 am Post subject:
Re: Please HELP:Retrieving dimensions of a rectangular REGIO |
|
|
Try this:
(vla-getboundingbox
(vlax-ename->vla-object (car (entsel)))
'minpt
'maxpt
)
(setq LowLeftPt
(vlax-safearray->list minpt)
)
(setq UpRightPt
(vlax-safearray->list maxpt)
)
Len Miller
"Bradip Pitt" <renton@infinito.it> wrote in message
news:Dytye.2164$b93.789@tornado.fastwebnet.it...
| Quote: | Hi everybody, let's see if someone can help in solving this problem:
I got a "REGION" entity obtained from a polyhedral 3D solid with the
"solidedit - face - copy" command . The REGION is rectangular.
How can I retrieve the size of the rectangular (height and width) from
inside an AutoLISP routine?
This is very useful for my project...so please HELP if you know.
Thanks a lot
Alberto (still working on his final project, but close to the end of the
tunnel!)
|
|
|
| Back to top |
|
 |
Kick
Guest
|
Posted:
Wed Jul 27, 2005 4:10 pm Post subject:
Re: Please HELP:Retrieving dimensions of a rectangular REGIO |
|
|
Otra alternativa es usar las propidades de la región,
en particular perímetro y momento de inercia que son valores
independientes del sistema de coordenadas.
si se trata de un rectángulo, perímetro y momento de inercia se
expresan como función de los lados.
con un poco de álgebra, podrás despejarlos.
Saludos
Hugo
|
|
| Back to top |
|
 |
|
|
|
|