AutoCAD Map 3D :: Export DWG Text Objects To SDF But How To Label Them
Sep 18, 2012
Map 2012
How do I add text labels to points?
I'm exporting DWG objects to a SDF file. Once connected to the SDF file, text items are displayed as points as expected. I have ensured the STRING attribute is present in the conversion and I can see these values in the Properties pallete.
I want to label the points using the Style Editor but try as I might no text label appears. I've checked the obvious stuff like ensuring I'm not using black text on a black background and the text is not so small that I cannot see it.
We can add Reference Text in Label Components. it can be referenced to Alignment, COGOPoint, Parcel, etc. For example, after that it is needed to select a COGO Point, and Label is changed from "???" to a property of selected Reference Object. I want to add Reference Text by VBA.
In my company we are just beginning to use Civil 3D and we are experimenting with different features and trying to compete with Microstation. A big chunk of our time (80% more or less) goes into labeling lines and objects. I sat down with a MicroStation guru and they showed me how MicroStation automatically creates labels throughout different viewports and it has a feature to prevent them from overlapping.
I have Note label Style objects and Marker Style Objects that have layers assigned to them. When I bring a Note label or Marker Style into the drawing, it comes in on the zero layer. I know that the object layers of the drawing settings are controlling this. Is it possible to have the Note labels and/or Markers come in on the assigned layers of their Styles?
In the dragged state, I don't want to use 'As Composed' because the label is composed to be parallel to the line, but I want it to flip to horizontal to the view when dragged. This is working fine with 'Stacked Text'
What is not working is the text justification. I want it to remain centre justified, as it is composed. But there doesn't seem to be any option for this when you use the 'Stacked Text' option for the dragged state. I thought that setting the 'Leader Justification' to false might do it, but that just makes it always left justified. Am I missing something here? Is there no 'Top right/bottom right/middle center/top left.....' option for Stacked Text? And if not, why not?
I received a drawing where I have to add Bearings to an alignment and Right-of-Way lines. I have a Line Label Style that it works for that purpose. These new bearings are "Alignment Tangent Labels" and we need them to be "MTexts"
Select & explode once, and you get "Block Reference"
Select & explode again, and you get "MText"
Once that is done, unfortunatly, I get "3D Faces" objects in the background. Invisible on the drawing, but visible on paper once we plot them. The only way to remove them is by selecting around the new MText until I click on one, then, right-click, Select simnilar, Delete!
Is there any way to prevent that to speed up the process???
I have several .dwg files that I use as templates. I run find and replace VBA routines on the template .dwg files, ie find $Flavor$ and replace it with "Grape", and then I save the .dwg to another directory with a new name.
These VBA routines work well for acdbText and acdbMText objects, but I have a bunch of AcdbAttributeDefinition objects in the .dwg templates as well.
After much research about the AutoCAD object model (I'm mostly a Microsoft Access VBA programmer), I have come to understand that these AcdbAttributeDefinition objects are actually "remnants" of a block that no longer exists in the drawing.
Anyway, I'd like to convert all of these orphaned AcdbAttributeDefinition objects to acdbText objects in the templates and then delete the AcdbAttributeDefinition objects. I have some code that does just that.
However, the issue that I am having with the code is that the newly created acdbText objects are not on the same layer that the original AcdbAttributeDefinition objects were on. I don't know the syntax to identify what layer the AcdbAttributeDefinition object is on or how to specify what layer on which the acdbText object is created.
how to keep the acdbText objects on the same layers as the original AcdbAttributeDefinition objects during the conversion and deletion process?
Here is the code I am using currently:
Sub AttConvert(dwg as string)Dim oDocument as AcadDocumentDim ent as AcadEntityDim aa as objectset oDocument = Documents.open(dwg) For Each ent In oDocument.ModelSpace If ent.ObjectName = "AcDbAttributeDefinition" Then' DO SOMETHING TO IDENTIFY WHAT LAYER THE ACDBATTRIBUTEDEFINITION OBJECT IS ON ' DO SOMETHING TO SPECIFY THAT THAT IS THE LAYER TO CREATE THE ACDBTEXT OBJECT ON Set aa = ThisDrawing.ModelSpace.AddText(ent.TagString, ent.InsertionPoint, ent.Height) End If Next ent For Each ent In ThisDrawing.ModelSpace If ent.ObjectName = "AcDbAttributeDefinition" Then ent.Delete End If Next ent End Sub
I need to design a dvd label for a client and they want to be able to make edits to it after I design it. Is there a way I can design it in illustrator.. save as an interactive pdf and then they can edit it with acrobat? I know with acrobat you can make edits to type but can you make edits to colors, photos, etc? Any other application that they would be able to use without having adobe?
I keep getting the words "Label Text" being placed at 0,0 every time I insert a profile view into my drawing. Is there a simple way to change something in the settings to either not display this at all or sontrol how/where it is displayed? It is annoying when you do a zoom extents being you now get 2 small dots on screen, 1 being the actualy drawing at the correct utm cooridnates and the other being this piece of text down at 0,0.
I am trying to use the Inventor API to customize the text label that appears next to a section cutline in a drawing.
The text in question can be modfied through the Name variable of the SectionDrawingViewType object. However, this approach changes both the name of the SectionDrawingViewType object, as well as the text next to the section line. Is it possible to access just the section line text through the API? Is this text field exposed? Which object type is this text field?
I am trying to scale down my label text insdie of my viewport. Its about twice the size that i would like.I tried to use the scale command but nothing happens.
At the moment, I'm labeling features on my drawing with stations/offsets, but this question really applies to all label settings - is there any way to restrict the label text to be in all caps? I know I can just type in the station/offset labels manually but I'd like to be able to use the automatic-updating functionality of AutoCAD 3D.
How can i remove the scale that is automatically added to the label text of a projected or auxiliary view? The label text style governs only the font etc.
I can create single alignment labels (fixed point, offset etc) that show a chainage and, by using reference text, a profile level for an associated profile.
However, using the main labels that are used for displaying chainages along an alignment (alignment chainage label group) I can also add in a reference text label for profiles here, alongside the chainage one, but there is no option to set which profile it references so it just displays '???'.
Getting the alignment labels to also display associated profile levels at every chainage point would be incredibly useful.
I need to get a station and offset for a bunch of points and have it show up in the point label. i can't find reference text in the label style so i was wondering if there was a good workaround.
Dell Studio XPS 9100 Intel Core i7 CPU 930 @ 2.8GHz 12GB Ram 64 bit C3D 2012 SP3.0
I'm in a situation where i have to export a civil3d 2013 drawing to autocad 2000, but i don't want to send everything in the drawing, just the final drawing from model space. is there a way to not need export the drawing and then delete the objects i don't want to send? It seems like a simple task but i work with some people that can't handle simple things like that, so aside from trying to find new co-workers, what can i do?
I've been working on trying to find the best way to export a variety of different Civil3d objects into 3ds max. The one object type that seems to continue to evade me are pipe networks. Any good way to export these to 3ds max? I don't care about having them dynamically linked so much as rendering the part materials in model as they show up in Civil3d.
I'm trying to create an alignment label to display profile elevations at regular stations. Two questions:
1. I use an expression to set the text height. When I add a regular text component in the label this works fine, but when I add reference text I can't seem to use the expression as text height. 2. I want to use an expression to 'Truncate' the elevation, so that 178.35m displays as 78.35. I can't find a way to create an expression to do this (within the Alignment station labels).
I find the 3D side of the software is great for modeling. But when it comes to the 2D drawing side of it, especially dimensioning and the adding of text label is very poor, when compared again other CAD packages including AutoCad Mechanical and LT.
Why is it not on par with AutoDesk other 2D packages!
For composing a profile label, I can't find the option for Geometry Point Text, which would use our abbreviations under the drawing settings. It is available for alignments but not profiles. Currently have it text compenent being labeled with PVC and PVT, but I had typed that in.
Civil3D 2013 Windows 7, 64 bit Intel i7 2600 @ 3.40Ghz 16 GB RAM Nvidia Quadro 600
If you have a look at the attachment you will see that many of the labels for risers have their text labels hidden, if you highlight you can see that the riser label block is highlighted as well as the hidden text. If you click on them you are able to modify the text but I have been unable to work out how to make the labels appear in this drawing.
If I cut and paste into another document I can get the label to appear but I can not work out how to make the labels appear in this document.
I would like to perform a math function within a point label and have it displayed along with my point. I have a bottom of curb elevation point and would like to show the top of curb elevation as 0.5' feet greater than the flow line without inserting 2 separate points. For drafting purposes only. (ie. TC 10.50/FL 10.00 ; the TC value would be automatically derived from the FL or point elevation value.)Can math functions be performed within a label's Text Contents?
How to remove the view label text which is attached to a detail boundary? I know that if you double click ont he etxt you can manually delete it from the format text window but I want edit the default setting so that it doesnt appear on creation.
I have long used the following lisp to convert multiple single text objects into multiple mtext objects (i.e. make each text entity into separate mtext entities).
; T2M - convert individual Texts/Dtexts to individual MTexts ; modified by Xanadu - www.xanadu.cz ; (defun C:T2M (/ ss i elist)
[Code]....
However, the mtext entity always moves position slightly (compared to the original text entity) after converting the object. better lisp that converts multiple text entities into mtext entities (which are all separate still, i.e. not joined together) without the position of the entity changing?
I am trying to rewrite Curtis Waguespack's ilogic code to modify drawing view labels from this post http: [URL]...
The completed label should appear like this
<Description> - Mk <Part Number> Est Unit Mass = X kg (Scale 1:1)
At this point I have 2 problems
1. I want to add the physical mass to the second line and would prefer to use the calculated physcial property rather than the a custom iproperty. If editing the view label, it would the property access under physcial properties.
2. I want to rewrite the code so it is selective or per view - in otherwords, I only want it to modify a single view I select once the code is run. At this point I know I need to remove the For loop but I dont have a clue as to how to make it selective.
'start of ilogic codeDim oDoc As DrawingDocument: oDoc = ThisDoc.DocumentoModel = ThisDoc.ModelDocumentDim oSheets As SheetsDim oSheet As SheetDim oViews As DrawingViewsDim oView As DrawingViewoSheets = oDoc.SheetsFor Each oSheet In oSheetsoViews = oSheet.DrawingViews For Each oView In oViews oView.ShowLabel = True