Search the Community
Showing results for tags 'redefine'.
-
Redefine/Replace Block - Attributes Do Not Move???
ILoveMadoka posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
The lines are pointing to the insertion point of the blocks (4 different ones) I want to replace these blocks with this block The line points to the insertion point (Center) After a Replace Block command for each block this is the result I made these blocks from scratch just for this illustration so there is nothing "magical" about them. The block geometry moved to the new insertion point but the attributes did not move in any of the instances. How can I get the attributes to move the the "correct" location in relationship to the geometry? If I edit any of the blocks, the block shows the attribute in the center of each circle (desired location) I have to manually move each attribute for each instance. Is this simply the way it works or can I get the desired result? Can someone explain the procedure to automatically make this right?- 2 replies
-
- attributes
- redefine
-
(and 1 more)
Tagged with:
-
Hi, Written a tool for replacing (updating) blocks. Had some spare time untill my boss recently used the W-word again (work , yak!) Anywayz , its a prototype so I'm not sure its stable and safe yet because I only did some lab testing. I hope it will be usefull. Not sure if I will be able to work on it further any time soon because I still have a few ideas and wishes. gr. Rlx RlxBlk manual.doc RlxBlk.lsp RlxBlk.dcl
-
Auto lisp to redefine/insert multiple blocks w/o prompts??
Michael83 posted a topic in AutoLISP, Visual LISP & DCL
I know there's a bunch of posts on this but I could never find a lisp that could incorporate all, or multiple. lisps that can..auto run w/ ea. .dwg opened, redefine & replace multiple referenced blocks (about 10) keeping original location, & retaining attributes..w/o any prompts..I could be asking too much but any insight is greatly appreciated..I'm on hr 7 on this one..if it's easier..only one block has attributes and can make a separate lisp for that..or again if easier make a separate lisp for ea block..anything put together really that auto runs w/o prompts.. If u think I missed a post like this please let me know..again I really appreciate it -
I have a block with a flip action to move text from one side of the block to the other. We've revised the block and I'm using Insert/Redefine to update the drawings. The problem is, the flip action reverts to default and I have to flip them back. Is there a way I can lock the position of the flip before I Insert/Redefine? Many thanks for any help.
- 1 reply
-
- flip parameter
- dynamic blocks
-
(and 1 more)
Tagged with:
-
Problem with macro for creating several dimension styles
Sandervp posted a topic in The CUI, Hatches, Linetypes, Scripts & Macros
Hello everybody, I've created a macro for creating different dimension styles for different scales. We are using these dimension styles in our company. It works well if I use it in a new, empty drawing. But if I use it in an excisting drawing with a dimension style with the same name, I have got a problem..... I'll see this in the command line; "Enter name for new dimension style or [?]: "scale 20" That name is already in use, redefine it? :_dimclrd Invalid option keyword. That name is already in use, redefine it? :" "_dimclrd" should be the next command in the macro, but because "scale 20" is already in use, I need to do some other commands first. AutoCad stops with this macro at this point. If the first dimension style, which the macro should be create, already in use, the other dimension styles shall not be create. Is there a possibility/ sollution to change my macro so he creates every dimension style what he supposed to do? Also if one or more dimension styles already excist? The reason why; if you delete a dimension style because you think; "I don't need him any more." But you're wrong. Or somebody else goes further with the drawing and needs to draw something with another scale. You need to copy the 'wanted' dimension style from another (new/ excisting) drawing. Could somebody help me? This is the whole macro; ^C^C_dimclrd;1;dimltype;continuous;_dimlwd;-1;_dimdle;1.25;_dimdli;1.25;_dimclre;1;_dimltex1;continuous;_dimltex2;continuous;_dimlwe;-1;_dimexe;1.25;_dimexo;1.25;_dimblk;"";_dimldrblk;"";_dimasz;2;_dimcen;0;-style;;iso.shx;a;;;0;;;;;no;_dimtxsty;standard;_Dimclrt;2;_dimtfill;1;_dimtxt;1.8;_dimtad;1;_dimgap;1;_dimtoh;off;_dimtih;off;_dimtmove;0;_dimscale;1;_dimdec;0;_dimzin;0;_dimtolj;0;_dimse1;off;_dimse2;off;_dimrnd;5;_dimtofl;on;-dimstyle;s;"scale 1";_dimclrd;1;dimltype;continuous;_dimlwd;-1;_dimdle;1.25;_dimdli;1.25;_dimclre;1;_dimltex1;continuous;_dimltex2;continuous;_dimlwe;-1;_dimexe;1.25;_dimexo;1.25;_dimblk;"";_dimldrblk;"";_dimasz;2;_dimcen;0;-style;;iso.shx;a;;;0;;;;;no;_dimtxsty;standard;_Dimclrt;2;_dimtfill;1;_dimtxt;1.8;_dimtad;1;_dimgap;1;_dimtoh;off;_dimtih;off;_dimtmove;0;_dimscale;2;_dimdec;0;_dimzin;0;_dimtolj;0;_dimse1;off;_dimse2;off;_dimrnd;5;_dimtofl;on;-dimstyle;s;"scale 2";_dimclrd;1;dimltype;continuous;_dimlwd;-1;_dimdle;1.25;_dimdli;1.25;_dimclre;1;_dimltex1;continuous;_dimltex2;continuous;_dimlwe;-1;_dimexe;1.25;_dimexo;1.25;_dimblk;"";_dimldrblk;"";_dimasz;2;_dimcen;0;-style;;iso.shx;a;;;0;;;;;no;_dimtxsty;standard;_Dimclrt;2;_dimtfill;1;_dimtxt;1.8;_dimtad;1;_dimgap;1;_dimtoh;off;_dimtih;off;_dimtmove;0;_dimscale;10;_dimdec;0;_dimzin;0;_dimtolj;0;_dimse1;off;_dimse2;off;_dimrnd;5;_dimtofl;on;-dimstyle;s;"scale 10";_dimclrd;1;dimltype;continuous;_dimlwd;-1;_dimdle;1.25;_dimdli;1.25;_dimclre;1;_dimltex1;continuous;_dimltex2;continuous;_dimlwe;-1;_dimexe;1.25;_dimexo;1.25;_dimblk;"";_dimldrblk;"";_dimasz;2;_dimcen;0;-style;;iso.shx;a;;;0;;;;;no;_dimtxsty;standard;_Dimclrt;2;_dimtfill;1;_dimtxt;1.8;_dimtad;1;_dimgap;1;_dimtoh;off;_dimtih;off;_dimtmove;0;_dimscale;20;_dimdec;0;_dimzin;0;_dimtolj;0;_dimse1;off;_dimse2;off;_dimrnd;5;_dimtofl;on;-dimstyle;s;"scale 20";_dimclrd;1;dimltype;continuous;_dimlwd;-1;_dimdle;1.25;_dimdli;1.25;_dimclre;1;_dimltex1;continuous;_dimltex2;continuous;_dimlwe;-1;_dimexe;1.25;_dimexo;1.25;_dimblk;"";_dimldrblk;"";_dimasz;2;_dimcen;0;-style;;iso.shx;a;;;0;;;;;no;_dimtxsty;standard;_Dimclrt;2;_dimtfill;1;_dimtxt;1.8;_dimtad;1;_dimgap;1;_dimtoh;off;_dimtih;off;_dimtmove;0;_dimscale;50;_dimdec;0;_dimzin;0;_dimtolj;0;_dimse1;off;_dimse2;off;_dimrnd;5;_dimtofl;on;-dimstyle;s;"scale 50";_dimclrd;1;dimltype;continuous;_dimlwd;-1;_dimdle;1.25;_dimdli;1.25;_dimclre;1;_dimltex1;continuous;_dimltex2;continuous;_dimlwe;-1;_dimexe;1.25;_dimexo;1.25;_dimblk;"";_dimldrblk;"";_dimasz;2;_dimcen;0;-style;;iso.shx;a;;;0;;;;;no;_dimtxsty;standard;_Dimclrt;2;_dimtfill;1;_dimtxt;1.8;_dimtad;1;_dimgap;1;_dimtoh;off;_dimtih;off;_dimtmove;0;_dimscale;100;_dimdec;0;_dimzin;0;_dimtolj;0;_dimse1;off;_dimse2;off;_dimrnd;5;_dimtofl;on;-dimstyle;s;"scale 100"; Thanks -
Redefining a block via a custom marco button
mrgrotey posted a topic in The CUI, Hatches, Linetypes, Scripts & Macros
Hi guys, long time no post. I have a LOT of drawings all with the same block in and I have updated the block so therefore want to redefine all the blocks, ...as you do. I only have autocad LT 2010 so havent got the LISP coding option. I am trying to do it by assigning the following example code to a button and running it. The only problem is it doesn't run it properly... block name for example is 'box' C^C^_-insert;box=C:\users\michael\desktop\box.dwg;y;C^C^ All the individual lines work when typed but when used in the button macro it stops at: C^C^_-insert;box=C: ...and doesnt accept the backslash and so stops the macro from continuing. How can I get it to run a file path??? this is doing my swede in -
Command to redefine/update mulitple wblock?
Benjo posted a topic in AutoCAD 2D Drafting, Object Properties & Interface
is there a command to redefine/update mulitple wblock?