AutoCAD Civil 3D :: Change Label Visibility Using Autolisp?
Oct 10, 2013I am tring to change the label visibility of a point label style ,not sure it can be done, I search around for a bit I can seem to find anything useful...
View 2 RepliesI am tring to change the label visibility of a point label style ,not sure it can be done, I search around for a bit I can seem to find anything useful...
View 2 RepliesI 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] ....
I've read or seen a video on this before, but don't recall fix. As you can see in the attached image that half of my station label is missing, is there a fix for this. I think I recall reading you need to include a data band strictly for positioning of profile view.
View 4 Replies View RelatedThe 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 RelatedI have 4 Dynamic Blocks with the same name, but each are on different layout pages. I need to change the visibility state of all 4 to the same value. So far every attempt of mine has failed.
My process at this point is to: build a selectionset of all 4 Dynamic Blocks with the same effective name, convert the selectionset to a list of entity names, then use a foreach to change the visibility states one at a time. Currently, I get "error: bad argument type: lselsetp <Entity name: 7ffff7b6c90>". <Entity name: 7ffff7b6c90> is the entity name of the first block in the list. I'm guessing it's because the block is found on a non-current tab
(defun chgdynprop (e propname newval / obj v vval sal tot i) (setqobj (if(= (type e) 'vla-object) e (vlax-ename->vla-object e))) (if (= (vlax-get-property obj
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 RelatedCan I change the alignment that is associated with an alignment label (station offset etc)?
View 4 Replies View RelatedIs there a way to change the direction of a Label? I want all my text facing the same direction and some of my Labels for contours are turned the wrong direction.
AutoCAD Civil 3D 2012 SP4
Windows 7 (64)
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.
View 3 Replies View RelatedI would like to change the station label format from 00+000.000 to 00,0+00.000
To move the + is easy, but how can I add the ,?
This type of station label is the standard by the Deutsche Bahn, so it's not that far-fetched.
Win7 64bit
HP z400 Workstation
ATI FirePro V4800
C3D2013
How do you Change Station Label Format from 20+00.00 to 20+00 ??
View 3 Replies View RelatedI have Civil 3D 2013 and would like to define the station tick marks. Unfortuantely, the only style that appears on the Import pull down is "Standard". How do I go about downloading or loading from an appropriate program folder the "Tick" style set?
View 3 Replies View RelatedI want to change my elevations color to green and the other one to yelow. I can't not find this option. I using 3D 2011.
View 1 Replies View RelatedThe defaul label style for the Elevation of points is set to 3 decimal places. We are trying to change the elevation display to 2 decimal places. We have tried the directions in the following discussion: [URL].......
Which is:
Toolspace
->Settings
-->Drawing name
--->Edit Drawing Settings
---->Ambient Settings
----->Elevation
------>Precision -> We modify from 3 to 2 decimal places.
It does not modify the display settings.
Also:
Toolspace
->Settings
-->Drawing
--->Point
---->Label Styles
----->(right-click) Edit label styles
------>Layout
------->Text
-------->Contents
--------->click on the "..." (three points) button
(Open "Text Component Editor - Contents"
--------->Select Point Elevation in the driop down list.
---------->Precision: Set to 0.01
------------>Ok, Apply, etc...
This does not seem to work either.
how do you change their layer? i have been through the settings tab under "alignment", "station offset". i also right clicked on one and went through the properties.
View 4 Replies View RelatedIs 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 RelatedC3D 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?
Is there a way to "Edit Label Text" in a Parcel area label? Similar to the way you can edit it in other styles.
View 9 Replies View RelatedI'm trying to label my Profile label stations as raw stations, 20~20 meters, and I'm not being able to adapt the format to STATION 0, STATION 2, without any plus zeros or +, or -, or commas, or anything, as following in the image.
Is there a easy way to do it?
Using Civil 3d2012, Is it possible to change the alignment label style set after the alignment has been created? For example, for an alignment that was created with alignment label set X - change the label set to alignment label set Y? It seems like this should be pretty easy, I must be missing something obvious.
View 2 Replies View RelatedI 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
Is there any way to change the referenced surface on a Surface Elevation Label. I can see the surface in the properties but cannot change it.
C3D 2011
(Part of a table that shows the block in the first column the block name in the second and the count in the third)
(IF (SETQ ss (SSGET "x" '((0 . "INSERT") (2 . "PoolLight,`*U*") (410 . "Model")))) ;| <- Just an example the full blocklist is much longer and not all are dynamic |; (WHILE (SETQ Ent (SSNAME ss 0)) (SETQ BlkName (CDR (ASSOC 2 (ENTGET Ent)))) (IF(SETQ tempList (ASSOC BlkName EndList)) (SETQ EndList (SUBST (CONS BlkName (1+ (CDR tempList))) tempList EndList)) (SETQ EndList (CONS (CONS BlkName 1) EndList)) ) (SSDEL Ent ss) ))
getting the visibility state name for each instance of a dynamic block. The blocks display properly with the count, but the block name displays the Uname - *U59, *U61, *U66, *U68, etc...
(Also, why LISP created tables always seem to force a Title or Header no matter how I try to supress it?)
(VLA-PUT-TITLESUPPRESSED TblObj :VLAX-TRUE)(VLA-PUT-HEADERSUPPRESSED TblObj :VLAX-TRUE)
Both seem to have no effect. If I don't include one extra row to the table then it fails to populate all together.
Is it possible to pin a label to another label ? Or pin a label to an object so that when the first label (or object) is moved, the other moves with it ?
View 2 Replies View RelatedI wonder if it is possible to have a routine that captures the visibility name of a dynamic block and place it in a text in the drawing?
For example, I have a block with 10 visibilities. I copied this block 10 times in the project and I put each one with a different visibility. Now I would like to make a label with the name of each visible state next to each block.
Attached is a lisp that reads an attribute block value and uses that value to set a named view. The attribute block is a diesel expression field which reads the drawing number, so it changes as the drawing is saved to a new number. I use it when I am preparing road alignment drawings. I prepare the first drawing in the set, saving views for all drawings and when I'm done I copy that drawing 001 as many time as I need, rename them drawing 002, drawing 003 etc. and use the attached lisp with scriptpro to set all my saved views.
I also have a dynamic block called "key" in the drawing with visibility states matching the named views.
either expand this lisp or create a new lisp to set the visibility using the "VN" variable.
i am searching for a lisp for data extractiion from selected blocks. Here Iam attaching sample blocks drawing for reference. These blocks containing visability features. I need output excel in the below snap shot format.
View 8 Replies View RelatedMy goal is to have a quantity count of a specific dynamic blocks visibility state and for it to be updated when changes are made, without having to recreate the Table. I want the total amount to be where I have the Fields.
My test drawing is the perfect example, assuming I have all the items that I need in the drawing. I don't want to recreate the Table and re-link each Field to the appropriate cells of the table. Which no one wants to do. In this test drawing the objects in Blue will be used in the final production drawing.
I noticed if I add a new item or remove an item entirely I'll have to redo the Table and fields. Which defeats the time I'm trying to save.
I currently insert certain dynamic block into drawings with a short function that first inserts the specified dynamic block and then immediately changes the visibility state to one specified as an argument to the function.
I'm wondering if it is possible / better / faster to somehow insert the dynamic block with the decided visibility state simultaneously. I've been amazed by many capabilities of VL so I wouldn't at be surprised if this can be done. (the dynamic blocks I'm inserting could have many multiples in the drawing but I need this method to only affect the one being inserted at the time the function is called. I currently use entlast to decide which one is being inserted.)
I have created a bunch of templates (title block type drawings) for my company. In these templates there is a dynamic block used for a particular note. Based on customer number, this note will be changed.
We have a program that will insert the correct template based on the drawing type. It will know the customer number and change the dynamic block visibility state to reflect the correct text in the note.
Here's the problem; I don't know why, but sometimes the visibility state does not change. It's not the code as it works just fine in some drawings.
I've gone in and just changed the visibility state name, then changed it back, then saved the drawing and it worked. In some cases, I've also just gone into the template and deleted the dynamic block and re-inserted it, and it began to work again.
Having trouble with dynamic block visibility states not working when using an automated process?
I have a dynamic block with several visibility states, and each visibility state has one invisible-constant attribute. I can't seem to wrap my head around dynamic blocks well enough to get the value from the active visibility state invisible constant attribute. I know how to get the visibility state like this:
(setq ss (ssget "_x" (list '(0 . "INSERT") '(2 . "`*U*,<DynBlockName>") (cons 410 (getvar 'ctab)))))
but what next?