AutoCAD Inventor :: Get Point Location Of Mouse Click Using ILogic
Mar 4, 2013I'm trying to get the point location of a mouse click in an Inventor drawing using an iLogic Rule. Any examples of using mouse events in iLogic?
View 9 RepliesI'm trying to get the point location of a mouse click in an Inventor drawing using an iLogic Rule. Any examples of using mouse events in iLogic?
View 9 RepliesI want to be able to read the left click mouse button coordination all the times . Is it possible ?
View 4 Replies View Relatedright clicking the mouse normally repeats the previous command. In this case I right click to repeat the "break at point" command. Instead of getting the break at point command, I always get the "break" command.
View 2 Replies View RelatedIn most vector based programs I am used to using a function which allows you to paste a copied item to a specific location determined by a point-click. I find this endlessly more useful than pasting to the centre of the screen, or even paste in place, as both are rarely anywhere near where I would like an object to be. I find the function of point-click paste does away with endless dragging of objects across the screen.
CS6 13"MBP-2012-Mavericks
I write a program, this program needs to insert some standard illustrations. I made these standard illustrations into different blocks. And I store these blocks in a dwg file. Everytime I need to insert some illustrations, I just click the mouse on the current drawing, I want the illustration inserted. These means the following points:
(1) Import the blocks to the current drawing, if the blocks have already been imported, then do nothing.
(2) Specify the insert point by clicking the mouse, and I want the block's insert point to coincide with the mouse clicking point.
I have two menus that I use often and I would like to add them to my mouse buttons. Attached is a picture of the two menus I like and the two buttons. The Shift + Click has the correct menu already (Osnap menu2) my problem is adding my custom menu to the CTRL + Click doesn't work. I labeled Osnap Menu 1 and 2, 1 being the custom menu I have use in the past and 2 being the default osnap menu that comes with the cui file. How to get the second button to read my menu rather than both read the same osnap 2 menu?
View 1 Replies View RelatedI´m trying to create an external iLogic rule that let´s the user specify a path and saves an assembly and all it´s components into one directory. Alternatively it could be the main workspace path which doesn´t have to be specified by the user so it can be handled internally.
The background is a design template that resides on a network storage which can be configured through an iLogic Form and when the user is done configuring the assembly to it´s liking it should be saved to it´s workspace.
I was looking through the snippets but couldn´t find anything related to "save all". I have the feeling that I have to cycle through all component occurences and save them one by one.
Getting a Save As dialog box seems to be possible as I could see on Curtis Waguespack´s blog but the commands he is using are nowhere documented. For example for calling the dialog box he is using
InventorVb.Application.CreateFileDialog(oFileDlg)
I have a dedicated folder for external rules on a network. In the Advanced ilogic configuration interface on my machine I added the path to this folder in the External rule directories.That seemed to work fine. I opened the ilogic tree activated the external tab and the external rules were available for selection.
Today I tried to do the same process however no rules were visible under the external tab. I had to select "add external rule" and navigate to the folder.I do not want my users to have to manually navigate to the folder. Is there a step i have missed in this process? I am using Inventor/ilogic 2009.
I have an embeded excel chart on my drawing called CLASS 125 Single Disc.xls. I want to switch this chart with another one known as CLASS 150 Single Disc.xls. How do I do this? I am using Autodesk Inventor 2011.
View 9 Replies View RelatedI am trying to create a windows form within iLogic. Everything works except the lines defining the location on the controls. I keep getting the following error: 'New' cannot be used on an interface. The error refers to lines in the code that try to set the control location on the form. (i.e. "button1.Location = New Point(10,10)") Ihave pasted the code below and have it attached as well. I am in Inventor 2013.
AddReference ("C:WindowsMicrosoft.NETassemblyGAC_MSILSystem.Drawingv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Drawing.dll")Dim oOccurrence As ComponentOccurrenceTry oOccurrence = ThisDoc.Document.SelectSet.Item(1)Catch MessageBox.Show("Please select a component before running this rule.", "iLogic")
[Code] ........
The workpoint I have in my model is in the location I want.
When I INCLUDE it in my IDW file it shows up in the wrong location.
Glad I noticed that, I would have dimensioned to the wrong location and ended up with a scrapped part.
I wonder what would cause this? Maybe a bug? I looked at the model from every possible angle and the point is in the exact location I need.
Dell Precision T3500
Windows 7 Pro
Quad Core Intel Xeon
6 Gb SDRam
NVIDIA Quadro
Product Design Suite 2014 Premium
I use cs2 and when in photoshop when i left click on any of the tools for instance the pen tool it brings up the menu to select pen tool, freeform pen tool, etc.. rather than just selecting it. I am use to having to right click on the the pen tool to get that menu, i was wondering how i would change it back. Same thing happens when i left click on all the tools on the tools menu, just used the pen tool as an example.
View 5 Replies View RelatedIn assembly mode, how can I click on two lines in a part sketch and get there intersection point using VBA?
View 3 Replies View RelatedI did, a couple of months ago, a part with a rule containing some input boxes. It worked without a bug and set it as a specific template, on Inventor 2012.
I tried to reuse it as a template without changing its rule on Inventor 2013. When the input box pops out and ask the value it needs, if I type "0.2" it says that "string's conversion "0.2" in a 'double' type isn't valid". But if I type "0,2" I have absolutely no problems.
Work on widows 7
Autodesk design suite premium 2013 french.
I would like to use iLogic to find the location of the points of a line, determine if the line is approximately vertical, and apply a vertical constraint if it is vertical.
Here is the code process I envision:
1. Automatically select a straight line.
2. Find the location of its end points.
3. Compare the X-value of the end points to see if they are vertically aligned (or almost so).
4. If they are vertically aligned, apply a vertical constraint.
5. Select next line and repeat.
Is this possible with iLogic? I don't see any way of calling a line's sketch points or finding their location.
I don't know what I did, but some how when I use the mouse wheel to zoom now, it only zooms in from the center of the screen, not where the mouse pointer is.
how I did this and how to change it?
I'm having trouble with my right click on my mouse. Until about a month or so ago my right click would bring up a short cut menu that inclided things like move, rotate, scale, copy. But now it includes none of those features.
View 4 Replies View Relatedis there a way to make it so that i right click on the mouse, it does the 'cancel' command??
View 7 Replies View RelatedWhen moving the mouse over objects, the objects are automatically selected. Are there a way to disconnect that function, so the objects are not selected before I click the mouse?
View 6 Replies View RelatedEveryone so far in the office who is using 2013 has found that intermitently but fairly often (maybe 1 in 8 attempts) when clicking on a tool button it seems to take about 3-4 goes at clicking before the command kicks in, this is with any command and there are various versions of windows and mouse hardware involved.
View 3 Replies View RelatedI have 2010lt on Vista. Mouse is set to repeat last command on right click. When I right click to repeat break at point command, it will shorten the line every time. When I click the break at point icon it does not shorten line. I cant find a fix.
View 9 Replies View Relatedhow to allow my right click mouse button to the function of the F3 key? I want to be able to draw, move, copy or whatever and mid-command be able to right click (on or off) the snap that are assigned to F3.
View 1 Replies View RelatedI have the right click on autocad for repeat the last command.
when i launch my prog. --> the prog show a form with a datagridview. I have added a contextMenuStrip in this datagridview.
SO when i launch the prog with the right click (repeat last command) the form show and the contextmenustrip too. (if the mouse is on the datagrid.)
How i can cancel or purge the event mouse right click ?
I just got a new pc upgrade so I'm walking through everything to see if it all works. Now when I double click my mouse wheel, nothing happens where before it would zoom extents. I'm using a MS Wireless Mouse 5000 with AutoCAD 2013.
I played around with programming the mouse buttons directly, but I couldn't get it to work right. I don't see anything in AutoCAD about a setting for mouse wheel double click. All I see is that it just says that double clicking the mouse wheel should execute the zoom extents command.
I am developing a .NET application that integrates with AutoCAD Architecture. In my .NET application, I provide my user with a list of drawing files (.dwg) that they can choose to open. Once my user has selected a file, my application will open the selected drawing in AutoCAD Architecture. In this drawing, the user can click on an object in the drawing.
Can this mouse click event be captured and the object ID for the selected object be returned to my application?
I lost my setup in the right click for my menu. How can I bring it back?
View 2 Replies View RelatedWhen zooming, I middle click the mouse to bring up osnaps, then type the letter to force the snap I want. That stopped working today: the menu pops up, I type "E", the menu goes away, but it doesn't default to endpoint, there's an "E" on my command line.
I'm not sure if this is a Service Pack 1 issue or not, but I just installed that yesterday.
I am trying to limit the input that can be processed when using the getpoint lisp function. So the code below prevents the user from entering null input (i.e just hitting a carraige return) as specified by the initget bit code of 1, or a non-numeric entry (i.e. for instance, typing S and hitting a carriage return) as the getpoint function does not allow for a non-numeric entry.
(initget 1)
(setq PT1 (getpoint "
Pick Location of First Point: "))
However, the issue is that the code does NOT prevent the user from entering a number and hitting return. For instance, if I enter the number 100 and hit return, getpoint accepts this as a valid entry and returns a point value that is projected, in some form or fashion, from I believe the last entered point or (0,0,0) if a point was not previously entered. I only want the user to be able to select a point with a mouse click and not type in a number or point coordinate.
So is there some way with AutoLISP or Visual Lisp that you can prevent the user from typing in a numeric value and hitting a carraige return in conjuction with the getpoint function? Or is there some other function that will provide the getpoint functionality while providing the entry limitations described?
I am having a problem with AutoCAd LT 2014 incorrectly locating mouse clicks with respect to the change page layout arrows. In order to reproduce this error you must have enough page layouts in a drawing to highlight the arrows (bottom left) which change the layout tab. Clicking on the right (or left) arrow several times consecutively will be incorrectly identified by AutoCad as a double click on the 1st page layout visible and will execute the rename feature. However the mouse pointer is not over that layout tab, it is clearly over the right arrow.
Why does AutoCAD read a clicks in this area incorrectly and register them instead nearly 30 pixels to the right.
Any work around as I commonly use the arrows to cycle through pagelayouts in drawings which have 50+ page layouts.
I have also noticed that AutoCAD will preview page layouts when hovering the mouse over the page layout change arrows, this reinforces the belief that AutoCAd is not correctly identifying the mouse position in that area.
This is happening on all my Autodesk software (AutoCAD, Map 3D, and Civil 3D)(2012 and 2013). . .
I initiate a command (say LINE), I pick my first point to draw the line and nothing happens. I must click it again to get it ot work. It only happens when I'm working fast. For instance:
L (for line)right-click (for ENTER)immdediately try to click the first point of the linenothing happens and I must re-pick the firtst point again
or
E (for erase)right-click (for ENTER)immediately try to pick a corner for your boxnothing happens and I must re-create my selection box However, if I go slow it works fine. For instance, after initating the command simply wait about 2 or 3 seconds and then try to click. It all works fine there, but waiting becomes annoying now.
The mouse clicks work fine in all my other software (Excel, MS Word, etc.). I am having another (maybe totally unrealated issue) with my keyboard. While typing, my cursor will magically move somewhere else on the screen. I'm using a laptop and have made sure I'm not touching the touch pad. This may be a completely unrelated issue to the mouse clicks, but I thought I'd inform you just in case the two go hand in had. by the way. . .dynamic mode is disabled, PICKFIRST is set correctly, and I've messed with the 3D Config options.
Is there a way to create a shortcut for mouse left-click button on the keyboard?
View 8 Replies View Related