AutoCAD .NET :: How To Insert Table By Choosing Bottom-right Corner
Jul 6, 2011
I have to make it possible to insert table by choosing any of it's corners. I cannot get it to work with choosing bottom corners - I can't get the exact height of the table.
The sample code of the one-row table is:
acApp.Document doc = acApp.Application.DocumentManager.MdiActiveDocument;Editor ed = doc.Editor;Transaction tr = ed.Document.Database.TransactionManager.StartTransaction();try{ BlockTable bt = (BlockTable)tr.GetObject(doc.Database.BlockTableId, OpenMode.ForRead); Table tb = new Table(); tb.InsertColumns(0, 24, 1); tb.SetRowHeight(4); tb.Columns[0].Width = 24; tb.Columns[1].Width = 24; tb.Cells[0, 0].TextHeight = 2; tb.Cells[0, 0].TextString = "some text"; tb.Cells[0, 0].Alignment = CellAlignment.MiddleRight; tb.Cells[0, 1].TextHeight = 2; tb.Cells[0, 1].TextString = other_text_from_variable; tb.Cells[0, 1].Alignment = CellAlignment.MiddleCenter; tb.HorizontalCellMargin = 0; tb.VerticalCellMargin = 0; tb.GenerateLayout(); tb.Position = // exactly... what should I do here? BlockTableRecord btr = (BlockTableRecord)tr.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite); btr.AppendEntity(tb); tr.AddNewlyCreatedDBObject(tb, true); tr.Commit();}catch (Autodesk.AutoCAD.Runtime.Exception ex){ ed.WriteMessage("
ERR: " + ex.Message);}finally{ tr.Dispose();}
Now... I'm trying to make 1-row table width the height 4. I should set tb.Position by just subtracting 4 from the Y-value of the clicked point... NOT.
tb.Height gives me 4. But I get the table with height 5.667. And I can't just use that value for subtracting, because even then, bottom-right corner is about 0.2 above or below clicked point... (X-value is correct and equals the clicked point's X-value.)
The same thing happens when I insert a table with the number of rows depending on the number of the records selected from DB. The same thing happens, when I use obsolete .NumRows and .NumColumns. What am I missing?
View 1 Replies
ADVERTISEMENT
Dec 17, 2013
Normally, when you select an object or a group of objects and you go to copy it/them with Ctrl+V (NOT Ctrl+Shift+V), AutoCAN'T will use the bottom left extents of the object(s) as the base point for what you are pasting. For whatever reason, when I select+copy+paste an object, the base point/origin/whatever you want to call it, is way off and not even near any of the objects.
How can I reset this?
View 3 Replies
View Related
Feb 2, 2009
Trying to draw a titleblock for a college assignment and its supposed to start at 5,5 but that is in the middle of the paper (A3 setup). 0,0 is somewhere in the middle too - how do i get 0,0 to be the bottom left corner of the paper in paperspace??
View 9 Replies
View Related
Nov 21, 2013
Is there a way for the elevation of surface to be shown in the bottom left corner along with the easting and northing as the cursor tracks over the surface? currently only the easting and northing track with the cursor the elevation remains 0.00
View 4 Replies
View Related
Jun 9, 2011
I lost the text window that is normally docked on the bottom of the AC screen. I searched and found that F2 brings it up, but I can't find how to have it permanently docked in the bottom left hand corner, where it normally resides. I'm using AutoCad 2002.
View 5 Replies
View Related
Jul 10, 2013
I have blocks forming a column, and I need to allow the user to select the top block of the column but return the bottom left corner of bounding box of the bottom block in the column.
(DEFUN NXT-INSPNT (/ BLKLST CURENT CUROBJ IDX IPNT MCMD NENT SEL SS VENT) (PROMPT "
>> Pick the Category HEADER to add note:") (SETQss nilss (SSGET ":E:S" (LIST (CONS 0 "INSERT"))) )
(IF ss (PROGN (SETQ sel (ENTGET (SSNAME ss 0)) iPnt (CDR (ASSOC 10 sel)) )
(princ iPNT) (setvar "attreq" 0) (VL-CMDF "-INSERT" "LEG-NOTE" "S" 1 iPnt 0 PAUSE)
[Code] ....
I'm not exactly sure where my code is failing but I get the following error.
error: AutoCAD.Application: Null extents
View 3 Replies
View Related
Mar 4, 2012
I'm running PS CS3 on Mac iBook with 10.5.8
I've been using this setup for years & have always been able to drag out the right bottom corner to increase the grey space round an image so i can transform better or what ever. But now when I try to drag out that corner the image window flinches slightly & a line appears around the image which disapears when I let go.Also when I try to expand the layers palette down by dragging it's lower right cornes so I can see more layers nothing happens, there is no stripey corner marks on that corner & when i try click & try to drag nothing happens.
View 5 Replies
View Related
Jan 5, 2013
I need to remove the person at a bottom right corner of the picture. Need replacing him with a floor and walls.
View 9 Replies
View Related
Jun 13, 2012
Yesterday, I went into my presets folder because I was searching for a particular brush, and I noticed a little grey overlay icon with a white line in a 45 degree angle. The little icons sit on top of the presets icons, and they are located to the bottom left hand corner. I tried to search what that means, with no luck. Just in case, I even checked everything with my antivirus, but it doesn't seem to be a virus. What is that? (I'm running Adobe CS6, in a Windows 7 Ultimate, 64 bit pc)
View 8 Replies
View Related
Sep 7, 2012
My work bought me a huge new Thunderbolt monitor yesterday, so I took advantage of the real estate and expanded my Layers palette to be very tall, and along with several other adjustments, saved this out as a custom workspace. Today though I am working only on a laptop offsite with no Thunderbolt and the bottom of the Layers palette is offscreen where I can't get to it. I know if I change workspaces to one of the Adobe presets it will give me a standard size Layers palette, but if possible I would like to work within my custom workspace and just change the height of the palette.
View 2 Replies
View Related
Jan 8, 2013
how to restore the Color Eyedropper tool at the bottom left corner for some reason it completely disappeared.
View 8 Replies
View Related
Feb 19, 2013
Per the attached exhibit, how to get the plot border to cover the entire sheet border instead of just the bottom left corner.
View 1 Replies
View Related
Dec 5, 2013
Is there any way to insert a generic table into an assembly file. I don't want to create an iAssembly or use the data to configure the component in any way. I would just like to be able to maintain some design related information within the assembly file, similar to the tables that you can create in an idw. A table just like the iAssembly table would be fine, minus the iAssembly part or any sense of configuration.
View 4 Replies
View Related
Jul 16, 2012
I have problem when insert too lenght table from Excel.
Inventor cut column...I used Manage -> Insert Objec
View 9 Replies
View Related
Jun 26, 2012
I'm creating a routine to fill in my terminal strips. This routine worked perfectly in Vba but I'm now rewriting it for .NET...The problem is that I want to insert a block with attributes into different cells.The tables already exists. Below my function, I'm stuck on this part
Dim lonReturnedIds = FunBlockId() ' Calls the function FunBlockID to get the ID's of the attributes
' 0 = BlockID
' 1 = AttributeID of KleurB
' 2 = AttributeID of KleurO
TS.Cells(i, intPosition).Contents.Add()
TS.Cells(i, intPosition).Contents(0).BlockTableRecordId = lonReturnedIds(0)
TS.Cells(i, intPosition).SetBlockAttributeValue(lonReturnedIds(1), strCableConductor2WriteFirst)
Public Function Fun_StripUp(ByVal Po3dXY As Point3d, ByVal str_CableName As String, ByVal Str_CableConductor As String, ByVal strCable Conductor 2 Write As String, ByVal strCableConductor2WriteFirst As String, ByVal intPosition As Integer) As StringDim tAcadDoc As ApplicationServices.Document = ApplicationServices.Application.DocumentManager.MdiActiveDocumentDim myDB As.
[code]...
View 2 Replies
View Related
Nov 23, 2011
I am trying to insert a table using a data link. I set up the Link through the DataLink manager and then insert the table using a range. I click OK to insert the table and after a few seconds of thinking ACAD sits there with no table on the screen. When I look in XREFs, the DL is there but says it is unrefrenced. Tried multiple ways of entering or setting up information to no avail.
View 6 Replies
View Related
Aug 28, 2012
I am insert a sheet list table - Two Columns "Dwg #" and "Sheet Title" under the first category (building 1) each column works fine) then under category 2 (building 2) it gets the file name under the dwg #.
View 2 Replies
View Related
Dec 21, 2011
From Project Navigator, I R-click the Project in the SHEET tab. This is not "lit up" to choose.
I am in my cover sheet, paper space, with 51 sheets in the set.
I tried to use the Sheet Set Manager, but I have the same problem.
View 6 Replies
View Related
Jun 26, 2012
We are experiencing a case where the sheet list table will not insert into a page. It works on all other jobs, but this one won't let a sheet list table insert into any page, by any body.
I even tried inserting a block of the table from another set and then updating - all the lines disappeared.
We have done about 200 jobs with these, without trouble and this is the one giving us problems now.
View 9 Replies
View Related
Nov 24, 2011
I'm preparing plans for individual land owners. I know I need to filter parcels "by hand", center, zoom, scale etc. I'm using labels to get parcels numbers on the plan but I have to add name into title block. I don't want to use feature labels because concat function does not work (I need to show parcel number) plus the name I need to put on is quite long (it doesn't fit in the drawing).
My question is: Is there a way to put text into drawing / title block from attached table or from feature properties of shp or sdf files?
View 8 Replies
View Related
Feb 16, 2012
I am trying to insert "Depth", "Counterbore", etc. Symbols in a revision table, but can't find ALT + XXXX for them. I did find the symbols in the Windows character map in AIGDT font group and they have Character codes but no ALT + codes? How to insert these symbols in a rev table?
View 1 Replies
View Related
May 30, 2013
I have data in an Excel spreadsheet that I want to insert into the drawing in a table format that replicates my spreadsheet formatting and creates AutoCAD entities as opposed to a bitmap image or the mess the TABLE command generates - I'm looking to keep my text consistent within the drawing and I still use the old SIMPLEX font.
View 5 Replies
View Related
Apr 2, 2010
I'm trying to add rows above rows in the middle of a table. The options under Rows are all grey/not available. The last row will allow me to add a row below and the top row will allow me to add a row above. I'm unable to Delete rows, too. The table is not listed as locked or anything. Aside from retyping the table, is there something I need to do to be able to edit the table?
View 9 Replies
View Related
Nov 6, 2013
“insert sheet list table” is not active,
I couldn’t figure out in which cases the “insert sheet list table” (attached) gets not active.
This command is supposed to provide table of contents for the layouts specified in the set of sheets pane
Software: AutoCAD 2014, AutoCAD C3D, AutoCAD M3D, Revit
Windows 7 (Ultimate 64 bits),
Firefox 20.0,
Kaspersky 2013.
View 9 Replies
View Related
Dec 7, 2011
I am having an issue with the sheet set manager's tool to insert sheet list table. I have a new sheet set for a new project that was created entirely in Autocad 2012. When I try to insert a new sheet list table, after I click OK in the Sheet list Table dialoge box, it simply closes to an empty command line with nothing inserted. Why nothing is inserted?
View 2 Replies
View Related
Feb 7, 2014
My table function is greyed out. How do I insert a table?
View 1 Replies
View Related
Feb 1, 2007
Im trying to create a form in Photoshop CS2 and would like to know how to install tables (like in word) so I can format text spacing and lines.
View 2 Replies
View Related
Apr 17, 2012
I've tried inserting a table from Excel into Photoshop and making a jpeg and gif out of it, but when I upload it to the web the resolution is terrible. How I can make get a table into an image? It's a bit too complex to create with HTML.
View 11 Replies
View Related
Sep 26, 2013
I need the logos on this poster to be distributed in alpha order in a grid pattern. Is there an easier way to do this than manually setting them in place? Like a script or something?
View 5 Replies
View Related
Jul 4, 2012
I have a series of sheets, each with two viewports to show two plan views of a long road alignment. I arranged them to read bottom to top, as it goes up stationing, as we do with cross section sheets, but have been told by an outside reviewer that the sheets are confusing and should read top down.
How would you arrange them?
View 2 Replies
View Related
Jun 6, 2012
I have a banner heading that is more or less outlined text. I want to give all the corners a rounded corner and at the moment would just do it all by hand, one at a time. So I want to go from a to b:
But I would like to find an easy way to make all corners the same diameter regardless of the angle too.
View 3 Replies
View Related