.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Where am I ?

12 REPLIES 12
Reply
Message 1 of 13
Begrim
431 Views, 12 Replies

Where am I ?

Dim DrOpt As PromptPointOptions = New PromptPointOptions("" & Microsoft.VisualBasic.Chr(10) & "Where am I? ")
Dim Dres As PromptPointResult = Ed.GetPoint(DrOpt)

Is any method of how the program decide where the user picked the point?

Left,right,above or below of the Polyline?
If it is closed, in or out? Thanks.
12 REPLIES 12
Message 2 of 13
Begrim
in reply to: Begrim

Any hint?
Message 3 of 13
Anonymous
in reply to: Begrim

I think you can get the quadrant only
where you picked a point
maybe I am wrong though

~'J'~
Message 4 of 13
Anonymous
in reply to: Begrim

GetPoint() returns a point selected by the user.

Where the point is in relation to some other
object(s) is not something you should expect
it to do. It can't tell you something like that.

You would need to determine it yourself
using your own calculations. You may be
able to use the classes in the Geometry
namespace to make that easier.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5505062@discussion.autodesk.com...
Any hint?
Message 5 of 13
Begrim
in reply to: Begrim

It certainly has any solution.
Unless it has, how could the users offset a polyline?
Thanks, anyway.
Message 6 of 13
Anonymous
in reply to: Begrim

Don't make the mistake of assuming that
all functionality AutoCAD has, is exposed
via its APIs.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5505250@discussion.autodesk.com...
It certainly has any solution.
Unless it has, how could the users offset a polyline?
Thanks, anyway.
Message 7 of 13
Begrim
in reply to: Begrim

I saw VLISP offsets pline completely.
Why VB.net can't do what lisp can?
I believe vb.net is superior language to lisp or vba.
Message 8 of 13
Anonymous
in reply to: Begrim

VLISP can't offset plines.

The ActiveX API can, and the OFFSET command
can do that.

Both of those methods can be used from VB.NET
as well, just as they can from VLISP.

But at this point based on what you say, I don't
think the problem is that you think the language
is missing something, but rather that you are
missing way too much about the language.

It seems like all you need to do, is to learn more
about the APIs and how to use them from VB.NET,
that's all.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5505480@discussion.autodesk.com...
I saw VLISP offsets pline completely.
Why VB.net can't do what lisp can?
I believe vb.net is superior language to lisp or vba.
Message 9 of 13
Begrim
in reply to: Begrim

I believe what the important is not the conclusion but the course of conversation.
Thanks for sharing your time.
Message 10 of 13
Anonymous
in reply to: Begrim

The nice thing is, the more you see about the .net API, the more it solves. You get a lot more than just managed C++
access to the database, you get nice access to the whole environment plus stuff VB needed win API calls for before.
It does command definitions, modeless dialogs, and other things that took hybrid approaches with other languages.
I'd be curious to hear what Tony likes most about .net development for acad. Not picking a fight here, I'm interested
in what experienced people like the most, since a C++ person could do it all along.

I sure wish there was a way to make the debug process with acad easier though.
I guess VSTA should help with that since acad is already running, no need to start new session with every debug.

Begrim <>
|>I believe what the important is not the conclusion but the course of conversation.
|>Thanks for sharing your time.
James Maeding
Civil Engineer and Programmer
jmaeding - at - hunsaker - dotcom
Message 11 of 13
ChrisArps
in reply to: Begrim

VS2005 has edit and continue (for vb,c#) that works great.
Message 12 of 13
Anonymous
in reply to: Begrim

true, and you can add and remove break points during run, but getting variables reset toi what they should be, to
continue is not always possible.

CArps <>
|>VS2005 has edit and continue (for vb,c#) that works great.
James Maeding
Civil Engineer and Programmer
jmaeding - at - hunsaker - dotcom
Message 13 of 13
Anonymous
in reply to: Begrim

The .NET API for AutoCAD is far more powerful
than LISP or VBA/ActiveX. However that power
has a price, namely that it is far more difficult to
learn and use. It has a much steeper learning
curve, and is also far more volatile (its relatively
easy to crash AutoCAD with it) than LISP or VBA.

The more important thing is to understand that
what you are talking about when you say '.NET'
and developing with it, are several things, that
are all regarded as prerequisites to each other:

- Basic concepts of sofware engineering that
are not language specific (e.g., what is an
interface; What is an iterator; how to handle
exceptions; garbage collection; and so on).

- The development tools (C#, VB.NET, C++)
and IDEs - skills and experience with one
or more programming languages.

- The .NET framework, an extensive API for
general purpose development that addresses
a very broad range of needs, and which requires
years of experience in order for one to become
reasonably familiar with, and able to use.

- The AutoCAD .NET managed wrapper API
for ObjectARX.

Equally as important is the order they appear in.
They are listed in order of skills dependence, and
each one is a prerequisite to the preceeding ones,
and is the order in which one must learn them.

IOW, trying to do it backwards is just not going
to work 😉


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

"James Maeding" wrote in message news:5506824@discussion.autodesk.com...
The nice thing is, the more you see about the .net API, the more it solves. You get a lot more than just managed C++
access to the database, you get nice access to the whole environment plus stuff VB needed win API calls for before.
It does command definitions, modeless dialogs, and other things that took hybrid approaches with other languages.
I'd be curious to hear what Tony likes most about .net development for acad. Not picking a fight here, I'm interested
in what experienced people like the most, since a C++ person could do it all along.

I sure wish there was a way to make the debug process with acad easier though.
I guess VSTA should help with that since acad is already running, no need to start new session with every debug.

Begrim <>
|>I believe what the important is not the conclusion but the course of conversation.
|>Thanks for sharing your time.
James Maeding
Civil Engineer and Programmer
jmaeding - at - hunsaker - dotcom

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost