AutoCAD .NET :: Creating Table With Preset Column Widths?
Mar 25, 2013
I have been able to create a table, populate the Title and Headers with text. Which is all I want it to do for now. The problem is, I can calculate how wide I want each column, but it never gets drawn with the correct column width.
how to make it use the correct column width specified? Keep in mind all of the column widths may differ.
Attached is my code.
Public Sub AddTable(ByVal dwg_scale As Double, ByVal dwgTextHeight As Double) Dim doc As Document = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument Dim db As Database = doc.Database Dim ed As Editor = doc.Editor Using tableTrans
I have known co-ordinates that I want each grip for the table to be set at. I can't just copy and paste the table from drawing to drawing. Each table of each drawing have different textual values, and the column widths will best be sized for each text value.
If you can set the column widths to remember their positions in EATTEDIT? Take the below as an example, the prompts are truncated and the custom column sizes are never remembered when I adjust them.
I have an iPart in which I want to change the File Name Column from "Member" to "Part Number". These columns are not the same and makes the filenames for the members different when generated.
The challenge is that I already have about 100 members generated and used in different assemblies. I want these to be replaced by the new files and be deleted.
If I change the File Name Column I will get 100 new files (ipart members) that is not used anywhere. The only way I know of to replace the 100 "old" members is to do this in Vault - one by one..
I'm trying to change the value in the description column through the formattedtext but the final result is not what is supposed to be, this is a part of my code.
Sub HoleTab()Set oDrwDoc = ThisApplication.ActiveDocumentDim oSheet As SheetDim i As IntegerSet oSheet = oDrwDoc.ActiveSheetDim oHoleTables As HoleTablesSet oHoleTables = oSheet.HoleTablesDim oTable As HoleTableDim oTableRow As HoleTableRowDim oTableRows
I use a style library. Have it in a read-only mode in the ipj file. My drawing created a new template with a rev table with required columns.
Now, I create a new drawing file and choose this template. add few views, insert a rev table. The rev table columns headings are the same as in the template. But the column widths aren't same as in the template.
I use manage->update. It warns me that the drawing would be matched as per the style library. I agree & OK.
No use, the columns are not same size? Though the style is read only from the drawing, I go to open the style editor to check the column widths. They are different from the template.
In a simple case I have an extrusion with some attached seals/weather stripping, all implemented as iParts having their own LENGTH parameters.
RailPart.ipt, Seal_A.ipt, Seal_B.ipt
The goal is to encapsulate these IParts within an iAssembly: RailAssy.iam, where a LENGTH parameter can be input when the iAssembly is placed, causing RailPart and Seal_A to have their length parameters set to the LENGTH provided at that time and SEAL_B having Length set by an iLogic rule to LENGTH - 5.
I've been unable to set up a Custom Parameter Column in an iAssembly table. Is this even permitted?
I'm having an issue with creating a column bubble block that would have an attribute and both be annotative.
I've created a 3/8" dia circle with 3/16" text and the text is NOT annotative. The bottom of the circle is at 0,0 with the text justification at MC
I create the block of the circle and text and make it annotative and save
When I insert it into another drawing, the block inserts properly and scales as desired. The issue is when inserted, I'm NOT given the option to fill in the column # attribute. I can double click and enter text, but this should happen during insertion.
When I create the block, if I do NOT select the attribute as part of the block, I am given the option for the attribute during insertion but it does not scale automatically.
What am I doing wrong? I'm attaching my block as an example.
I want to add a column to my parts list, which displays a value based on a formula.
Lets say i want to show the submerged weight of a part; So i need to create a column, which can use the information about a parts volume and mass to calculate its submerged weight.
An easy formula, but is this possible in Inventor (2012 Pro)?
I currently use LR5.2. In camera calibration panel, there are a few options for camera profiles, e'g., camera landscape. I created a "camera landscape" preset, which did not work. It seems that there are some missing checks in "new develop preset" box. As seen in the attachment, i placed checkmarks only in front of "process version" and "calbiration". This was not enough. It seems that the box might need more checkmarks to produce a workable landscape preset.
Is it me, or is creating a Preset Shape weird in X5. Haven't made any for years, then attempted to make one in X5. It doesn't work (might be a severe senior moment), the is no sub-layer to name.
This is what the Layers Palette looks like when using a shape made in X2:
My workflow is such that I create a new catalog for each shoot I do. This way it doesn't get sluggish with thousands of photos and such, files don't get orphaned when they're backup up to external drives and so on.
I create a new folder for the shoot in which the RAW files to and the catalog, catalog previews and everything that goes along with that.
I was wondering though, is it possible to adjust the settings so that when you create a new catalog, it AUTOMATICALLY loads your identity plate settings, develop user presets and so on? I have to copy them manually each time now...
I'm attempting to create a sphere by using the "mesh preset" under the "new mesh from layer" menu item. When I do this, the sphere appears jagged or faceted -- even after rendering. If, however, I make the same sphere using "depth map to", it is smooth. I do not have this issue in CS5.
In Bill of material i have custom PartQty column and is beside QTY column. I need all informations from QTY column to PartQty column to copy. Possible with iLogic? I'm selecting now manualy copy and paste but it would be nice to have automatic.
I am trying to create a line table. Here are the steps I am following :
First I label the lines I have drawn using a line label type for example Bearing over Distance, then I am going to the Annotate tab, Add Tables, Add Line and Curve and once I get to that dialog box I select my table style that I have already created and the label style I chose to label the line and click on the "apply" box and then "ok" and I see the labels such as L1, L2, etc. and all looks good, except now when I go to use that label style Bearing over distance to label another line, it labels the line with the tags and not the bearing and distance, its like the style is now defaulted to labeling tags and not bearing and distance anymore.
I am not sure this is even possible, but could I use some sort of invisible block attribute data and everytime I insert it into a drawing (I use the same block multiple times within a drawing) it would autopopulate fields in a table. For example I have a smoke detector symbol I insert, I also have a specific address associated with every single detection symbol I insert into a drawing, would I be able to attach data such as what type of detector it may be and have the address and type automatically populate in a table everytime I insert my block into a drawing?
I am using Civil 3D 2012. I know how to label a line with bearing and distance. What I would like to do is make a table with these bearings and distances referencing the point numbers. For instance, I have a new ROW line that starts at point 1000 and changes direction at point 1001 and changes direction at 1002 and so on. I need a table that shows Points 1000-1001 is ___ Bearing and ___ Distance.
The lines are not parcel lines; they are only line segments.
I'm working with both Carlson 2012 and Civil 3d 2012 so this could apply to either one.
I have a set of caissons that were shot on separate days, and they started in the middle when they shot them in. I wanted to create a coordinate table, with the points listed from the northernmost point to the southernmost point. I had thought there might be a way to create a table with dynamic input, where I could pick the points as I go along and have the information entered as I pick.
Is there any way to renumber the points via drawing a polyline connecting them, starting with the one I want as #1 and ending with the last one?
I am trying to publish to the CC a guide rail. The vendor of the rail gives me the option of entering the desired length of the rail. After that he gives me the option to choose between the length that I entered and a shorter and longer standard length witch can be delivered faster.
I want to do the same thing with my published part, but I cannot make a key parameter to change depending on the entered custom parameter. I want the user to make the next steps when inserting from the CC: 1- select the size of the rail; 2-select the type of the rail; 3- enter the desired length of the rail; 4- choose between the desired length and the 2 recommended lengths (I need these 3 lengths to be shown)
point# | X | Y | Desc_1 | Desc_2 | Desc_3 |....... ect
I would like to make an excel table that i can create multiple points from and make that table dynamic, ie if i edit the table the points will change.I would be labeling the points according to the different desc_# in multiple drawings
Is there any way to do this? I have messed with creating a user defined property classification and creating a new point file format, but i want that point file I imported to be dynamic, and if I change values the values will change in all my drawings.
I am wanting to use XDP as a desktop publisher and can't see any hints on table creation. There are lots of other useful word processing functions but not tables AFAICS.