AutoCAD Map 3D :: Display Int32 Defined Field As Number With Comma
May 30, 2013
Setup or style expression that will take a field in a shape file that is defined as an integer and display it on a map with comma's for the 1000 maker (ie. 5913240 as 5,913,240).
I am using AutoCAD Map v2012 (can use 2013 if it has anything built in)
I am using Sheet Set Manager. I can use a field that will enter the sheet number on each layout. I am looking for a way to have a field use this number and minus 1 or add 1 to get the sheet before and sheet after the current sheet.
I am trying to turn on the stock number field under customizable fields within vault, however stock number is not an option...has this always been the case?
The Field dialog box has an item for CurrentSheetNumber with field expression: %<AcSm Sheet.Number>%
Is it possible to create a Field to display the Next Sheet Number (CurrentSheetNumber + 1) and a Field to display the Previous Sheet Number (CurrentSheetNumber - 1)?
how to write a field that will add or subtract one from the drawing number. I'm adding drawing join line text to drawings so I need the text on the left to read one less than the current drawing & text to the right to read one more.
in drawing 005 text would read "joins drawing 004" & "joins drawing 006"
I have recently started using FIELDS in our drawings. I must say, they are very powerful.
This is what I would like to accomplish but have not been able to do it on my own.
I want to be able to add text/description to a block, then invoke that text/description with a leader. For instance, if I have a block of a 6x6 post w/ a square, I want to be able to insert the block, do a leader and invoke the custom description "P.T. 6x6 POST W/ CONC. FOOTING"
I have a situation where I have a AutoCAD table linked to a Excel table to retrieve lots of general information for a standard drawing. That works just fine. In additionally I can use the fields "formula" field name and select a cell in the AutoCAD table to pull the data from the cell to the field, and this works for table cells that are numeric, but some of the cells are text based, and for these situations AutoCAD simply gives me the #### result. Is there a way to use a field to display text data from a AutoCAD table Cell?
How I can tie a key from a custom dictionary to display in a field?
I know that I can dump the custom dictionary into global and the fields can track those values, but instead of strangling my available memory I'd rather track the dictionary key directly. How can I utilize the Entity name or the actual dictionary name & key?
I would like to have a field in the title block that reports whether the drawing was created with Autocad or Civil 3D and also whether it was 2009 or 2011. The only system variable I found close was acadver but it doesn't distinguish between products.
I am using a symbol that includes a several text boxes. Each text box includes "prompted text" and "drawing properties". When I insert the symbol onto a drawing, the "Edit Property Fields" menu appears. In this menu, I can input my prompted field text or see the various "drawing properties".
My question is, how do I change the order that these property fields are displayed? It seems as if it depends on the order that the text boxes were created while defining the symbol definition. Is there any other way to change the display order?
Im linking a prompted entry in a sketch symbol to a selection from the user in an array. The code works perfectly.
The array displays the number of sheets there are in the document, the user selects the correct one & the sheet number is displayed in the prompted entry. I need to add "SHT" before the number though in the code but I cant get it to work.
I dont want to add a text line into the symbol saying "sht"
Dim oApp As Application: oApp = ThisApplication Dim oDoc As DrawingDocument: oDoc = oApp.ActiveDocument Dim oSheet As Sheet: oSheet = oDoc.ActiveSheet
'This uses a sketch symbol with the name "'View On' View Label" Dim oSymDef As SketchedSymbolDefinition: oSymDef = oDoc.SketchedSymbolDefinitions.Item("'View On' View Label")
'This is the selected view Dim oView As DrawingView: oView = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingViewFilter,"Select View To Place Symbol:")
'This takes the label items of the selected view 'And adds it To an array that will link To the prompted entry Dim sPromptStrings(2) As String sPromptStrings(0) = oView.Name sPromptStrings(1) = oView.ScaleString
oDoc = ThisApplication.ActiveDocument
Dim sSheet As Sheet
'create sheet number list Dim oSheetList As New ArrayList i = 0 s = "-" For Each sSheet In oDoc.Sheets i = i +1 oSheetList.add(i) Next oSheetList.add(s)
'get user input mySheet = (InputListBox("View taken form sheet number.", oSheetList, oSheetList(0), "Sheet Number Ref.", "Sheet Numbers"))
sPromptStrings(2) = mySheet
'This is the position for the sketched symbol under the selected view' Dim oPosition As Point2d: oPosition = oView.Center oPosition.y = oPosition.y - (oView.Height / 2 + 2.5)
'This inserts the sketched symbol and fills in the prompted entry. Dim oSymbol As SketchedSymbol: oSymbol = oSheet.SketchedSymbols.Add(oSymDef, oPosition, , ,sPromptStrings)
In an earlier Illustrator CS version, i was able to display any Paths' anchor point Numbers or label. But in CS6 with both "Anchor/Path Labels" enabled in Prefs. > Smart Guide section and in View > Smart Guides, no Point Numbers are displayed.
How to display each paths anchor point numbers or label?
I've opened an older InDesign document (I don't know with which version it was created) and found odd little number/letter "coordinates" [Example: 21W(13)] displayed beneath each and every text box in the document. They are the same color as the layer they inhabit, they don't disappear when I turn off invisibles, they move with the text box, they don't appear under image boxes, and the numbers are all different but the "W" always follows the first number. After some experimenting I learned that the number in parens refers to character count. I can't figure out what the "number/W" signifies. I've searched all over the web for information about this and found nothing. I've checked preferences, palettes, settings, views, etc. and also found nothing. I've worked in InDesign since its inception and have never seen such a thing. The styles in the document are all messed up, I'm wondering if these numbers are causing the problem. Can they be shut off? What are they? Does this have something to do with InCopy?
I did, a couple of months ago, a part with a rule containing some input boxes. It worked without a bug and set it as a specific template, on Inventor 2012.
I tried to reuse it as a template without changing its rule on Inventor 2013. When the input box pops out and ask the value it needs, if I type "0.2" it says that "string's conversion "0.2" in a 'double' type isn't valid". But if I type "0,2" I have absolutely no problems.
I used to enter decimals with the dot key. On my new environment (new computer, new version of Illustrator), it no longer works. I would like to use the comma key instead. What may be the way to enable it? Some editing on Window's international options?
I'm working on Illustrator CC (64 bit), Windows 7.
I'm relatively new to AutCAD map 3d but I've used arcGIS a while back.
I have existing roads, towns etc data that are already set to UTM 17. I want to import ascii point coordinates (from a comma delimited file) into the file. I can import the ascii coordinates as points fine (easting and northing), however the points come in as the absolute coordinates rather than geometric coordinates. I already set the files for right geographic projections. Beyond manually inputing the coordinates into the coordinate tracker, is there a way to import the coordinates form the file set for the geometric coordinates?
How to “synchronize” the ‘layout number” with “sheet number”?
As in most cases, the arrangements of “lay outs” reflects the way they are regularly printed, then how could we renumbering the sheets such that the first lay out takes number 1, the second lay out takes number 2,…and so forth.
After closing and reopening my command prompt, I find that it is now at the bottom left of the screen and no longer part of the main graphics window. How can I get it to display at the bottom of the main display?
I installed VS 2010 Express and then installed ObjectARX SDK 2013.
I can start a project, but in myCommands.vb I get the message above. It's going to be difficult to continue if any commands I create have a 0% chance of working.
why I would get this error even though I am able to start a project using the AutoCAD Plug-in.
I have already uninstalled and re-installed VisualStudio and ObjectArx.
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.
...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.
I'm trying to insert a new instance of a X-Ref already present on the drawing. If i use Database.AttachXref(path, name) I receive "ref NAME has already been defined. Using existing definition." on the command bar. I've tried to retrieve the ObjectId of the X-Ref definition from the X-Ref name, but my code don't work. Where is the error?
Here's my
Private Sub AttachXRef(path As String, name As String) Dim Doc As Document = Application.DocumentManager.MdiActiveDocument Dim Db As Database = Doc.Database Dim pPtRes As PromptPointResult Dim pPtOpts As PromptPointOptions = New PromptPointOptions("")
I have a drawing from an architect, and they have used a user defined hatch pattern. But I cannot use it. I can find it's name, it shows up in properties and in the hatch tools. But it isn't in any *.pat files and I can't copy it into my tool palettes. where I could find it, it shows up just fine in the drawing, but I can't figure out how to use it in other areas, not even within the same drawing.