Please HELP:Retrieving dimensions of a rectangular REGION
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Please HELP:Retrieving dimensions of a rectangular REGION

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
Bradip Pitt
Guest





Posted: Tue Jul 05, 2005 12:10 pm    Post subject: Please HELP:Retrieving dimensions of a rectangular REGION Reply with 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
Fatfreek
Guest





Posted: Wed Jul 27, 2005 5:58 am    Post subject: Re: Please HELP:Retrieving dimensions of a rectangular REGIO Reply with quote

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 Reply with quote

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
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB