AutoCAD .NET :: Copying Selections From One Listbox To Another

Sep 26, 2011

I have two listbox controls on my form (lstAvailableLayers and lstLayersToUse).  The lstAvailableLayers listbox gets populated by the following:
 
Public Sub MaindialogTitleText_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim myDWG As Autodesk.AutoCAD.ApplicationServices.Document Dim myDB As Autodesk.AutoCAD.DatabaseServices.Database Dim myTransMan As Autodesk.AutoCAD.DatabaseServices.TransactionManager Dim myTrans As
[code]......

There is a button that is supposed to copy the selected items from the lstAvailableLayers listbox to the lstLayersToUse listbox:

Private Sub btnMoveLayers_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMoveLayers.Click If lstAvailableLayers.SelectedIndex < 0 Then MsgBox("You must select at least one layer", MsgBoxStyle.Exclamation, "Error") Else Dim i As Integer For i = 0 To lstAvailableLayers.SelectedItems.Count - 1 lstLayersToUse.Items.Add(lstAvailableLayers.SelectedItem) Next End If End Sub 

I select 2 layers from the list and hit the button, and the first selected item gets copied twice to the second list. I've looked all over the place and I keep seeing similar code to this that's supposed to work.

View 3 Replies


ADVERTISEMENT

AutoCAD .NET :: Listbox And Reading Multiple Selections

Jun 2, 2011

I have a list box with multi select (simple) enabled. How can I "see" the text of the values the users selects (if there is more than 1)..

vb.net if you can.

View 6 Replies View Related

AutoCAD Inventor :: Create Listbox In ILogic That Allows For Multiple Selections?

Oct 3, 2013

How do I create a listbox in iLogic that allows for multiple selections?

View 3 Replies View Related

AutoCAD VB :: Populate A Listbox With Information From Entities

Nov 14, 2012

What i want to do is popluate a Listbox with with the area of previously selected Objects.This is what i have at the moment:

i = 0ListBox1.ColumnCount = 2For Each ssetOBJ In sset objarea = ssetOBJ.Area i = i + 1 With ListBox1 .AddItem .List(.ListCount - i, 0) = "Fläche" .List(.ListCount - i, 1) = objarea End With Next.

 But the code only writes the area of the last Object in the first Row of the Listbox.I think in the FOR EACH Expression the variable "i" pass always "1" for the Row Number.

View 2 Replies View Related

AutoCAD Inventor :: Insert IPart From Listbox

Jan 31, 2012

I have listbox that shows ipartname of one ipartfactory it would like and me that when selecting one of them it could send to the assembly ipart selected hear show code.

Dim InvApp As Inventor.ApplicationSet InvApp = GetObject(, "Inventor.Application") Dim IpartSeleccion As ipartMemberSet IpartSeleccion = listbox1.Value Dim oDoc As AssemblyDocumentSet oDoc = InvApp.ActiveDocument Dim oOccs As ComponentOccurrencesSet oOccs = oDoc.ComponentDefinition.Occurrences

[Code] ........

View 3 Replies View Related

AutoCAD VB :: Populate ListBox With Action Recorders

Feb 28, 2013

Is there a way to populate a ListBox with all of my Action Recorders?

View 1 Replies View Related

AutoCAD .NET :: Capture Drop Even On Drawing Area From Listbox?

May 23, 2012

I've made a simple list box with some text entries. I can drag from any node to Acad's Drawing area and drop it. And without writing any code to capture Drop event, same text is written there in Top Left corner of Drawing area.

I want to Catpure this Drop even of Acad Drawing area. I will then be able to use Jig classes to add my own entities.

I tried Application.DoDragDrop() method and invoke DragTarget.OnDrop() but confused very much

View 2 Replies View Related

AutoCAD Inventor :: Search For Suppressed Constraints And List Them In A Listbox?

Jan 16, 2013

how could I search for suppressed constraints and list them in a Listbox.

View 2 Replies View Related

Photoshop :: Filling Selections With Selections

Oct 26, 2007

I am trying to fill a selection in one picture with a selection from another picture. I am having problems scaling the selection to fit exactly. i still have an outline from the other (previous) selection.

I opened both images up side by side, Adjusted the view on both to 33%, made my first selection, hit control + c, made my selection on the other picture (Exact same shape), hit control + v + shift, then edit>transform>scale, then shift+drag.

Can't get it to line up. I also tried layering the two images then reducing the opacity of just the selection, but photoshop reduces the opacity of the entire layer instead of just the selection,

View 2 Replies View Related

Illustrator SDK :: Listbox With Customized Items?

Jun 25, 2012

I need to create a ListBox with custom items.

Each item should consist of two elements: from static text on the left and edit text item on the right.

I'm using ADM.

View 6 Replies View Related

AutoCAD .NET :: Point Monitor Only Working During Selections

Apr 28, 2011

If there is an AutoCAD setting somewhere which will restrict point monitor events to only fire off when a selection region is active?

This behavior only happens on one PC, on all the others I get point monitor event whenever I move the mouse as I'd expect to.

View 5 Replies View Related

AutoCad :: Printer / Plotter Selections Missing?

Jul 19, 2013

My printer/plotter selections are missing.

I used to be able to select 2 separate printers and a PDF'ing option but all of a sudden they are missing?

The printers are connected via a network, are visible and usable in Windows and I can print to them from other software packages (word, outlook, etc).

I was away for a week and when I came back they were missing from Autocad (2011LT version 3).

The machine is a dell Precision T5500, Intel Xeon E5507, 4 GB RAM
Windows 7 64 bit SP 1

View 9 Replies View Related

AutoCAD 2010 :: Ribbon Has Stopped Changing With Selections

Dec 7, 2012

MY ribbon has stopped changing with selections. It used to show hatch options when the hatch command was active, it no longer does this... It would also show hatch options if I selected a hatch with grips, and show other options for other entities if selected with grips, it no longer does this.

View 9 Replies View Related

AutoCAD Civil 3D :: Point Table Creation - No Valid Selections

Aug 6, 2012

I'm having issues trying to create a point table. I have used this process before with no problem but now for some reason C3D won't create the table. I get an "NO VALID SELECTION" after selecting the C3D points. Why I'm getting this error? All my points are C3D points and C3D recognizes the points while the POINT TABLE CREATION menu is still visible but once it goes to create the table i get that error message.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Check If 2 Selections Set Contain Exact Same Entities

Jul 22, 2013

I have 2 selection sets and I'm looking for a more elegant method of checking if both sets contain the exact same entities (note - the order of entities might be different).

View 9 Replies View Related

Photoshop :: Selections

Aug 19, 2008

I am operating a Dell Windows system, 2 gig's of ram and using Photoshop CS3. While using the erasure tool to convert background to checkerboard transparency so that image can be selected for transfer to another background, after saving and reopening, the background lost the checkerboard and became totally white. In this state, the image cannot be transfered. Any suggestion on how I can convert the background back to the checkerboard status to allow transfer of just the image?

View 4 Replies View Related

Photoshop :: Selections

Aug 11, 2004

when you make selections, with the lasso i imagine,
how do get it automatically close in on and hug the obgect proper?

View 5 Replies View Related

Photoshop :: Selections To Individual PNG

Aug 30, 2013

I purchased a big jpg file from an online stock image provider that has a collection of items (a collage of 200 fruits in this case). I now need to extract individual fruit images from this big collage. By using photoshop selection tools I was able to select all the individual fruits in the image and now want to create new individual png's for each of the selected fruits in the image.  Is it possible to automatically create a layer for each of the individual selections so that I can use Script -> Export Layers To Files .I have been looking for a solution online but to no avail.

View 5 Replies View Related

Photoshop :: Subtract Two Selections?

Mar 13, 2013

I have the selection saved, I want to load another selection within while subtracting ? I tried the boolean methods, I searched the manuals, even AdobeTV for an answer, I know it can be done, I'm having a brain fart

View 3 Replies View Related

Photoshop :: Loading Selections

Aug 3, 2009

I've been developing a script that uses 2 selections saved in a PSD file and have created various files with the selections saved while testing things. I would select an area in a tif, choose Save Selection from the Select menu and the dialog that displays allows me to name the selection into a new document. Select an area in a 2nd document, do the same thing and the dialog defaults to the same file into which the previous selection was saved. Worked great, many times. Earlier, however, I was all of sudden unable to save the two selections into the same document. When I created the two selections in separate documents and dragged a channel from one document to the other (to create the 1 doc with the 2 selections) Photoshop would then not allow me to load selections at ALL. Now, everything seems to be working as it should! I don't THINK I've changed anything and some of the files I used unsuccessfully earlier just worked! 

View 4 Replies View Related

Photoshop :: Can't Save Any More Selections!

Nov 17, 2004

I have been working on a piece of work in photoshop which requires me to make numerous selections and save them. So far I have made 20, and it will not let me save any more unless I overwrite old ones. Is their a way of increasing the amount of selections that can be made, or a way of deleting the uneeded ones.

View 1 Replies View Related

Photoshop :: Enlarging Selections...?

Oct 27, 2002

I've got a pic of...say...my son. I place a pic of a transparent CD on a layer on top of the son. I select the cd (that is a circle selection...) and I now want to sort of magnify what shows of my son within that selection...

View 3 Replies View Related

Photoshop :: Selections And Pen Tool

Feb 4, 2009

I have been trying to figure out a way to add to a selection. What I mean is I draw a path with the pen and then save that and turn it into a selection and save that too. The problem is when I want to change the path of the selection using the pen tool it just gives me this funky path after the selection is made. When working on multible layers I need to use the same selection and due to the complexity of the object and impractibility of re-doing the whole selection again with the pen tool without the part of the layer that I don't want.

Would it be better to bring up the saved path, delete or move a few anchor points and resave the path? The problem with this is I believe it will discard the old path that I made first and I can't have that.

View 8 Replies View Related

Photoshop :: Splitting Selections

Apr 6, 2007

I have a selection and want to split it into 3 equal parts is there a photoshop technique I can use to do it automatically?

View 1 Replies View Related

Photoshop :: My Selections Are Feathered?

Nov 16, 2007

I am using CS3. when I am in a document (new or opened) I will make a selection and fill it. Even though I have 0 px for the Selection tool and 0.2 under Select/Modify/Feather, when I fill it it is feathered, quite a bit I might add. However, if I select the brush tool, make a few strokes with a hard brush somewhere, then make another selection and fill it, it's no longer feathered.

View 1 Replies View Related

Photoshop :: Can Only Erase In Selections

Jul 3, 2009

I just installed CS2, and I can only use the eraser tool to erase if what I'm erasing is inside a selection. Otherwise I click and try to erase but nothing erases. Even when I drop selection (ctrl D) and there is NO selection, I still can not erase. I have to select all (ctrl a) in order to erase anything in the workspace.

View 4 Replies View Related

Photoshop :: Images And Selections

Feb 10, 2005

(i have v7). i created a rounded rectangle, and i'm wondering how to drag an image into it without the image spilling over the edges of the rectangle.

View 5 Replies View Related

Photoshop :: Selections Not Cutting

Sep 6, 2007

The right-click -- Layer via cut/ option isn't selectable(grayed out) whenever I make selections...

View 1 Replies View Related

Photoshop :: Selections And Feathering

Jul 10, 2008

I have Photoshop CS3 and am having trouble with selections.

Let's say I just created a new blank document at 1024x768 pixels. I create a new layer and make a new randomly sized selection with the Rectangular Marquee tool. I fill that selection with black and now have a simple black box on a simple white background.

I press Ctrl-T for the Transform tool and in the Width box on the toolbar I type 800px and press enter. Now I expect my black box to be 800px wide. But when I select it and click the Info tool I see that my box is in fact 799px wide. Sometimes I try to change it to 800px again and when I look at the info tool the box is now 801px! Why is this?

Second question.. when I fill a selection using alt-backspace I notice that the edges are feathered even though I have feathering set to 0. If I alt-backspace several more times I get a solid fill, but I'd like to only have to do it once. Where is this setting?

View 1 Replies View Related

AutoCAD VB :: Copying From One File To Another

Jul 23, 2013

I have the following code that lets me copy a selection and paste it to another area a given distance away.  I now need to paste it into another file but have had no success after searching for help online.

Dim SP1sel1(0 To 2) As Double
          Dim SP1sel2(0 To 2) As Double
          Dim SP1copy1(0 To 2) As Double
          Dim SP1copy2(0 To 2) As Double
          Dim objSS As AcadSelectionSet
          'Dim str0pt As String
          'Dim lngMode As Long
[code]...

View 4 Replies View Related

AutoCad :: Copying To Word

Nov 1, 2012

I have a drawing with a table on it that I need other people to be able to fill in. As they don't have access to AutoCAD I thought the best way would be to copy it into word and add the table in there. My problem is I can only get the contents of a viewport to copy if the visual style is set to 2d wireframe using the COPYLINK command. I need to use conceptual and a custom visual style. WMFOUT, JPGOUT and BMPOUT are the same as well. PDFs export ok but I'm having trouble copying to word through that.

View 7 Replies View Related







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