AutoCAD .NET :: Selecting Tables In A Drawing?

Oct 29, 2011

I have a need to delete all the tables in my drawing.

I started with the SS14 code from Jerry Winters VB.NET progamming and modified it to select tables.  Unfortunately, when trying to select a table, the code does not work.   I tried it with Polylines, block references, Mtext and it worked OK with all of them.  See the code below:

<CommandMethod("SS14")> _ Public Sub SS14() Dim myDB As DatabaseServices.Database Dim myDWG As ApplicationServices.Document Dim myEd As EditorInput.Editor Dim myPSR As EditorInput.PromptSelectionResult Dim mySS As EditorInput.SelectionSet Dim myFilter(0) As DatabaseServices.TypedValue myFilter(0) = New DatabaseServices.TypedValue(DatabaseServices.DxfCode.Start, "INSERT") myFilter(0) = New DatabaseServices.TypedValue(DatabaseServices.DxfCode.Start, "TABLE") ' myFilter(0) = New DatabaseServices.TypedValue(DatabaseServices.DxfCode.Start, "POLYLINE") ' myFilter(0) = New DatabaseServices.TypedValue(DatabaseServices.DxfCode.Start, "MTEXT")
'''' Chenge items commented out above for testing.
 Dim mySF As New EditorInput.SelectionFilter(myFilter) myDWG = ApplicationServices.Application.DocumentManager.MdiActiveDocument myDB = myDWG.Database myEd = myDWG.Editor myPSR = myEd.SelectAll(mySF) Try mySS = myPSR.Value If Not IsNothing(mySS) Then MsgBox(mySS.Count) End If Catch ex As SystemException MsgBox(Err.Description) End Try End Sub

What am I doing wrong?  Or is there a bug when selecting "Tables" as distinct from other entities?

View 1 Replies


ADVERTISEMENT

AutoCAD Inventor :: 12 - Multiple Hole Tables In Drawing

Jul 17, 2012

I put in 3 seperate hole tables in a drawing, labeld one counter bore holes, one dowel hles and one jack screws.  used the selection hole method and all the tags were the same starting with A1 ...

Any way to control multiple hole tables so they use different tag numbers

View 3 Replies View Related

AutoCad :: Access To Move Tables And Chairs Around A Drawing

May 30, 2012

I am working in an events organisation that uses AutoCAD to do room drawings for clients. the Event managers are new to CAD and only need to have access to move tables and chairs around a drawing. So we have set them up with pallets.

I have created a profile with the workspace they need on the network, I having trouble getting the customised profile to come up as the default, instead the Vanilla profile comes up and I have to go into options to change the profile to the Company one.

Where do I need to change it so that it chooses the profile I have made first? or should I be doing this a different way?

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Search Database / Tables To Determine If New Layers Present In Drawing

Dec 6, 2013

Is there a way to search the database/tables/whatever to determine if new layers are present in a drawing?

I want to run a script to reconcile new layers in the sheet drawings after having cleaned the xref drawings, and the script bombs if there are no new layers present in the parent drawing.

If I could determine what triggers the layereval/layernotify sequence (tblsearch?) I could include an if or while lisp routine that would invoke the layer command and then reconcile the new layers.

View 9 Replies View Related

Illustrator :: Drawing Tables In 2 Points Perspective?

Aug 20, 2013

Any good tutorial for drawing tables in 2 points perspective?

View 6 Replies View Related

AutoCAD .NET :: Selecting All Objects In Drawing

Sep 7, 2011

I want to select all the objects in the drawing and then based on the linetype it should be moved to a specific layer.

I can do this per type (circle, line, etc) but that will be a hell of a job and a lot of code. In Vba I check inside the selection on linetype and then change it to the correct layer. But in .NET i don't figured out a way how to do it.

View 1 Replies View Related

AutoCad :: Rotating Drawing Without Selecting Objects?

Feb 2, 2012

is there a way to rotate my whole drawing without actually selecting the objects in it. ? i.e to say, the drawing rotates itself according to my viewpoint [my eyes] and i dont have to rotate my neck to view the tilted objects in drawing.

View 6 Replies View Related

AutoCAD .NET :: Get Blockname Inserted Before Selecting Point On Drawing?

Mar 21, 2013

I select one block to insert . However,how can I get the Blockname before select the insered point?

I found the BlockTableRecord.BlockInsertionPoints event. It is meaning that  it can only apply to the whole BlockTableRecord type rather than some individual block references (AutoCAD INSERTs)

View 9 Replies View Related

AutoCAD Inventor :: Selecting Point2D With Your Mouse On Drawing Sheet

Dec 18, 2012

How can I define a Point2D with my mouse by clicking on an random place in a drawingsheet?

I have made the code below that creates a DetailDrawingView automatic. I am now searching a method to select the oPoint & oCenterPoint with my mouse. Both are defined as Poin2D.

I find a lot a method's where you can manipulate the Point2D using maths but I never found a method where you can get the Point2D by just clicking somewhere on the sheet (drawingview).
 
Sub AutoDetailedView()' Set a reference to the drawing document. ' This assumes a drawing document is active. Dim oDrawDoc As DrawingDocument Set oDrawDoc = ThisApplication.ActiveDocument 'Set a reference to the active sheet. Dim oSheet As Sheet Set oSheet = oDrawDoc.ActiveSheet ' Manually select a drawing view Dim oDrawingView As DrawingView
[Code] ........

View 7 Replies View Related

AutoCAD Inventor :: Selecting Sheet Size When Starting A New Drawing

Sep 11, 2013

I'm trying to set up a company drawing sheet that requires the designer to select the sheet size before starting the drawing.  Based on the drawing sheet size (A0, A1, A2, A3 & A4 all in landscape) the relevant company Title block will attach to the bottom right of the drawing border.  I've manage to create the relevant forms for parts, sheet metal and assemblies. 

View 8 Replies View Related

AutoCad :: Selecting Individual Hatched Area (not Every Other Hatch On Drawing)

Jan 12, 2012

Basically for example (to make this easy to understand) I've got 4 squares with hatches inside and im trying to select one single hatched area in one of the squares (and delete it). But upon selecting it it's selecting the hatches in the other 3 squares (as they were added at the same time). I've carried out a few searches in google etc and experimented with "pickstyle" but with no avail, also I've looked at groups but there are none in the drawing(so I can't ungroup).

I can do it (which I've just realised) by deselecting the boundaries in "edit hatch" but just wondered if there was a quicker way?

View 3 Replies View Related

AutoCAD Inventor :: OnSelect Event When Selecting Component In Drawing View

Sep 24, 2012

Im trying to catch the event when the user selects a component in a drawing view using

CommandManager.UserInputEvents.OnContextMenu += UserInputEvents_OnContextMenu;

But it seems that the onselect event only catches selection of drawing views or balloon, annotation etc, but not the component inside the drawing view is this intentional or a bug?

The reason i need to catch this is to make a new context menu action, so i need the selected item. I know i can use SelectionSet, but i want to be able to debug my application as an external application connecting to the running instance before i build it into an addin (saves me a lot of inventor restarts..) And Selection Set does not seem to work when i use it inside an event handler in an external application... 

View 3 Replies View Related

GIMP :: Graphire 4 Drawing Or Selecting / Cropping On Canvas

Nov 13, 2011

Im having some problems with GIMP and my graphire4 tablet. Im not using the pen, only the mouse in gimp. Using Windows Vista and a Wacom Graphire4 tablet. When drawing, the pointer is offset from where I am actually pointing my mouse. This only happens while drawing or selecting/cropping on the canvas. All the menus work fine, and the mouse works perfectly in other graphic programs and windows.

View 1 Replies View Related

GIMP :: Selecting Only Pencil Lines In Scanned Drawing?

Aug 18, 2013

I'm trying to select the pencil lines only from a scanned drawing and lose the white back ground so I can set the drawing only onto other layers. How would I go about doing this?

View 4 Replies View Related

AutoCad :: Delay In Selecting Object And Selecting Command?

Sep 25, 2008

I am having a problem with a delay in selecting an object and selecting a command.

When I select an object the pointer has at least a 3 second delay before it starts moving around normally again. It is the same with selecting a command. This has started to get tedious. It has worked fine in the past so I don't think it is a RAM/graphics card problem.

View 5 Replies View Related

AutoCad :: Map All Electrical Drawings To Printer Without Opening Each Drawing And Selecting New Printer?

May 2, 2013

I'm currently using AutoCad Electrical 2010 and we just got a new printer. Is there any way to map all of my electrical drawngs to that printer without opening each drawing and selecting the new printer?

View 7 Replies View Related

AutoCAD 2010 :: Drawing 1 Does Not Allow To Close Without Selecting Save Or Don't Save

May 15, 2013

I used to be able to open a drawing then close it right away, if it was not the drawing I was looking for, as long as I didn't pan, zoom, or do anything else.  Almost a year ago I had a pop-up with-in AutoCAD that they reccommend I make this selection.  I can't remember what it said really, it was something about a script or lisp loading at each drawing opening.  Well, the result is the 'Drawing 1' does not disappear when I open another drawing and I would like that to stop.  Also as I said it does it to every drawing.  how to stop this?  I tried the 'startup' command and that is not it.  It is not a big thing just something I think is a waste of my time having to close that drawing each time I open AutoCAD.  Not sure it matters but I am using AutoCAD 2012

View 7 Replies View Related

AutoCAD Inventor :: Mouse Selecting / Not Selecting?

May 15, 2012

OK, today, or actually just this afternoon I've noticed it has become much harder to select items with the mouse.

Points, nodes, etc...anything where you'd typically hover the mouse over the item and it highlights for you to select it.

For example, lets say you want to project a point from another sketch, or select the center node of a line, etc.

Never really had an issue until this afternoon where now it seems I have to be right on top of the item and I cannot budge one bit or it won't select it. It is now taking me numerous attempts to select things like points (zooming in does not work, points scale accordingly).

Is there a setting somewhere? I can't seem to find such under Tools>Application Options and the like.

View 8 Replies View Related

AutoCAD Map 3D :: Spatial Join Between Two Tables

Jan 6, 2012

I have 2 SHP files, one with lot information, the other with OCP. I created a join between the two tables but the resulting data was not spatially related. The objective is to show the land use of each lot.

View 6 Replies View Related

AutoCAD Map 3D :: Domain Tables In Properties?

Dec 4, 2012

In map3d i would like to add tables to objects such gas, sewer lines and so forth. I would like to specify which lines are composed of certain metals, their conduit size and year built.

I was wondering if it is possible to create a table similar to the one attached. I would like the table to have a domain drop down list, so that users can select from predefined entries, to avoid human error typos and keep good organization in the data entry.

Is this possible with map3d?

View 6 Replies View Related

AutoCAD LT :: Linking Excel And Tables

Aug 1, 2012

Well I had a day and a half trying to figure out how to bring Excel data into LT.  Again. Here is what I have found out:

Running Excel 2010 I have a xls files (of type '97-2003 xls - file includes VBA).  The file spits out a ton of data that I want to put in a schedule in AutoCAD.  The schedule format needs to match our standard format  -  RomanS in white and blue.

If I copy and paste as a link the font remains stuck as Arial (regardless of source font) and can't be relaxed unless you go one cell at a time in the text editor.  Also the resultant table size is tiny -   

If I save the file to .XLSM (macro enabled '10 excel file) the results are the same.  If I save the file to .XLSX ('10 excel file and ditch the VBA project) the results are sublime - the font is ok and I can go back and forth from AutoCAD to my now broken spreadsheet because VBA IS MISSING!   The resultant table size is tiny but I can deal. I don't see how AutoCAD can work with xlsx but not xlsm.   

I also found that if I save the sheet (values only) as a .csv file I can use that to create a table from file without font overrides screwing everything up.   

I'm running AutoCAD LT 32bit on a Win7 32bit OS.  My Office version is 2010.  I would like to link data to a '97-'03 version of an xls or an xlsm without having the font overridden to Arial.  

View 1 Replies View Related

AutoCAD Inventor :: How To Copy Tables

Apr 21, 2010

Is there anyway to copy a table from one sheet to another?

View 8 Replies View Related

AutoCad :: How To Insert Tables From Excel

Sep 17, 2012

I am trying to insert tables into AutoCad from excel the problem that I have is with the text style.

Every time I copy and paste as a linked AutoCad entity the text does not come across as the correct text style - for example if I want the table text to come out as ISOCP it comes across in a bolder text, requiring me to enter in the cell and select ISOCP I don't have to highlight the text in the cell i only have to enter inside the cell.

See the attached video.

View 3 Replies View Related

AutoCAD .NET :: Accessing Database Tables

Sep 21, 2011

I'm having a problem accessing data manager tables in the 2011 version.  My C# .NET code worked fine with 2010.  Here is a sample of the 2010 code that works, but returns zero length tables in 2011.

C#

ProjectPartCollection oPP = PlantApplication.CurrentProject.ProjectParts;
PlantProject oPProj = PlantApplication.CurrentProject;
Project oProj = oPP["PnId"];
try
{
//get ACAD data table
[code].......               

The last two lines fail to object any meaningful data in 2011.  In 2010, I would have all the table rows and could access tags and asset information. 

View 2 Replies View Related

AutoCad :: Updating Text From Tables?

Oct 22, 2012

Long ago, everything was done in Imperial and now we are converting to Metric, the issue is that the drawings we have no schedule of members and we (a colleague and I) are constantly discovering new members, this is causing no end of trouble with our numbering system.

What we would like to do is set up a master-table with 5 categories (UB, UC, PFC, EA and UA) and then have the labels for all the members dependent on this table. If we were to change the value in the table, the label would automatically update. Is this at all possible? I looked into the Xref and RText commands and they seem close but not quite there. Ideally the table would be in a separate dwg so we can work on drawings at the same time.

View 3 Replies View Related

AutoCad 2D :: Tables Embedded In MText?

Nov 20, 2013

Can you embed a table in Mtext? So when you edit the text the tables move with the text if you're taking out paragraphs in Specs and stuff.

View 2 Replies View Related

AutoCad 2D :: Fields And Tables Over Excel?

Jan 28, 2014

I'm trying to do a spreadsheet inside a drawing. Trying to use fields because I believe they behave better with feet and inches than excel (without jumping through hoops)

View 1 Replies View Related

AutoCad :: DXF Files For CNC Driven Tables?

Jul 17, 2013

I have used DXF files in the past for flat non-complicated cnc machining. I have a situation were we manufacture pipe and I would like to create the pipe in 3 dimensionally in AutoCAD and convert the dwg file to a dxf file for the steel cutting table. Will the DXF conversion convert the round cyclinder in CAD to a flat suface for cutting?

View 1 Replies View Related

AutoCad :: Hide For Plotting Not Using Pen Tables

Feb 14, 2011

I am experiencing a problem with plotting a 3-D object correctly! Using AutoCAD 2011, I created a 3-D object, inserted it into our "carrier sheet" model space, then gave it a view port - looks great on the screen! When it plotted out it was really light - it was the only thing on the sheet that was wrong. I messed around a little and found that it has something to do with the plot option of "3-D hidden" & "hidden". When using "legacy hidden" it plots out at the correct line weights, however, the arrows are all "open" - the arrows are filled when using the other options. I went back into the 3-D object dwg file and tried plotting it straight from the source file - I get the same results. We use color to determine the plotted line thickness and these schemes are set correctly, etc.

I have tried to look for a setting that would force the plot styles .

View 2 Replies View Related

AutoCad :: Different Layers For Text In Tables?

Jan 6, 2014

We are moving to a new drafting standard which uses .STB plots rather than .CTB. I'm wondering if there is any way of changing the layer of the text within the cells. I want the title to be at a certain thickness, the headers to be a different thickness, and the data to be a different thickness again when plotting. This is easy to do when using .CTB plot styles, but is there a way to do it when using .STB?

View 2 Replies View Related

AutoCad :: Data Extraction Tables

Sep 18, 2013

Here at the office we use a template I created using Data Extraction. After creating the table and inserting it, it works just fine. Then, if you make changes to the door or window you can click the "Download Changes From Source File" and it will update the table ... However, after saving it and trying to work on it the next day, it somehow unlinks the table I have in my drawing and I cannot "Download Changes From Source File" to update the table ... I checked under XREF and it shows it is loaded and I have it reading from the same path I saved it. I would like to know if there is a way to re-link the table to the .dxe file or how to prevent from it un-linking new tables?

View 0 Replies View Related







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