Author Topic: AutoLISP vla-getboundingbox equivalent in C#  (Read 3302 times)

0 Members and 1 Guest are viewing this topic.

dugk

  • Guest
AutoLISP vla-getboundingbox equivalent in C#
« on: January 21, 2010, 03:16:58 PM »
Is there an equivalent to the AutoLISP vla-getboundingbox in C#?

the Help file definition for vla-getboundingbox:
Gets two points of a box enclosing the specified object.

thanks!

sinc

  • Guest
Re: AutoLISP vla-getboundingbox equivalent in C#
« Reply #1 on: January 21, 2010, 03:29:22 PM »
Entity.GeometricExtents

dugk

  • Guest
Re: AutoLISP vla-getboundingbox equivalent in C#
« Reply #2 on: January 21, 2010, 03:33:01 PM »
Thanks!

I figured it would be a Method and didn't look in the Entity.Properties.

Thanks again!

sinc

  • Guest
Re: AutoLISP vla-getboundingbox equivalent in C#
« Reply #3 on: January 21, 2010, 04:00:35 PM »
Yeah, it takes a while to learn the API.  That's probably the most time-consuming part, at least if you've done programming in the past.

Are you using an IDE that supports Intellisense for your development?  The Intellisense can be a pretty handy way of finding things.

It can also be helpful sometimes to poke around using the Object Browser (in View -> Other Windows in Visual Studio C# Express Edition).

dugk

  • Guest
Re: AutoLISP vla-getboundingbox equivalent in C#
« Reply #4 on: January 21, 2010, 04:36:35 PM »
Yes, I'm using Visual Studio 2008.  I've used Emacs and VisualLisp IDE in the past.  VS is great IMO.

Your comment/question regarding Intellisense makes me wonder if I have VS setup to take complete advantage of Intellisense.  When I type in an class object I get the dropdown list of its properties, events and methods.  I don't get a summary either holding the cursor over an AutoCAD class object or in the Object Browser.  Is it possible to get a summary in the IDE of AutoCAD class objects?

Thanks!

sinc

  • Guest
Re: AutoLISP vla-getboundingbox equivalent in C#
« Reply #5 on: January 21, 2010, 05:42:33 PM »
Oh, no, I don't think so.

Autodesk would have had to have created their source code properly for the comments to show up there.  I think they actually did in some cases, but for most things, all you get is the name of the object/field/property/method/event.  Then you need to look in the Help for more info on things that catch your interest.  And then hope that the Help actually has more information - in many cases, it doesn't.  When that happens, web searches sometimes turn up useful information.  Or you might need to ask a question in a forum like this, or over on Kean's blog, or submit a help ticket to the ADN, or something like that.

Did you download and install the ObjectARX kit?  There's stuff in there that is useful.  Not only is there documentation, there's also samples, and things like the Drawing Browser.

MickD

  • King Gator
  • Posts: 3636
  • (x-in)->[process]->(y-out) ... simples!
Re: AutoLISP vla-getboundingbox equivalent in C#
« Reply #6 on: January 21, 2010, 06:24:06 PM »
For more info on some classes, if the doc's show what arx class it wraps you can get quite a bit more info for the class in the arx reference docs although some of the parameters etc might seem criptic if you haven't work with c++ much.
"Programming is really just the mundane aspect of expressing a solution to a problem."
- John Carmack

"Short cuts make long delays,' argued Pippin.”
- J.R.R. Tolkien