Search the Community
Showing results for tags 'attribute'.
-
Create field from attribute in block and put it directly into dimension.
fromMlm posted a topic in AutoLISP, Visual LISP & DCL
Hi all, Again I have found a lisp Lee Mac made that copies a field into a dimension, "copyfield", but it requires that the field already exists... So is there a way to create a field from an attribute in a block and then insert the field directly into a dimension? Thanks in advance. -
I have difficult time finding a command that would match a block's attribute (text height, text rotation, and text scale) with a source block. I had found a LISP routine that would match the block itself with a source block but it did not include attributes. I don't need to match attibute values,...
-
Lisp to sequentially fill in attributes based on selection
PrimeTimeAction posted a topic in AutoLISP, Visual LISP & DCL
I have drawing with a bunch of blocks with attributes tags. Among the attribute tags the following three are of importance: ID Next Previous The ID attribute values are already entered in the blocks and are unique. I would like to have a lisp that will enable me to sequenti... -
What is the best way to make a rebar table from a CAD drawing
khoshravan posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
Dear Civil Engineers I have a drawing of rebars for a concrete beam as follows: Example: 2x2T16(F.B.)/L=800 It consists: 1-position numbers inside circle. They are not typed them in above drawing. 2- number of rebars: 2x2=4 for two side of the beam 3-T: to show t...- 2 replies
-
- civil_engineer
- rebar
-
(and 2 more)
Tagged with:
-
As posted over at theSwamp, I thought I'd post it here for you guys also CopyText.lsp The program will allow a user to copy the text content from a source object to a selection of destination objects or swap the text content between two objects. The user may select from Text, MT...
-
Having written the first draft of my old 'Global Attribute Editor' program almost three years ago, I thought it was about time I offered something new and improved. And so, I've spent some time putting together a new and improved... Batch Attribute Editor A full d...
-
How to get the block attribute as a list ? (what is the string by vlax-invoke ?)
delight-shadow posted a topic in AutoLISP, Visual LISP & DCL
I have a dynamic block which have some attributes and I'd like to get the contents of the attributes. For example, if the block has 2 attributes, attr1_size and attr2_color, and the value of attr1_size is small , and the value of attr2_color is red, what I need is a list , (attr1_size small)(a...- 15 replies
-
- attribute
- iacadattributereference
-
(and 1 more)
Tagged with:
-
All by myself... kinda. ATTRIB Defined Width
RubberDinero posted a topic in AutoLISP, Visual LISP & DCL
(defun c:awz ( / sUndo enx atent atent_list) (setq sUndo (vlax-invoke (vla-get-ActiveDocument (vlax-get-acad-object)) 'StartUndoMark)) (setvar 'errno 0) (while (/= 52 (getvar 'errno)) (setvar 'errno 0) (setq atent (car (nentsel "\nSelect multiline attribute to change Defined Width to 0: "))) (con... -
Hi, I am Michel Can you kindly to help me to. I need a lisp for a cable routing. I have just a block consist of 3 attributes (TAG, SRTP, MVZ). I need to extract each relating value in separate column in excel. For example, if I select 5 blocks in drawing, I need to have 5 columns,...
-
Setting Visibility State based on Attribute value
Nomad posted a topic in AutoLISP, Visual LISP & DCL
Hi, I have a dwg with a bunch of the same block in it (called Cabinet). This particular block has a number of visibility states. I have assigned an attribute (called SetVisState) to the block that I can modify via ATTOUT and ATTIN. I want a LISP routine to check this attribute in each block... -
I came across the attached LISP routine that allows attribute information to be extracted into an excel document. Unfortunately this code searches the entire drawing for attributes, when I need only specific blocks to be selected. I am looking to modify the following code, so that it will prompt me...
- 17 replies
-
- data extraction
- attribute
-
(and 1 more)
Tagged with:
-
Exchange Same-Name Attribute Block With New Tag Definition
"Mitch" posted a topic in AutoCAD Drawing Management & Output
Drawing A: old tag definition Drawing B: new tag definition Hi Guys, I have an opened drawing file A with an old attribute tag definition and brought in another attribute block with the same name but having a new attribution tag definition from a drawing file B. I had pu... -
Hello, I'm searching to make a LISP, to change the layer of an attribute. Actually it in "TopoAlt" Layer, I like to change in "0" layer (or other) I thinked about DXF code but i don't find it with dumpallproperties. "Battman" command would be a good solution but I can't...
-
Hi, I have 3 drawings, each with 50+ layers. The client wants me to export each individual layer as an individual SHP file, and needs me to run the export every couple of months. I can write up a script file specifying each layer etc, the catch is that I also need to export the Attribute Data from...
-
Hi All, I want to make a lisp program to add prefix/suffix to all attributes of a selected block. Say, what I want to add is "(W1)". If the block has two attributes and if the attributes have their values 12134 and 23564, it should become 12134 (W1) and 23564 (W1) This process has to be looped s...
- 19 replies
-
- attribute suffix
- attribute prefix
-
(and 2 more)
Tagged with:
-
i have so many block attribute in my drawing, when i selection attribute and use attout. the result from txt file the list become not sequential. for example : I want the order to remain the same
-
Change Attribute to use BOLD text during adding attribbute
Stuart68 posted a topic in AutoLISP, Visual LISP & DCL
Hi, I am a beginner with AutoLISP. I have adapted a program found within this forum that adds attributes to an already existing block within a drawing. I have been able to change the font to ARIAL, but I would also like to make it BOLD, how can this be done?... -
Lisp for connect between attribute definition values (Electrical Lisp)
jntm226 posted a topic in AutoLISP, Visual LISP & DCL
TL;DR I need to connect blocks using attribute values. I created multiple blocks and attribute with different properties (Annotative, scaled attribute text to 1:50, Upside down, Backward, Invisible, Constant, Verify, Preset, Multiple lines, Lock position, Visibility parameters) Req... -
INSERT FIELD TO A SPECIFIC ATTRIBUTE TAG INSTANTLY (MEASUREMENT/DIMENSION)
joemcanciller posted a topic in AutoLISP, Visual LISP & DCL
Hi guys, Im looking for lisp routine that instantly inserts field for measurement of dimension line to an attribute text or specific attribute tag in a block. i.e. I have this dimension line "dim A" and a tag "cutting_length" in the attribute, such that the attribute value will change ac...- 9 replies
-
- insert field
- lisp
-
(and 2 more)
Tagged with:
-
Transfer Attributes from one block to another
Ranger-uk posted a topic in AutoLISP, Visual LISP & DCL
I've been looking for a routine that will allow me to transfer an attribute from one block to another. Ideally I'd like to click on one block which contains the attribute I want (from a field called ID_1), then click on another block and copy the attribute to another specific field (ID_2). I need to... -
Hello, In this DWG i need to pair text (which is room function) with block attribute "FUNCTION" that i've created. I can do this manually but it's over 1000 blocks ,so that make me wonder is it possible to create LISP which take nearest text into block attribute. I've found that LISP (ht...
-
AutoCAD export object data with nearest block attributes
dijwar.bozyel posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
Hello, I am student and I need help to make civil drawing to map drawing. I have a drawing which has rf_id and polylines but rf_id is block reference and this is not related to polyline. How can I relate these values together?- 2 replies
-
- attribute
- objectdata
-
(and 1 more)
Tagged with:
-
I have created Dynamic Block with grips and Attribute linked to the parameter. Now I override that attribute value to a manual value through a program and change the parameter. Now, when I move the grips of dynamic block, the attribute value linked to it doesn't change and remains as manual val...
-
Get part of dwg file name and write it on a inside attribute block.
CafeJr posted a topic in AutoLISP, Visual LISP & DCL
Hello Guys, I have a doubt, someone knows if has some Lisp to get the last digits (specified - user input) of a dwg file name (in Windows explorer) and write it on a specific attribute name on a internal block. Eg.: I have a folder with 600 pages dwg files, so, the last numbers of it is a s... -
Hi, is there a way to save my drawing with its name in a directory by using a Attribute value. Example: Drawingname: test.dwg blockname: TitleBlock Attribute: SF:WE Attribute-Value: test2 And it should save the drawing in: C:drawing/test drawing/(attribute-value)/... but...