AutoCAD VB :: Current Cursor X / Y And EventHandlers

Nov 15, 2013

Getting the [current] x,y position of the crosshairs seems stupidly difficult! Also, while I can see the event handlers in the object browser, there are a lot and not much input. I'm trying to project different temporary graphics based on where the users mouse is on the screen - I'm happy to do it in increments to make it faster but I've been trying to capture this:

PointMonitorEventHandler 

thinking it would be best, but that seems to fire :

args.Context.LastPoint

only once. and I don't need this to only fire when over an entity so much as for every certain amount of mouse movement..I'm about to break down and run the whole thing through screen mouse api calls and convert to viewport x,y as I go, but surely someone needed the live x,y of the crosshairs before now?

View 3 Replies


ADVERTISEMENT

Paint.NET :: Revert Current Tool To Mouse Cursor?

Aug 17, 2012

I am finding some inconsistencies when using tools provided in Paint.NET.

For 2 examples, I'll simply describe the behavior of the Escape key.

-----------

Exhibit A:

I would like to use Text to type in some letters with different colors. What I would do is press T (shortcut key for Text), select a color, type a letter, press ESC, nothing happened, click somewhere else, click back to the letter, select a different color, type a letter, ESC, nothing happened, repeat...

After I'm done, I press ESC again with nothing happening, and press a different shortcut key to continue editing, like O (shortcut key for Line/Curve).

Exhibit B:

I would like to draw a circle and a line. After finish typing, I press O four times to use the Ellipse tool, draw a circle, and then press ESC. Nothing happened. Next, I press O once to use the Line tool, start drawing a line, and then press ESC. At this point, my drawn line is canceled for good, and I need to either use Redo to recover it, or redraw the line again.

------------

Here I present to you these two exhibits. Notice that sometimes, pressing ESC does nothing other than jumping back to cursor, and sometimes cancelling the action that was done.

Would it be possible if the Escape key has a consistent action throughout all of the tools?

View 3 Replies View Related

Photoshop :: Cursor Change From Current Tool To Move Tool

Jul 31, 2013

When I have a none vector tool active for example the brush tool and I press and hold the Ctrl key down I see the cursor change from the current tool to the move tool cursor.  If I presses and hold the Alt key I see the cursor change from the current tool to the eyedropper tool.  If I press and hold both the Ctrl+Alt keys a see a cursor icon change to an icon that has two up pointing Arrow heads one Black the other White.  What tool is that cursor for? It seems to copy and move the current layer and move its position over the canvas. 

View 11 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Current View Align With Current Ucs?

Jul 20, 2013

how can i know if the current view/display is align with the current ucs?

let's say i have rotate the ucs about z axis 45 degrees and make it plan now i draw some things and then i change back to world

worlducs = 1

viewdir = 0,0,1

ucsxdir = 1,0,0

ucsydir = 0,1,0

but the display is still in the ucs z 45 (ucsfollow = 0) set the view to PLAN current (now the view is aligned) but the system vars does not change.

For a plan UCS, you would need to compare the VIEWDIR system variable and the cross product of the UCSXDIR and UCSYDIR system varaibles.

[URL]

View 7 Replies View Related

AutoCad :: Print PDF To Current Plot Settings In Current Drawing Directory

Sep 29, 2011

Is there a macro/script/deisel that will automatically print a pdf (cute pdf autocad lt 2007) to current plot settings in current drawing directory and give it the current drawing view name and number? Disk space not a problem these days and would save time to have a pdf copy of all drawing tabs readily stored in the directory ready for issue.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Check Current Plotter Name For Current Tab

Sep 3, 2013

Technique that can check the current plotter name for the current tab and assign it to a variable?  i.e. can it be assigned to a variable to check if if equals "myplotter1".  The next step  - is there a technique to change the plotter name to "myplotter2.pc3".

I have partially done the latter part of this in the past using the -plot command line to ASSIGN a  new plotter but I would really like to only run the routine if it really needs to.  

View 9 Replies View Related

Edge Animate CC :: Get Current Label In Timeline From Current Location

Jun 5, 2013

I have 1 Next button that is used on the timeline.  Each position has a pause then a play so there is only 1 button.  I need to get the label info so I know where I am so I can save the location of the timeline that the user was at if they exited before they finished the process.

View 6 Replies View Related

GIMP :: Flashing Cursor / No Movement Of Cursor

Dec 14, 2012

My cursor appears and disappears while in GIMP as I move the cursor over the canvas. I can make the cursor appear but only if there is no movement of the cursor. It makes no difference which tool I select, the size of the canvas, or the level of zoom.

Please note that this only occurs in Gimp, and none of my other applications. It started when I upgraded from openSUSE 12.1 to 12.2. I'm assuming that it has something to do with my input device configuration, but I could be totally wrong.

I have a total of 3 input devices - Core Pointer, Logitech USB-PS/2 Optical Mouse, and Virtual Core XTEST Pointer. Both the Optical Mouse and XTEST Pointer are DISABLED. Core Pointer is the only one enabled. Enabling Optical Mouse and XTEST Pointer give me other problems in Gimp and need to remain disabled.

For the Core Pointer, Mode is set to SCREEN, a message says that 'The axis X has no curve', and the following Axis Settings:
X 1
Y 2
Pressure none
xtilt none
ytilt none
wheel none

In Gimp Preferences->Input Controllers, there are three active controllers - Mouse Buttons, Main Mouse Wheel, and Main Keyboard.

OS: Linux 3.4.11-2.16-desktop i686
System: openSUSE 12.2 (i586)
KDE: 4.8.5 (4.8.5) "release 2"

Display Info:
Vendor: Intel Corporation
Model: G33
2D driver: intel
3D driver: Unknown Gallium (9.0.1)

View 3 Replies View Related

Illustrator SDK :: How To Convert CUR Cursor To Mac Cursor

Feb 27, 2014

In Xcode, we have to define cursor as:
 
resource 'CURS' (16001) {
    $"00 00 00 00"
    $"18 00 3C 00"
    $"1E 00 0F 00"
    $"07 80 03 C8"
    $"01 E8 00 FC"

[Code]...
 
In Windows we use .cur file, simpler.
 
I want to convert .cur file to the mac format above, how?

View 1 Replies View Related

AutoCAD .NET :: Get Current Selection

Feb 24, 2010

How can I get the current selection set? Editor.Get Selection() will prompt for a new selection, but I would like to check if the user has selected objects before running the command.

View 5 Replies View Related

AutoCAD .NET :: Get Current View Name?

Oct 19, 2013

I would like to get the current AutoCAD View name in .NET.

Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor.GetCurrentView().Name always returns "", even when viewing a View with a name.

View 5 Replies View Related

AutoCAD .NET :: Current DimStyle Of The Drawing?

Aug 14, 2013

I am trying to find out what the current DimStyle of the drawing.

I have iterated through all DimStyle but can’t find any way of finding the current Style.
 
For Each DsrID In DST Dim R As DimStyleTableRecord = CType(DsrID.GetObject(OpenMode.ForRead), DBObject) Debug.Print(R.Name)Next

View 5 Replies View Related

AutoCAD .NET :: Set Page Setup Current?

Feb 25, 2013

I have existing .NET code that adds page setups to drawings.  I now wanted to set the newly added page setup as "current" within the drawing. 

The "manual" way to do what I am asking is by clicking the "Set Current" button from within the Page Setup Manager dialog.  How would I do this programmatically?

View 3 Replies View Related

AutoCAD Civil 3D :: Save Current Map

Jun 13, 2011

Trying to use this option in C3D2012 but just get

Command: _maptoacad Unknown command "MAPTOACAD".  Press F1 for help.

Is this another command that hasn't made it from the standalone version of Map 3D?

View 6 Replies View Related

AutoCAD .NET :: Change Current Space

Jul 11, 2011

I have a small application that zooms on an entity with specific properties. The problem is that if I am in paperspace and the entity is in model space, i cannot see the entity. How can I make the entity's space to become the current space?

View 3 Replies View Related

AutoCAD Map 3D :: Import Styles To Current DWG

Oct 5, 2010

Surley there is a way to import styles to your current dwg. How to do that?

View 8 Replies View Related

AutoCAD .NET :: Change Current WCS To Object UCS

Sep 9, 2013

I would like to change current WCS to the object's UCS.

In AutoCAD I manually do this:

a) WCS -> OBject.

b) I'm selecting object;

c) PLAN.

I wrote this
 
if (sourceObject is Entity) {
Entity ent = (Entity)sourceObject as Entity;
Point3dCollection pts = new Point3dCollection();
ent.GetStretchPoints(pts); Point3d pt = pts[0];
double viewsize = (double)Application.GetSystemVariable("VIEWSIZE");

[Code]....

how to set current coordinate system to the object's UCS?

View 1 Replies View Related

AutoCAD .NET :: Getting Current Selected Entities

Nov 26, 2012

I try to get all current entities for my own custom palette.

I tried it with ed.SelectionAdded and ed.SelectionRemoved but it doesn't work if I for example pressing ESC.

I want to get the Object Ids saved in a ObjectIdCollection and I don't want to run an autocad command every time.

View 1 Replies View Related

AutoCAD .NET :: Setting Current Layout

Aug 23, 2013

After setting a layout for printing current,
 
LayoutManager.Current.CurrentLayout = LayoutName 
btblRec = CType(tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite), BlockTableRecord)
db.CurrentSpaceId returned the ObjectID of the ModelSpace and not of the Layout set current. 

Is there something that could prevent this from happening? 

View 2 Replies View Related

AutoCAD .NET :: How To Install New TextStyle And Then Set It Current

Jul 30, 2011

i want to set a TestStyle,so I can control the fontsize,fontname,etc.

View 4 Replies View Related

AutoCad :: How To Trim Current View Only

May 27, 2011

When I use trim or extend commands and have to zoom or pan to select additional objects the command drops selection in previous view and only edits items in current view when executed.

Is there a system variable I can use to change this little time waster?

View 2 Replies View Related

AutoCad :: Rotate Relative To Current UCS?

Oct 26, 2012

Is it possible to rotate an object to thecurrent UCS. I use UCS object quite a bit and want to align text to the mycurrent UCS without having to align it to an object. i.e. to select the text andsimply rotate it around the justify point to a set angle relative to the current view.

View 3 Replies View Related

AutoCad :: VP Freeze A Layer In All BUT The Current VP

Sep 17, 2013

I'm working with a DWG that already has a-gazillion VPs.

I'm currently making new layers, but the "New VP Freeze" option only seems to apply to new VPs made AFTER the creation of the layer.

I need the new layers I'm making to be Frozen retroactively, if you will, in all previously-made VPs.

Short of going into each and every VP and manually VP Freezing these few layers, what can I do?

View 1 Replies View Related

AutoCAD .NET :: Moving A Circle Z Direction Along Current UCS

Sep 12, 2013

I have a circle that I would like to move ‘Z’ direction along the Current UCS. The Current UCS can be in any 3d plane.The code that I have only moves the circle 5 units up along the WCS.
 
Dim Zp As New Vector3d(0, 0, 5) Zp.TransformBy(ed.CurrentUserCoordinateSystem)myCircle.TransformBy(Matrix3d.Displacement(Zp))

View 3 Replies View Related

AutoCAD Architecture :: Retaining Profile As Current?

Nov 14, 2013

I am using AutoCAD Architecture 2010

Everytime I open a session of AutoCAD, I must select my profile.

Is there a setting that would retain my profile as current?

View 1 Replies View Related

AutoCAD 2010 :: Updating All Text To Add 10 To The Current Value?

Oct 7, 2012

I have around 700 pieces of dtext that all need to have their values raised by 10 is there any easy way of doing this?

View 3 Replies View Related

AutoCAD .NET :: Layouts Count In Current Drawing

Jun 5, 2013

How can i get number of layout in the current drawings?

View 3 Replies View Related

AutoCAD .NET :: Get Pixel Size In Current View

Oct 10, 2013

How can I get the pixel size in current view?

i.e., how many meters a pixel's width in the current view stands for

View 1 Replies View Related

AutoCAD .NET :: Saving UCS Using Current System Variables

Dec 12, 2012

Using the VB.NET example code on exchange.autodesk.com for Defining a User Coordinate System, I pretty much copy and pasted the code to suit my needs. While the example shows how to create a UCS origin, X Axis and Y Axis from scratch, I am attempting to simply cast the values from the system variables UCSORG, UCSXDIR and UCSYDIR. These system variables are read only, and when looking into the types, I believe they are all 3D Point type values. 

I'm experiencing errors when trying to run the following code, and it's making me wonder whether what I'm attempting to do is possible. The JIT Debugger is pointing out a System.InvalidCastException. Is there a problem with setting a Point3D value (from the system variable) to a Vector3D type (which is required for defining a new ucs)?  

Public Sub saveCurrentUcs()
'get the current document and database
Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument
Dim acCurDb As Database = acDoc.Database

[Code]....

View 1 Replies View Related

AutoCAD 2013 :: How To Set Current Imported Profile

Oct 17, 2012

I exported a .arg file in the menu :'Options>Profiles' and I imported the '.arg' file back after I reinstalled the Autocad 2013. Then I selected the profile which I imported , and clicked the button 'SET CURRENT'

BUT It didn't work after I reopen the ACAD 2013. The current profile isn't the imported one still. I have tried again and again. How to 'set current' the profile I imported??

View 2 Replies View Related

AutoCAD .NET :: Saving Current Drawing File?

Aug 21, 2012

How to save current drawing file using save method.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved