AutoCAD Civil 3D :: Modify Point Label Style Using Visual Lisp

Feb 19, 2013

I am having trouble drilling down to the object that contains the point label components.  Specifically, I would like to access values such as Anchor Component, Anchor Point, Text Height, X Offest, and Y Offset for the various components of the Point Label Style.  I am able to get the Point Label Style by name (object dump below) but I don't know how to get at the components that I want to work with.

; IAeccPointStyle: IAeccPointStyle Interface; Property values:; Application (RO) = #<VLA-OBJECT IAeccApplication 000000004965fbc0>; CreatedBy = "Cooper"; CustomMarkerStyle = 0; CustomMarkerSuperimposeStyle = 0; DateCreated (RO) =

[Code]....

View 2 Replies


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: Change Point Label Style

Oct 1, 2013

I am trying to use autolisp to change the point label style in autolisp. Mostly teach you how to do it manually, I not sure there is a way to do it in autolisp.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Modify Insertion Point Of Text

Jan 10, 2008

How do I change the insertion point of a text using "vla-put" ? I've tried using :

(vla-put-InsertionPoint en a)) with a = (4455.94 428.576 0.0)

and I get the following error:

lisp value has no coercion to VARIANT with this type: (4455.94 428.576 0.0)

View 9 Replies View Related

AutoCAD Civil 3D :: Point Label Style

Apr 27, 2012

I'm using AutotCAD Civil 3D 2012 in the Civil 3D workspace, trying to create a point label style to show what I need it to show. I click on a point and select it's properties. Once on the properties tab I go down to the point label style box and clicked on the down arrow. A list of options then comes up and I selected the create/edit option. A small point label style box then appears and i choose the button directly next to the drop-down list and the label style composer box pops up. In this box I go to the layout tab and then go down to the contents box. I select the browse button next to the contents to select the contents. I select the contents I want but when I apply it every point has those contents and I need just that one point to have those contents.

View 3 Replies View Related

AutoCAD Civil 3D :: Rotating Point Label Style?

Apr 10, 2013

Imported points and I have a label style to label tree sizes automatically,  but when there are many trees near each other labels start to overlap.  So I will typically rotate the label style 180 degree or drag the label, but I am curious if its possible to have label always stay horizontal no matter what my rotation angle is.

Civil3D 2013
Windows 7, 64 bit
Intel i7 2600 @ 3.40Ghz
16 GB RAM
Nvidia Quadro 600

View 8 Replies View Related

AutoCAD Civil 3D :: Corner Point Label Style

Apr 28, 2012

i have a building corner point label style that labels the corner of bldgs with the elev on top of an arrow and the full description of a bdlgc on bottom of arrow...rotated at 45 degrees....

i have 3 components...a block of an autocad leader i call an arrow that i just drew from left to rt on layer 0 and named the component arrow...then i have the elevation and the description

problem is that when i rotate label to move it out of way of obstructions it flips the elev on bottom and the desc on top!!

i have tried a number of combinations of anchor pts and changing the "flip anchor pts with text" to true/false under the general tab of the label style composer...

i cant get it!

View 6 Replies View Related

AutoCAD Civil 3D :: Fix Trashes Point Label Style Scaling

Jun 22, 2011

Point label styles do not scale properly in raster plots.  Raster plots have long been my fix for making wipeouts and masks behave.  Without the excellent fix raster plots have been, I'm sunk!  All of my work depends upon raster plotting to maintain consistently correct output with absolutely no wipeout or masking errors.  My point label styles all have a text height of 0.11" which is the plotted height according to the documentation.  They are exactly the right height in all page setups with non-raster plot devices.  But, when my page setup includes a raster device the text is scaled to just a speck. It should be 32 pixels high at the 288 pixels per inch I have specified but it is barely two or three pixels high both on my display and in my ploits.

The attachments show the wipeout/mask problem in 2012 DWF output and the rescaling of point labels in 2012 raster (TIFF) output.  I am in critical need of a fix that does not involve special point label styles just for raster plots.  Autodesk!?  I already have to use a special pen tables for raster plots with pens sizes scaled for each dpi resolution I use but that has been settled for many years now.

View 2 Replies View Related

AutoCAD Civil 3D :: Change Point Label Style Using AutoLISP

Oct 2, 2013

I did some search and got some code from 2009 post which not really working for me. Since I am not a pofr for autocad civil3D and just staring to learn how programing with autolisp, I am having trouble to debug the code:

(defun xp()(setq sset1 (ssget "X" '((0 . "AECC_PARCEL_SEGMENT")))) (COMMAND "EXPLODE" SSET1 "")
if (= (setq ss (ssget "X" '((0 . "AECC_COGO_POINT")))) nil)
(setq ss (ssget "x" '((0 . "AECC_COGO_POINT")))) );
FILTERS UNCLOSED POLYLINES(defun c:changestyle()
(setq xlabel (vlax-ename->vla-object (car (entsel))))

[Code] ....

View 4 Replies View Related

AutoCAD Civil 3D :: All Points Default Point Label Style

Jun 3, 2013

I have set the default style for the drawing to a certain style by going to toolspace - settings and right clicking on point and clicking on edit feature settings ...under default styles i set it to the one I want for both point style and point label style......how come when I create a few manual points and then go to the prospector tab and right click on _all points, the point label style is not set to the default one I set it to as I described above? The points are not coming in the way I want them to?

View 3 Replies View Related

AutoCAD Civil 3D :: Point Label Style In Pspace Significantly Smaller Than Mspace

Jan 2, 2013

I'm a bit new to the concepts of point labels in C3D; I browsed around for a bit for a solution and haven't been successful. I'm having troubles with my point label styles in Paperspace - they appear about 25x smaller than in model space, but both are the same scale. 

This is my label style setup: 

This is how it appears in modelspace: 

This is my viewport settings and how it appears in paperspace (zoomed in):

The text height in MS is 2mm, and approx 0.078mm in PS. 

View 4 Replies View Related

AutoCAD Civil 3D :: Change Text Color In Point Label Style Based On Variables

Sep 27, 2013

Is there a way to set up a custom Point Label Style that will change the text color if the information entered meets particular criteria?  I will be entering sample measurements taken on two (2) different dates, but if the sample data is greater than 1.0, I want it to show up a different color.

View 4 Replies View Related

AutoCad :: Modify Point Style Or Library?

Jul 10, 2012

I would like to change the look of the point that I draw ni autocad.

When i draw a point (1 on the joined picture), I can choose different style (point, circle, square, ...) and increase or reduce the size (2 on the joined picture)

point.PNG

but the model stay allways thin, i would like to modify my point to look like the 3 ont the joined picture.

I know that 20 models are allready a lot of choice, but is there a possibility to modify the library of the point?

View 9 Replies View Related

AutoCAD Civil 3D :: Changing Profile Line Label Style Causes Label String To Revert To Default

Sep 6, 2012

C3D 2013. We have profile line labels, some of which get manually edited (for example, change the "<[Tangent grade(FP|P2|RN|AP|GC|UN|SD|OF)]>" to a static number such as 0.29%).

However, if you CTRL+Click and select one of these labels and change the style of that one label, then the manual edits are lost and the label reverts back to the default string.

Is there any way to turn this behavior off?

View 1 Replies View Related

AutoCAD Civil 3D :: Change Default Label Style To Child Style

Jan 2, 2013

I am trying to change the default label styles for AddSegmentLabel under general styles using .NET...

Dim X As Autodesk.Civil.Settings.SettingsCmdAddSegmentLabel = CD.Settings.GetSettings(Of Autodesk.Civil.Settings.SettingsCmdAddSegmentLabel)()

X.Styles.LineLabel.Value = strChildStyleName ... says name does not exist

or

X.Styles.LineLabelStyleId.Value = oidChildStyle ... "The type of objectId is wrong"

If I manually change it to a child style and then check the values, they are the same as what I'm trying to set them to. If you use a "parent" style then these both work. Am I doing something wrong or this another limitation?
 
Civil 3D 2013 - Windows 7 Pro 64 - Dell T3500 - Xeon 2.67 - 24gb - Quadro 600

View 1 Replies View Related

AutoCAD Civil 3D :: Point Label Size Change When Label Is Moved?

May 8, 2012

The label associated to a grading point when is moved when is moved changes its size automatically and a leader appears. After this happen no control over the grading point and its associate label. refer to the image below.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Changing Text Style Used By Table Style

Jun 29, 2012

I am looking for a way to change the text style used by a table style with Visual LISP.  So far I have been able to get the IAcadTableStyle object from the acad_tablestyle dictionary, but there is no property for text style.  Is this even possible?  Code and results are below.

(defun DumpTableStyles ()
(setq dict (vla-get-dictionaries (vla-get-activedocument(vlax-get-acad-object))))
(setq TableStyles (vla-item dict "acad_tablestyle"))
(vlax-for TableStyle TableStyles
(vlax-dump-object TableStyle)
)
)

[Code]....

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Toggle Between Customized Old Style Menus / New Style Workspaces?

Nov 13, 2011

Is there a way to toggle between customized old style menus and new style workspaces?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Opening Drawings With Default Visual Style Set To 2D Wireframe

Oct 7, 2013

Is there a way to programatically set a visual style before a drawing actually opens?

We have some huge models and people seem to forget to change their visual styles back to 2D wireframe before saving and exiting drawings.  Some models will crash on some workstations when trying to open in a rendered mode.

I found a lisp with a function that looked to set viewport visual styles.  But it does not seem to be supported anymore. --> (vla-put-VisualStyle vport 1)

View 9 Replies View Related

AutoCAD Civil 3D :: Delete Label Once And Modify Surface Triangulation

Feb 8, 2013

I can delete the label once and modify the surface triangulation

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Add / Modify And Remove Registry Key?

Feb 27, 2012

Some time ago I was able to add modyfy and remove regestry keys ussing AutoLISP Unfortunatly I have lost the information on how to do this.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Modify Hatch Code

Aug 20, 2013

Modify the attached lisp I found in this forum to work using a different hatch pattern, scale and angle.  The new hatch should be in default Autocad "LINE" pattern and angle set to 90 degrees (vertical). If possible, I would like the angle and scale to be editable.  Find attached Multi_Hatch-45 code posted by CADaStroumph in 2008.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Modify Existing Selection Set?

Sep 5, 2012

I need the same funcionality as in code below, but without using "command".

The main idea is alowed user to modify Existing Selection Set.

 (defun gt:ss->lst (a:ss / i lst ) ;_ / (setq i 0) (if a:ss (progn (repeat (sslength a:ss) (setq lst (cons (ssname a:ss i) lst) i (1+ i) ) ;_ setq ) ;_ repeat (reverse lst) ) ;_ progn ) ;_ if) ;_ defun gt:ss->lst(defun gt:ss_modify (a:en-lst / ) ;_ / ;;create Selection set (setq ss2 (ssadd)) (foreach f:en a:en-lst (ssadd f:en ss2) ) ;_ foreach ;;Run command and fill with initial content (command "_select" ss2) ;;Alow the user to modify the contents (while (/= (getvar "cmdnames") "") (command pause) ) ;_ while ;;get back the list of enames from modified selection set (setq ss3 (ssget "_P")) (setq ss3-lst (gt:ss->lst ss3))) ;_ defun gt:ss_modify(defun tst:gt:ss_modify ( / ) ;_ / (gt:ss_modify (gt:ss->lst (ssget)))) ;_ defum tst:gt:ss_modify

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Modify Line Inside A Block

May 20, 2013

I have a simple block with 2 attribute and 1 line inside it.

something like this:

Attribute1

──────

Attribute2

I want to modify length of line due to width of thoes attributs. length of line is equal to maximum(width attribute1 and width attribute2).

dxf code for start point of a line is 10 and end point for a line entity is 11.The question is: how can I modify the length of line automatically via maximum width of these attributes?

for getting width of a text:

(defun GetWidth ( en ) ((lambda ( lst ) (- (caadr lst) (caar lst))) (textbox en)))
sample:

A1
──────                    
Attribute2

Attribute1
──────           
A2

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Modify Properties On Multiple Drawings

Nov 6, 2012

Any lisp routine on how to change "Drawing Properties" (fields via Mtext) on multiple single drawing files?

There are several instances where we would need to take a project to create another one and simply change the title block description.

As of now, we are opening each drawing (there could be hundreds) and modifiying the drawing properties on each drawing to change the customer name and other project descriptions.

These are not attributes, but fields. I've researched alot on here and couldnt find anything.

The drawing is attached.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Modify Table Column Widths

Apr 26, 2012

How to modify the column widths of an ACAD_TABLE?

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.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Modify The Existing Parametric Parameters?

May 2, 2013

Is there a way to modify the existing Parametric Parameters that are in the Parameters Manager using LISP?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Modify Objects Copied From A Selection Set?

Nov 17, 2011

I am creating a selection set using ssget...

Then I copy that selection set multiple times in a loop.  What I would like to do is then rotate (or otherwise modify) the last copied group of items.  If I rotate "last" it will only accept the last drawn item, so only one item in the group of copied objects will rotate.

Here is the portion of simple code I am using right now (it's in a loop so all variables with 'Next' are changing each time):

(command "_.copy" SS1 "" SS1Base NextPT)
(command "_.Rotate" "l" "" NextPT NextAng)

This works fine with a single object, but I can't figure out how to call up the entire group of objects.

Civil 3D 2011
Windows 7 x64

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Add Or Subtract To Modify Value In Text String

Oct 18, 2011

I need a lisp routine that will add or subtract to modify a value in a text string. Its used for drainage fixture units on waste & vent plans. Example: We use basic dtext strings that look like this [color=red]4"(6)[/color]I would like to be able to add or subtract to the number that is [b][size=12pt]ONLY[/size][/b] in parenthesis and would like to be able to pick multiple text strings at one time so it would result in something like this: [color=green]4"(6)[/color] + 9 will become [color=blue]4"(15)[/color].

View 9 Replies View Related

AutoCAD Civil 3D :: Set Default Point Style For Point Groups

Jun 20, 2012

How to set a default point style for point groups?  Whenever I import survey points, I always put them into their own point group, so I can display each day's worth of survey data differently.  For some reason, the point style always defaults to a certain style (our control point symbol).  I'd like it to default to Basic, so I don't have to change this every time.  Is it a template drawing setting somewhere?

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Modify Dim Text Color In Current Dimstyle

Jun 27, 2012

How to change the dim text color in current dimstyle with a lisp routine? I want to modify current dimstyle instead of override current dimstyle, so it can change all existing dim text color under the current dimstyle.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Modify Property - Insert Polyline As Block

Sep 22, 2011

I am starting with a polyline then i use the pasteblock command to insert that polyline as a block.Now i can pull up the property box and change the xyz scale.

I would like to know how to change these setting in my lisp.The scale will be x=1 y=0.1 z=1

View 7 Replies View Related







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