AutoCAD .NET :: Best Way For Get Selection Of User

Jun 15, 2012

i want to launche my DLL but i want to add a parameter with it.

example : >GC A

I know when autocad see a space it transform the pace in a Enter..My DLL can manage 8 collections    so i want the user select on the command the number before launch my dll and i want to select the operation  (ex : add, del etc..) I have created 2 commands  GSC for launch the config and GSG for the management..The two command launch the same DLL but how to add parameter ?

View 5 Replies


ADVERTISEMENT

AutoCAD Map 3D :: Get Color Picker To Popup Inline In Code To Get User Selection?

May 27, 2011

I am porting some VBA to VB.Net.

Several of the modules do a ThisDrawing.SendCommand("_color" & vbCR) to popup the AutoCAD color picker, then process the response by doing a ThisDrawing.GetVariable("CECOLOR") to get the selected color.

With .Net, the SendCommand does not execute until the .Net program ends.

How can I get the AutoCAD color picker to popup inline in my code so I can get the user's selection?

View 2 Replies View Related

AutoCAD Inventor :: Getting User Selection Within Part Edit Mode In Assembly File

Feb 24, 2013

I'm working on Autodesk VBA, and I'm trying to get user input on which vertex to use for a constrain. I want to make a macro that can go into part edit, allow user to select a vertex, and then automatically set up the constraint. Initially I wanted to do this in a single macro, using this short piece of code

while oSelectSet.Count <>1
DoEvents
Wend

While this worked when run directly from VBA, if I call it as a macro in Autodesk itself, the DoEvents doesn't seem o work because I wasn't able to make any selection at all. I googled and it seems like this is just how macros are.

So I split the code into a 2 subs and a function (as attached), and put them into separates rules that I call using a form in Autodesk. The first sub "Meta1Pin1_1" works, then I would select a vertex in edit mode. But when I go ahead and call the second sub "Meta1Pin1_2", I get the error message that I created which says no vertex is selected. But if I select a vertex and call the second sub again, it will work.

So I've been trying different things and I realize that every time when I first call the second sub, my selection is erased teh moment it goes into the sub. But, for some unknown reason, the selection will remain when I call it the second time. I can't figure out what exactly happened between the first and second call of the same sub, that allowed the selection to remain.  

' prepares assembly for user input by grounding bones and going into part edit
Public Sub Meta1Pin1_1()
Dim oDoc As AssemblyDocument

[Code]....

View 2 Replies View Related

AutoCAD Inventor :: Transition From Single User / Desktop Content To Two User / Vault?

May 7, 2013

After getting Vault installed on our server and successfully setting up users and connections, I used the Library Transfer Guide to move our Content Center (including custom) to the Vault. I then changed the Inventor Application Options -> Content Center -> Access Options to Autodesk Vault Server.

This seems to have worked, as I can Place from Content Center when in an assembly, and it is pulling standard content as well as our custom files properly from the vault.  However, in the instructions that I used for the installlation, it was suggested to stick with a standard folder structure within the Vault, namely two Library Folders named 'Content Center Files' and 'Libraries' and also a regular folder named 'Designs'.

 I created those folders prior to transferring the library, as I thought they would be populated with the standard/custom content. This was not the case and I am curious when these folders come into play? *they are empty*

Also, today I will be attempting to 'Check In' a project to the Vault that I recently completed; does this usually maintain structural relationships between files?

Would you recommend using a single project structure in vault for two people? It seems, since we won't be working on the same project at the same time, having a single project would not be relavant to our situation..

Inventor 2011 / Windows 7 Pro SP1 64bit
Dell Precision T3600
Intel Xeon E5-1607 @ 3.00GHz
AMD FirePro V4900
20 GB Ram

View 7 Replies View Related

AutoCAD 2010 :: Multiple Grip Selection Not Working When Pan Or Zoom During Selection

Jul 12, 2011

When I select a hatch or polyline or any object with grips for that matter, and hold down shift to select multiple grips on the object or objects and then press my middle mouse button to pan or scroll it to zoom, the grips that I have selected de-select, meaning I have to set up the view so that all the grips I want to move are visible before selecting them.

This is only happening on some drawings (although it is most of them) and only when I use 2012 not 2011. Which system variable it is that has gone screwy that I need to reset? or is it something else?

View 9 Replies View Related

AutoCAD Inventor :: Prevent Display Of Selection Lines Upon Selection?

Mar 28, 2013

I have a flexible sub-assembly in my top assembly. Sometiems I'm trying to demonstrate to others how a mechanism in the sub-assembly works using this flexibility feature. It works great, but when I move just one little part of a flexible assembly, Inventor displays the wire-mesh of the entire flexible assembly, because technically the entire assembly is selected, even though I'm only moving one part. It clutters up the screen very badly, detracting from what I'm trying to show.

Is there a way to prevent Inventor from displaying the selection lines? Either only when I'm moving a part in a flexible assembly (which would be great), or to just turn them off completely when I'm presenting like this? I know I can turn off pre-select, but that doesn't work, because once I start moving a part in the flexible assembly, the assembly is "selected" and the wire-mesh displays.

View 3 Replies View Related

AutoCAD .NET :: Leave Elements In Selection Mode After A Selection Action?

Sep 11, 2013

When creating a selection Command using the PromptXXXOptions and PromptXXXResult. The entities are selected on the current view, but once the selection ends the entities return to an unselected state.

Is it possible to leave them in selection mode.

I want to this, because it will be better to use Editor.SelectImplied() instead of saving the last selection object Ids.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Remove A Selection Set From A Selection Set

Nov 15, 2013

I've created a lisp that draws the boltholes of a pipe flanges, using the correct number of holes, at the correct diameter at the correct bolt-hole diameter and then rotates.  Everything works seamlessly, when i do just one flange.  But I've discovered that fewuently there will be mulitple times when a user will have to perform the command.

So the idea I had was to do the following:

Select all circles with     (setq CirclesFirst (ssget "X" (list (cons 0 "CIRCLE"))))

Go through the code to create the new circles.

Select all circles with     (setq Circles (ssget "X" (list (cons 0 "CIRCLE"))))

Remove selection set "CirclesFirst" from "Circles".

But what for some reason (command "_.select" Circles "R" CirclesFirst "") does not work.

View 9 Replies View Related

Photoshop :: Why Vector Selection Tool (white Arrow) Change Layer Selection To Another

Sep 1, 2013

I have been continually annoyed, when creating a vector mask-heavy document, with trying to select vector mask points by dragging a rectangle only to find that it instead selects a layer higher up which has a larger vector mask.
 
The only workaround is to manually select the points of my mask or to drag a rectangle from outside the canvas, meaning I have to zoom out or scroll to the edge - sometimes annoying if I am zoomed in quite far.
 
I know that the move tool can be set to automatically select a layer, depending on what part of the image is clicked, but why is there not an option to turn this off for vector editing?

View 1 Replies View Related

Photoshop :: Selection / Patch - Select Blue With Quick Selection Tool?

Dec 10, 2012

If you look closely in the attached picture, there is a spot of light blue on the player's helmet, that looks like a mistake (think it should look like the grass behind it)...though it actually may be part of his helmet.
 
Regardless, I'd like to take it out. My idea was to select the blue with the quick selection tool, then bring that selection out to the grass, select the grass with that size/shape of selection, copy/paste and then bring the grass selection into the blue part so it looks like grass in what was the blue part.
 
The problem is I don't seem to be able to move the selection without taking the blue with it (so it's not an empty selection and therefore can't select a piece of the grass.)

View 2 Replies View Related

Photoshop :: Selection On Sliders And Curves Altered When Click Off Them After Initial Selection

Sep 13, 2012

I have Photoshop CS5 on a Mac OS 10.7.4 My problem is that when I am using curves or a slider, my selection does not stay in the same place. For example, I chose the number 8 on a slider, after I release my selection it will either go one number after or before my selected number. I have had this problem since I got my computer, December 2011, but it has only recently started to frustrated me because of having to use Photoshop a little more than I usually do.

View 2 Replies View Related

Photoshop :: Complex Selection - Best Selection Method To Drop Out A Background

Oct 24, 2011

how to "drop out" the background from this photo (I have loads to do which are very similar). Thus far I have tried channel selections and the calculations tool + all the normal quick selection tools and I just cant get it to work without spending hours adjusting things. The end effect I need to achieve is a perfect white background without loosing any of the detail if possible. On a side note I have also tried taking the photo on blue, green, black and white backgrounds but due to the number of colours present in the products its just not working for me.

View 5 Replies View Related

Photoshop :: Make A Selection Out Of A Text And Expand The Selection?

Sep 1, 2006

Using photoshop, how do you make a selection out of a text and expand the selection?

View 4 Replies View Related

Photoshop :: Quickmask Selection Is Turning Selection Opaque

Jul 6, 2009

I am trying to cut a person out of a picture with a deatiled background so I am using the quickmask selection and paint brush. I'm done selecting the person and have gone back into normal editing mode. I then inversed the selection created within quickmask to select everything but the person in the background. When I click delete, the background vanishes and the person become opaque.

View 3 Replies View Related

Photoshop :: Feathering A Selection Outwards After Making A Selection

Dec 26, 2003

If I have mad a selection with say an ellipse marque, of say 100px and now I want to fether that same selection outwards, ie to start the feather 10 px outward of the 100px selection so that the 100th px has a 100% transparency and the 110th px has a transparency of zero,thus making the new selection 110px, how could I go about doing it. With the current feathering of the selection, it feathers only in the marquee already selected, not outward, and you cannot place negative feathering px. I know that there is most likely some sort of a ration where you would expand the selection by a certain amount of px, and then apply a ratio of feathering to it to enalble it to feather outside of the 100px marquee.

View 3 Replies View Related

GIMP :: Selection Handles On Non-freshly Created Selection

Mar 1, 2013

Right after one makes a selection, say by using the Rectangle SelectTool, is presented with handles that allow altering the selection.

If one then selects another tool without deselecting is being deprivedof these handles while the selection remains active thus rendering himunable to alter the selection in that fashion.

Thus forming my question: is there a way to make these handles to(re-)appear on a non-freshly created selection?

View 3 Replies View Related

Revit :: How To Use Shift To Add To A Selection And Control To Subtract From A Selection

Apr 18, 2012

I am using Revit Arch 2011 and it is more natural for me to use shift to add to a selection and control to subtract from a selection. Can this be changed and how?

View 1 Replies View Related

Photoshop :: Pasted Selection In CS6 Using Marquee Selection?

Aug 18, 2012

When I pasted a selection made with the Marquee tool there is a transform grid around the pasted selection.  I use a MAC and Photoshop CS6 and would like to deactive a feature for this automatic grid, if there is one. 

View 3 Replies View Related

Xara :: Width Of Selection Box In Selection Toolbar

Feb 27, 2013

The Width of Selection box in the Selection Tool Inof Bar does not seem to add in the width of any line thickness. If I make a rectangle that is 500 x 250, the box correctly reflects the size. If I change line width to 16, the box still shows 500 x 250. It is a problem upon export when the exported file does include the line widths, in this case it adds a total of 16 pix (8 each side) with a resultant export not equal to the displayed width. WordPress seems dogmatic about certain widths an exact width is useful.

I suppose I can add the labor of calculating line widths to meet exact export dimensions but I do not remember doing this in previous editions. I'm thinking there is a buried setting that I have changed. Is there such a setting to account for the discrepancy?

View 4 Replies View Related

GIMP :: How To Blend Selection Edges Of A Selection

Jan 13, 2013

I know how to blend selection edges of a selection in Gimp 2.8.2, but if I have only one side of a selection that needs blending, what should I do?

Lets say that I have a grey box on a black background and only want to blend the left vertical edge into the background.

View 3 Replies View Related

GIMP :: First Selection Disappear While Making Second Selection

Nov 21, 2013

Every time I make the second selection in a picture with the lazo the first selection disappear. what can I do to fix it?

View 8 Replies View Related

AutoCAD Inventor :: Getting User Name In VBA Script

May 9, 2012

I'm trying to make a VBA macro which would use the user name set in Inventor. I haven't been able to find anything on how to get that username. I would think it would be easily accessible, since it's commonly used to fill in i properties.

Here is it's location in the options.

Options - General tab - User name: (top right)

View 2 Replies View Related

AutoCAD LT :: Plots Not Matching CTB For One User

May 23, 2012

We have two drafting assistants using LT 2010, with Windows XP.  One is assigned to do record plotting, and uses our company standard .ctb file without any problems.

The second LT 2010 user has now been assigned to assist with record plotting.  However, lineweights are plotting out about half the width of the specified .ctb file.  We have double-checked all the ACAD LT & Windows plot settings, and they are identical for both drafting assistants.

Is there a system variable or other setting that I am missing?

Inventor RS 2011
AutoCAD Mechanical 2011
ASD 2013
Vault Collaboration 2011
Windows 7 Pro

View 3 Replies View Related

AutoCAD LT :: Change In User Interface

Oct 6, 2011

My preferred method of utilizing commands such as move, copy group etc. is to select the entities to be moved, copied or grouped then select the appropriate tool and proceed.  Recently my computer has decided it wants me to select the appropriate tool prior to selecting the entities to be manipulated. I can not figure out how to get this program to return to the method I am most accustomed to??

View 1 Replies View Related

AutoCAD Inventor :: User Interaction In VBA?

Jan 26, 2013

I have an assembly file with parts assembled, and I want the user to move and position the assembled part into a position as they desire, and then run VBA to extract coordinates information to do further calculation. 

So, what I want to do is creat a VBA code that does the following in sequence

1. VBA runs code to assemble the parts (I can do this)

2. go to the autodesk interface and allow user to manipulate the part

3. when user presses a key (e.g. "enter", "space"), the control returns to VBA

4. VBA run some code to extract the coordinates and do some calculations (I can do this too)

there is something like an input box that waits for the user to click ok, before continuing to run the rest of the coding. But I realise that the input boxes and message boxes do not allow users to work on the model in the background. Since I need users to move/rotate the part to the desired position, I can't simply use input and message boxes. 

View 4 Replies View Related

AutoCAD .NET :: Know A Block Is Mirrored By User?

Jun 17, 2011

User insert a block . then rotate it (Say 45 degress) . then mirror it.

Now My program read that block properties ( Rotation ) and try to replace that with another  block .

But becuase the original one is mirrored. you know what happens !.

So I have to know whether the original block is mirrored or not. Then if yes I mirror the inserted one by program as well

View 2 Replies View Related

AutoCAD VB :: Open User Defined CHM Using F1

Feb 2, 2006

The act of opening the CHM file is no problem from VBA. However, this particular routine does not use a dialog box, only a "select objects" prompt. I want to allow the user to press "F1" or "'HELP" at this point and have it open my CHM file.

In lisp, you can use (setfunhelp) to do this.

So in theory, if the VBA sub is called like this:

(defun c:foo ()(vl-vbaload "c:/program files/
directory>/sample/vba/drawline.dvb"))

...then the lisp function should work, but it doesn't. Pressing "F1" or "'HELP" during the vba routine, simply opens the AutoCAD HELP to the default page.

View 9 Replies View Related

AutoCAD .NET :: Allow User To Select Red Line

Dec 29, 2013

Closet point? No

Intersection point? No...

This point is a special point, just corner of the PolyLine.I plan to only allow the user to select the red line, then the program loops through all polylines near the red line, and then find that point

View 7 Replies View Related

AutoCAD .NET :: Retrieve Attributes Without User Input

Sep 14, 2012

I develop addins for Inventor primarily, so the AutoCAD api is very new to me.  I'm working in AutoCAD 2010 and visual studio 2012.

I've looked at many posts for getting block attributes, but they either seem to assume I already have the Blockreference, or they give a prompt to the user.  I'm hoping to avoid both of those.

I know the info I need is inside of a blockTable by the name of "DET".
 
Database acCurDb = openDoc.Database;using (Transaction acTrans = CurDb.TransactionManager.StartTransaction()) { //How can I access the blockreference in here which corresponds to the blockTable "DET"? }

Win7 x64 - 16gb ram
i7 3610qm
FirePro M4000
Inventor 2013
ETO 6.1

View 4 Replies View Related

AutoCAD .NET :: Open Application But Invisible To User?

Oct 7, 2011

I would like to open the autocad leaving invisible to the User.

I did it:

acadApplication = new ACAD.AcadApplication();
acadApplication.Visible = false;

But it did not work!

View 2 Replies View Related

AutoCAD Inventor :: How To Copy User Parameters

Apr 23, 2012

I need to copy about 15 user parameters from 1 part to about 300 others.  I used the DA to copy the iproperties but the user parameters are also needed. 

View 2 Replies View Related







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