AVAX-software.com Forums: OSnap Mode - AVAX-software.com Forums

Jump to content

Page 1 of 1

OSnap Mode

#1 Guest_Terry_*

  • Group: Guests

Posted 02 June 2005 - 08:00 PM

Hi,

First let me start by saying you have a very good product here. I have tested similar products at 2-3 times the price of yours and I seem to prefer your product. Congratulations on a job well done!

My questions is this. I want to produce in a text box the current OSNAP mode as text. In the MouseMove Event I can trap the Integer number but have to convert that number the corresponding OSNAP mode. I cannot seem to determine the Node number, it shows up as 1, the same as Endpoint and it would be nice to seperate these two. Is there a better way to get this information then the way shown below in my example? Also, I would like to use a OSNAP from a Handle which would be a Custom type. How would this be handled other than a type 0? In the example below the type 8 would be a Node while the type 9 would be a custom OSNAP where the users enters a Survey Point Number stored as a handle. Currently the control has 1-7 defined in OsanpOn.

Example:

If cAvax1.GetAvaxStatus(zoomon, selecton, rotateon, mirroron, scaleon, StretchOn, moveon, lineon, OsnapOn, intersecon, SelectVerticesOn, SnapOn, OrthoOn, GridOn, SelectAddOn, pointOn) = True Then

If OsnapOn <> 0 Then
                    Select Case OsnapOn
                        Case 1
                            SnapMode.Text = "Snap: Endpoint"
                        Case 2
                            SnapMode.Text = "Snap: Midpoint"
                        Case 3
                            SnapMode.Text = "Snap: Nearest"
                        Case 4
                            SnapMode.Text = "Snap: Perpendicular"
                        Case 5
                            SnapMode.Text = "Snap: Intersection"
                        Case 6
                            SnapMode.Text = "Snap: Tangent"
                        Case 7
                            SnapMode.Text = "Snap: Quadrant"
                        Case 8
                            SnapMode.Text = "Snap: Node" ???????????
                        Case 9
                            SnapMode.Text = "Snap: Point Number" ????????????
                    End Select



Thanks,

Terry

This post has been edited by Gemalde: 11 June 2005 - 10:31 PM


#2 User is offline   Athanasios Gardos Icon

  • Administrator
  • Icon
  • Group: Admin
  • Posts: 333
  • Joined: 21-March 05
  • Gender:Male

Posted 03 June 2005 - 10:52 AM

Hi,

Thank you for your good words about AVAX.

I will add to AVAX the feature to return the snap mode in the next version.
It will be ready until Monday.

Snap mode “node” already exists: cAvax1.Command = Node_c (snaps to a point object).

Can you please descript me better the snap mode “point number”?
Is there something that I have to do for this mode?
Athanasios Gardos
Avax-Software.com

#3 Guest_Guest_*

  • Group: Guests

Posted 03 June 2005 - 08:39 PM

I will try to explain better.

For OSnap type Node, yes it exists but the returned OSnapON value is 1 which also is returned for OSnap Endpoint type. Because of this, the user cannot determine which of the two was selected. I am assuming that you will address this issue with the release on Monday.

As for the Survey Point Number option, I will be populating the graphics screen with points read from a coordinate geometry database which has Point Number, Northing, Easting And Elevation. The Point Number will be unique with no duplicates. I would like to SNAP to the Point Number by requesting the Point Number from the user and then retrieve the X,Y,Z values from the database. The program would then OSnap to these coordinates.

The OSnap would not be an endpoint, midpoint, etc, but rather a coordinate on the screen.

Hope this helps.

#4 User is offline   Athanasios Gardos Icon

  • Administrator
  • Icon
  • Group: Admin
  • Posts: 333
  • Joined: 21-March 05
  • Gender:Male

Posted 05 June 2005 - 05:36 PM

Hi,

Please download the latest version of AVAX v.1.3.36.

We have fixed the "Node - OsnapOn" bug.
In that new version you can also find some more functions.

About the "Point Number option" you can use the new function "SetCoordinate" to set directly a coordinate while the end user is drawing a line.
Athanasios Gardos
Avax-Software.com

#5 Guest_Terry_*

  • Group: Guests

Posted 06 June 2005 - 02:26 PM

Again, perfect!

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users