Re: CAD Drawing

From: Sam (qdo_at_datawave.ca)
Date: 08/04/04


Date: Wed, 4 Aug 2004 14:03:48 -0700

Gerald

That's my plan in the future too (create a graphic control with all the
stuff for CAD). The problem is that I can't find enough time to do it. Btw,
are you aware of any performance effects when switching PageUnit from pixel
coordinates to coordinates such as inch or centimeter in .Net? In VB6, when
I tried to rotate a shape using the mouse pointer, the response seems to be
much faster when the ScaleMode is set to pixel (than in any other units such
as inch or centimeter). Also do yo know how the zoom in/out function work in
term of grid lines and coordinates? Btw may I email you directly? Our
messages might get flooded with all other new messages.

Sam

"Cablewizard" <Cablewizard@Yahoo.com> wrote in message
news:ufxBwjkeEHA.4068@TK2MSFTNGP11.phx.gbl...
> Sam,
>
> Well, in .Net you could pretty much use anything you want, as long as it
exposes
> a Graphics object, which is most everything. I've used picture boxes and
panels
> mostly. To give a pseudo MDI feel, I even tried a child form, which worked
> pretty good. Pro's and Con's of each. But to start with, I would proly
recommend
> sticking with a picture box for now. But it is indeed different than the
VB6
> one. Maybe someone else could recommend more options I'm not aware of.
>
> I have decided that at some point in the future, I will create a custom
"Canvas"
> or "View" control, and handle everything myself. It will hold key things
> internally like perspective, transformation parameters, geographic
projection,
> origin, extents, etc. That way I could just pass in references to my
> CAD/Geometry Objects classes, and have it intelligently render. But I
think that
> will be a monumental task so it is on the far back burner for now.
>
> Gerald
>
> "Sam" <qdo@datawave.ca> wrote in message
> news:eBhSrGkeEHA.2440@tk2msftngp13.phx.gbl...
> > Gerald,
> >
> > Thanks for the tips. I saw some people used picture box control to draw
> > wireframe in VB6; what would you recommend me with .Net? I want use
picture
> > box control to do this because I'm more familiar with it but some of the
> > features of the picture box control in VB6 such as ScaleMode have
> > disappeared.
> >
> > Sam
> >
> > "Cablewizard" <Cablewizard@Yahoo.com> wrote in message
> > news:OW4$2CZeEHA.3632@TK2MSFTNGP09.phx.gbl...
> > > Sam,
> > >
> > > Well, you will definitely need to become intimately acquainted with
> > > transformation matrices. You should take a look at
www.magic-software.com.
> > There
> > > are a number of resources that you should find helpful. There are a
number
> > of
> > > books on the subject, but most of them are IMHO very poor. Oftentimes
they
> > read
> > > something like 1. This is a line. 2. This is how to perform back face
> > culling in
> > > 3D using wiremeshes. And they skip all the stuff you really need to
know.
> > > Another interesting note, is that the majority of the books I've seen
just
> > end
> > > up referring back to stuff on the magic-software site anyway. The best
> > book I
> > > have found so far is Geometric Tools for Computer Graphics. You can
find
> > info
> > > about it on that site as well. It is not terrific, but the best one
I've
> > found
> > > so far. In fact, I have had the itch to write a Dummies Guide to
> > Computational
> > > Geometry. Too bad there's little money in writing these types of
books.
> > :-(
> > >
> > > Another thing that might help...
> > > If you have access to a CAD package, you should really play around
with
> > coding
> > > in there, this way you can see the results of things much easier. Then
> > once you
> > > feel you have a good grasp on the concepts of view and such, then
start
> > coding
> > > your own. In my spare time I have been working on a Geometry Objects
> > framework
> > > for dealing with simple vector objects. If you find certain things you
> > need, I
> > > might have some classes I may be willing to share. As far as
rendering, it
> > won't
> > > do that yet, as I am just now getting into this myself and am learning
a
> > lot.
> > > Mostly what not to do :-) But it helps tremendously when
interoperating
> > with
> > > ArcView, AutoCAD, and Microstation.
> > >
> > > If you have any specific questions, feel free to let me know.
> > >
> > > Gerald
> > >
> > > "Sam" <qdo@datawave.ca> wrote in message
> > > news:%23PEOPsYeEHA.3632@TK2MSFTNGP09.phx.gbl...
> > > > Hi Gerald
> > > >
> > > > For the math part, I think I'm ok. For the coding part such as
> > coordinates
> > > > system, grid lines/points zoom in and out function, I'm stuck. I
find
> > this
> > > > complicated because when user zoom in/out the units on coordinate
system
> > > > change
> > > >
> > > > Sam
> > > >
> > > >
> > > > "Cablewizard" <Cablewizard@Yahoo.com> wrote in message
> > > > news:ug4iYgYeEHA.3840@TK2MSFTNGP10.phx.gbl...
> > > > > Personally, I do not know of any "good" sites to help you along.
> > > > > When you say you have never done this before, do you mean coding
such
> > a
> > > > thing,
> > > > > and/or the math behind it? This might help me lead you in the
proper
> > > > direction.
> > > > > You will quickly find out that CAD/Vector graphics can be very
> > different
> > > > than
> > > > > normal GUI graphics.
> > > > >
> > > > > > 2. Is VB.Net GDI+ robust enough to do the job
> > > > > This is a loaded question. It really depends on your needs. As far
as
> > > > VB.Net, it
> > > > > should be, but might depend on how you end up implementing the
> > > > presentation
> > > > > layer. If you use GDI (not +), you would want to look into C++,
maybe
> > C#.
> > > > As far
> > > > > as GDI+, it depends on how you use it. You might want to look at
> > > > DirectDraw. But
> > > > > you may find it to be more trouble than what you need.
> > > > >
> > > > > Gerald
> > > > >
> > > > >
> > > > >
> > > > > "Sam" <qdo@datawave.ca> wrote in message
> > > > > news:OZn6OQYeEHA.596@TK2MSFTNGP11.phx.gbl...
> > > > > > Hello everyone
> > > > > >
> > > > > > I want to write a quick 2D/3D CAD application (I have never done
> > this
> > > > > > before) which reads data (such as coordinates) from a text file
and
> > draw
> > > > > > grid lines/points on screen (this application does not display
any
> > > > bitmap
> > > > > > image. It basically displays lines and points). The application
also
> > has
> > > > > > zoom in/out functions, rotate wire-frames around, and origin of
the
> > x-y
> > > > > > coordinate system near the bottom left corner of the screen (not
top
> > > > left).
> > > > > >
> > > > > > 1. Does anyone know any websites or have articles on this
subject
> > > > > > 2. Is VB.Net GDI+ robust enough to do the job
> > > > > >
> > > > > >
> > > > > > Sam
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Relevant Pages

  • I was telephoning to ride you some of my typical sweats.
    ... rid the control. ... How doesn't Morris speak ... Sam never undertakes until Abu abolishs the distinct repair halfheartedly. ... amid Waleed's mill. ...
    (sci.crypt)
  • Re: OLE Object- the real question
    ... Now you have a blank image control. ... Dim strFilename As String, strFind As String ... My file path for the 1st picture is ...
    (microsoft.public.access.forms)
  • Re: Using Image Acquisition Automation: how to display the thumbnail?
    ... I note that the Picture control in VB allows me to assign the image ... make sure it has been tested in VFP. ... >>access all of the items in the JPG file, including the thumbnail picture. ...
    (microsoft.public.fox.vfp.forms)
  • Re: Graphics in Report
    ... text1 on my report was a bound control named text1. ... I hope what you wrote actually translates to "change the picture ...
    (microsoft.public.access.reports)
  • RE: Adding Bound Pictures to an Access Database
    ... except in the case where I don't have a picture for a student. ... Dim strPath As String ... you have the Image control, not either of the Object controls. ... UI I'm not sure where you'll find it, but the Picture property should be ...
    (microsoft.public.access.modulesdaovba)