AutoCAD Inventor :: Select Versus Pick - API

May 17, 2012

I'm writing a program (C#) that automates the notch tool within the frame generator add-in in Inventor. I can select one part and then select multiple other parts that will notch to the first selected part automatically. This will save me a TON of time if I get it working correctly. With that being said, I have it to the the point where the user selects the first part and then window multiple parts (these are stored and then cycled through later), then I use SendKeys to open the "Notch Tool", and now this is where I encounter my problem. 

The Notch Tool is waiting for the user to Pick/Select one part. In my code I've tried to use the CommandManager.DoSelect method which does not register with the tool (I'll exit out of the tool and the part will be selected). My thinking is that this notch tool will only accept the CommandManager.Pick method which would defeat the purpose of the program as I do not want the user to have to go through the parts one by one notching them together.

Is there a way to simulate a mouse click on a selected occurrence within Inventor? Is there another approach I should be considering? And finally, how to rewrite the actual notch tool to allow multiple notches to be done at once?! I'll post a snippet of my code.

docName = instance.ActiveDocument.DisplayName;
int iHandle = NativeWin32.FindWindow(null, "Autodesk Inventor 2012 - [" + docName + "]");
this.Hide();
NativeWin32.SetForegroundWindow(iHandle);
keybd_event(0x23, 0x4F, 0, 0); // Press End
keybd_event(0x23, 0xCF, 0, 0); // Release End (Brings up notch tool)
Thread.Sleep(3000);
//keybd_event(0x28, 0x0F, 0, 0); // Press Tab
//keybd_event(0x09, 0x8F, 0, 0); // Release Tab
NativeWin32.SetForegroundWindow(iHandle);
Thread.Sleep(500);
instance.CommandManager.DoSelect(vert); 

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: How To Select Element Of Pick Point Through API

Apr 3, 2013

I am trying to understand how to select element of pick point through API.

I have found example in API manual, chapter "Interactive selection". Everything seems be clear but finally this example (and also others which I have found on web) doesnot work as I am expecting.

There is example:

Public Sub TestSelection() ' Create a new clsSelect object. Dim oSelect As New clsSelect ' Call the pick method of the clsSelect object and set ' the filter to pick any face. Dim oFace As Face Set oFace = oSelect.Pick(kPartFaceFilter) ' Check to make sure an object was selected. If Not oFace Is Nothing Then ' Display the area of the selected face.'''' there is cursor and content menu correct
[code]...

I am able to select face, during selection is cursor shown as arrow with plus symbol, content menu show correctly zoom and pan commands. Unfortunatelly when this selection is done and message box show the value, the cursor and content menu does not return to correct state. Cursor is still with plus and content menu with zoom&pan. I have found that problem is with messagebox, just before messagebox is shown the cursor and content menu return to correct state , but after messagebox is shown and closed, then cursor and content menu is wrong. Why?

Finally I need it for my addin in C#, is there and better way how to select item or input 2d point?

I use Inv 2013.

View 2 Replies View Related

AutoCAD .NET :: Select Entity Or Pick Insertion Point?

Aug 4, 2011

know if there is a command which joins GetEnttiy() and GetPoint() functions. At the moment I'm using both commands one after another. Result I want would be one command where you can choose entity or select insertion point.

View 6 Replies View Related

AutoCAD 2010 :: Unable To Select Multiple Grips Using Shift / Pick In Drawing

Mar 29, 2012

I have a drawing where i am not able to select multiple grips using shift/pick to make the grips "hot".  I'm not able to make even one of the grips of a poly line "hot".  However, while trying to solve the problem, i've opened another drawing where i AM able to make grips "hot".  It doesn't appear to be a system setting issue.

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Select Entity With Options To Type In Text / Pick Point

Nov 6, 2013

I am looking for some code that would allow me to select a MTEXT Entity - or other entity -  (as the DEFAULT option) but also to allow me to type in some text manually or to pick a point in the drawing. Something that would present the user with:

"Select an object or [P to pick a point]"  or

"Select MTEXT or [M to type].

I can write some code to type in text manually as the default option and get the second option to select entity using get string and then write some condition of if code but I don't know how to do it having entsel as default option.

View 3 Replies View Related

CorelDRAW Graphics Suite X5 :: Unable To Select After Changing Pick Tool

Aug 2, 2011

I'm using corel draw X5, I can't move object if I select "Traditional CorelDRAW" option for ctrl/shift keys, under Pick Tool menu in options window.

If I choose "Windows Standard", I'll be able to move the objects. But I don't like this behavior, because the way it draws new objects, anchoring them in center, instead of upper left corner.

This bug started just after I change this option, "just for curiosity". I wish I never discovered it. How can I solve it? I want to set ctrl / shift behavior to "Traditional CorelDraw" AND be able to move objects.

View 14 Replies View Related

Paint Shop Pro :: Select Multiple Images Using Pick-tool Direct In Canvas?

Apr 18, 2012

I have a PSPIMAGE file with a plenty of images as different layers. I am adjusting the images having one image "size" as reference (make same width and height). But I could select the multiple images just through layers pallete

whether is possible to select multiple pictures (each in different layer) by using the "pick tool" direct in the canvas (or other means)?

View 1 Replies View Related

AutoCAD Inventor :: Sketched Symbol - Pick List Options?

Jun 16, 2006

Is there any built in option for a symbol to have a pull down pick list of options? I know that you can make it have a prompted entry, but can you do a sim idea with a pick list?

View 5 Replies View Related

AutoCAD Inventor :: Visible Versus Shared Sketch

May 22, 2012

What is the difference between:

1) create a sketch

2) create an extrusion

3) make the sketch VISIBLE

4) create another extrusion

and:

1) create a sketch

2) create an extrusion

3) make the sketch SHARED

4) create another extrusion

View 9 Replies View Related

AutoCAD Inventor :: New File Icon Versus Pull Down

Mar 1, 2013

Something I'd like to see fixed (or find out how) is when using the start New File icon, if you select the icon itself, you are directed to the templates folder of the active project, but if you select the "Pull Down" arror next to the icon, you are taken to the Inventor Standard default templates which are typically not used.

I see numerous users unknowingly selecting those default templates and not noticing until they've started entering dims, etc. They get very upset at having to make sure they select the icon and question as to why it would be different.

Same deal if one is to select the Inventor Icon in the far left upper corner (this is more common than the users selecting the pull down) and then select "New", again, they are shuttled to the default templates and not the associated project file templates...why?

[URL]

View 8 Replies View Related

AutoCAD Inventor :: Pick And Place Movements - Cool Robot Clip

Dec 31, 2011

If you're interested take a look at the attached video clip.

What you will see is one robot tending two tool changers.

I know the quality was rushed, but you should see that one of the two stands actually has the end effector tooling on it.

My question is how do i define a grip from the robot to that tool, so I can move it to the other riser (as you can tell from the animation).

I am not working in Inventor Studio, otherwise this would be somewhat simple. I am doing this in Dynamic Simulation.

My thought was to create a spacial joint between the robot and the tool. But then how would I control through the timing where its location is?

View 1 Replies View Related

AutoCAD Inventor :: Representations / View Versus Level Of Detail

Jan 5, 2012

It seems that Views are easier to use, are there any benefits of View option over Level of Detail and vice versa?

View 3 Replies View Related

AutoCAD Inventor :: Refresh File Versus Revert To Latest

Oct 14, 2013

difference between the "Refresh File" and "Revert to Latest" commands in the Vault browser within Inventor 2013?  We just started using the Vault Collaboration 2013 flavor of Vault. 

View 4 Replies View Related

AutoCAD Inventor :: 2013 - Realistic Versus Shaded With Edges

Jul 25, 2012

How do I get my part to be transparent in the "Realistic" view like it is with the"Shaded with edges"?  This is what it looks like with the view style set to "Shaded with Edges".  Notice how it is transparent and you can see thru the part.

Now when I switch to "Realistic", I get this.  Anything that is behind this part is not visible.

I want to be able to see thru the part when in the reallistic visual style.

View 4 Replies View Related

AutoCAD Inventor :: Sync Center In Windows Versus Vault?

Oct 12, 2011

I've just used the Sync Center in Windows for the first time. Basically I syncronised an Inventor project that resides on a server with my laptop so I could go into the field. All seemed to work well until I returned back to the office and performed the sync again. For some reason now all of my projects don't appear in the projects list.

Sync Center and Inventor. Should I be looking at Vault. Can it do syncronising better than the Sync Center shipped with Windows?

Product Design Suite
Inventor Premium 2012 - SP1 Installed
HP 8760w I7-740M Laptop
Windows 7 Professional 64
12 Gb DDR SDRAM
AMD FirePro M5950 Graphics Card

View 3 Replies View Related

AutoCAD Inventor :: IPart Drawing Template - One Drawing File Versus Individual Drawings

Jun 21, 2013

Setting up a tabulated ipart drawing template. Which is better...one drawing file with a table or individual drawings for each tabulation? Also does one method work better than the other when introducing vault?

View 1 Replies View Related

AutoCAD .NET :: Can't Pick Updated Block

Sep 30, 2011

I have programmatically created a block, which resembles the protective tube schematically drawn. The block consists of two ellipses of connected the two lines. This block tries to modify (also programmable). The modification consists of changing the position of the ellipse and the length of the line. Everything (almost) goes smoothly, until the pipe extends beyond its original length. The changes are visible, but I'm not able to pick the block beyond its original contour. So I can pick out such lines, if picked point is on the original length, but beyond its original length is not already. The same applies to the ellipse. The situation returned to normal, if I tried stretch the block (base point) or command _move. Regeneration of the model does not work.

I throw a piece of 

using( Transaction tr = doc.TransactionManager.StartTransaction() ){//Block?Entity ent = tr.GetObject( per.ObjectId, OpenMode.ForRead ) as Entity;(...)BlockReference blRef = ent as BlockReference;(...)Ellipse ell1 = null;Ellipse ell2 = null;Line line1 = null;Line line2 = null;BlockTableRecord btr = tr.GetObject( blRef.BlockTableRecord, OpenMode.ForRead ) as BlockTableRecord;foreach( ObjectId entId in btr )
[Code] .........

View 1 Replies View Related

AutoCad 2D :: Cannot Pick Some Lines On In World UCS

Aug 8, 2013

I have a file that is behaving very oddly. Its a detail that I cannot pick some lines on in world UCS, but in Isometric views will pick ok, and to make matters worse, when I do a regen the lines in question vanish.

File attached, refer to AS DRAWN MKGP2, top left of drg sheet 324125_JJ_005_A.dwg

View 9 Replies View Related

AutoCad :: Crosshairs And Pick Pox Have Disappeared

Jan 4, 2012

I was drafting away, and all of a sudden my crosshairs and pickbox disappeared. Once I move the mouse there's nothing in my drawing plane. I can type commands, and when I move the mouse up to the menu area I can pull down menus. I've opened up other drawings and the crosshairs and pick box are there.

What can I do to resolve this? Of course it happens during a deadline.

Using Autocad version 2009, windows 2007, Professional

View 6 Replies View Related

AutoCAD Map 3D :: Osnap Pick Prioritizing

Mar 16, 2012

In selecting a point in a drawing to connect new poly lines to existing objects, is there a way to set the order to which osnap elements are used?I have perhaps 1/2 of the osnap element settings activated. End point, Mid point, Node, Intersection, etc.

When I go to select, it's like everything EXCEPT End Point is recognizing. And while I can go to right click, and select end point, I am now wondering, if besides the rt click, there is a way to preset the priority, or order in which the osnap elements recognize the type.Without resetting the settings each time.

View 9 Replies View Related

AutoCAD .NET :: Cursor Pick Object Event

Feb 8, 2012

i am trying to make a custom palette to display some custom information pulled out from selected objects.i can deal with the palette part.

i want some code for when you click an object in model space then the property palette updates. i am gonna keep it simple so this custom palette only refresh to the last selected object. but i don't know how to make an event when mouse click the autocad object and then do my things. any codes in c# or vb.net would be nice.

so use commandmethod load in a command and there will be a palette there stay open, when user click on an object then it will get populated. what event do i use for the clicking?

View 4 Replies View Related

AutoCAD Civil 3D :: Pick Profileview From Drawing

Jan 23, 2007

I want to create a function to pick a profileView(Alignment/.. in the future) in the drawing. I just get entity which type is Autodesk.AutoCAD.DatabaseServices.ImpCurve from GetEntity, and I failed when I try to cast it to Autodesk.AECC.Interop.Land.AeccProfileView. Is there any way I can pick a profile from drawing in .net?

Civil 3D 2007 and Visual Studio 2005

View 2 Replies View Related

AutoCad :: Selection List Box For Ambiguous Pick

May 15, 2013

Have noticed that on an AutoCAD 2013 workstation when the user make an ambiguous pick (that it, pick on top of two or more overlapped items) instead of just selecting one of them, there will appear a list box (whose caption is "Selection") containing all entities that may be selected in that spot and also None option. The user may pick the entity(ies) he/she want to have selected, but this behavior also prevents dragging the entities (since the said list box is shown again).

View 9 Replies View Related

AutoCAD .NET :: How To Pick Insertion Point With Mouse

Apr 26, 2011

How do I get an onscreen point after/ during a VB.net dialog box is launched (as example like with Hatch add pick points. I would like to create button for this in a vb.net dialog box?

View 4 Replies View Related

AutoCAD Architecture :: Lag With Zooming And Pick Window

May 22, 2011

I am having a lag problem when quickly zooming in or using the selection window quickly. When quickly picking a window from left to right the first pick point  lags and I would select some thing else. Iam using Cad 2012. Is there a command setting that has changed from Cad 2011 to 2012 ??

View 1 Replies View Related

AutoCAD 2010 :: Selection Box Won't Pick Up Objects Twice

May 16, 2013

I am having trouble with my selection box. Ordinarily, when I am trying to select multiple object, I can just create multiple selection boxes and it keeps adding more and more objects to my selection. However, it recently started acting funny--it stopped selecting things after the first box was drawn. No matter how many boxes I drag, it won't add any more objects to my selection.

View 3 Replies View Related

AutoCAD LT :: Dynamic Rotation Pick Circle

Mar 13, 2009

I have a block with a rotation parameter/action. I can't seem to get the rotation "circle" to stay in the same spot relative to the block when I rotate. Example: I make a block of a circle. Go into block editor and put a rotation on it with the base point in the center. Move the blue rotation circle to the center. Close block editor and do a rotation. The "rotation pick circle" will not stay in the center of the circle.

View 2 Replies View Related

AutoCad :: Pick Up Lots Of Nodes (to Become Editable - Red)

Apr 18, 2011

how can i pick up lots of nodes in shortest way (not to pick it one by one) to become red (editable)!?

View 9 Replies View Related

AutoCAD 2013 :: Properties Dialog Is Blank - Pick-first Is Set To 1

Jun 21, 2013

I am using autocad 2013, and My properties dialog is blank. Pick-first is set to 1. I have completely repair, registry cleaned, but now this problem is continues.

View 9 Replies View Related

AutoCAD .NET :: Offset Polyline By Pick Point On Side?

Feb 3, 2013

how to offset a opened polyline by pick point on side of opened polyline.

View 3 Replies View Related

AutoCAD 2010 :: Pick Box Turns Into Rectangle (not Square)

Dec 8, 2011

The pickbox keeps turning into a rectangle and not a perfect square.  It's width is less than its height.  This keeps happening and is annoying.  When I close AutoCAD 2012 and then reopen the drawing its a square, but soon turns into a rectangle. 

View 4 Replies View Related







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