bijoyvm Posted October 14, 2010 Share Posted October 14, 2010 (command "dim" "DIMLDRBLK" "_ORIGIN" |) this is my first command it is working properly to change leader arrow but im trying change my variable to filled arrow using this command (command "dim" "DIMLDRBLK" "" |) but it is not working... all other arrow types are working except filled arrow ("") help please... Quote Link to comment Share on other sites More sharing options...
Lt Dan's legs Posted October 14, 2010 Share Posted October 14, 2010 (SETVAR 'DIMLDRBLK "OPEN");;whatever you're changing to SEE DIMBLK System Variable in help for all options Quote Link to comment Share on other sites More sharing options...
The Buzzard Posted October 15, 2010 Share Posted October 15, 2010 (edited) (command "dim" "DIMLDRBLK" "_ORIGIN" |) this is my first command it is working properly to change leader arrow but im trying change my variable to filled arrow using this command (command "dim" "DIMLDRBLK" "" |) but it is not working... all other arrow types are working except filled arrow ("") help please... I just would like to mention to you that the filled arrow is not really a block, But is a actually a solid. The other arrows are blocks. Edited October 15, 2010 by The Buzzard Quote Link to comment Share on other sites More sharing options...
The Buzzard Posted October 15, 2010 Share Posted October 15, 2010 (edited) I have this old dimstyle program I created the uses a list of names to choose the arrowhead. These are set to one variable through a conditional. Once a arrow style is chosen, I use (setvar "DIMLDRBLK" ARWSTYLE) with that variable. See example below: (progn (setq ARWSTYLE (fix ARWSTYLE)) (setq ARWSTYLE (nth ARWSTYLE ARS_LST)) (cond ((= ARWSTYLE "Architectural Tick") (setq ARWSTYLE "_ARCHTICK")) ((= ARWSTYLE "Box") (setq ARWSTYLE "_BOXBLANK")) ((= ARWSTYLE "Box Filled") (setq ARWSTYLE "_BOXFILLED")) ((= ARWSTYLE "Closed") (setq ARWSTYLE "_CLOSED")) ((= ARWSTYLE "Closed Blank") (setq ARWSTYLE "_CLOSEDBLANK")) [color=red][b]((= ARWSTYLE "Closed Filled") (setq ARWSTYLE "."))[/b][/color] ((= ARWSTYLE "Datum Triangle") (setq ARWSTYLE "_DATUMBLANK")) ((= ARWSTYLE "Datum Triangle Filled")(setq ARWSTYLE "_DATUMFILLED")) ((= ARWSTYLE "Dot") (setq ARWSTYLE "_DOT")) ((= ARWSTYLE "Dot Blank") (setq ARWSTYLE "_DOTBLANK")) ((= ARWSTYLE "Dot Small") (setq ARWSTYLE "_DOTSMALL")) ((= ARWSTYLE "Dot Small Blank") (setq ARWSTYLE "_SMALL")) ((= ARWSTYLE "Integral") (setq ARWSTYLE "_INTEGRAL")) ((= ARWSTYLE "None") (setq ARWSTYLE "_NONE")) ((= ARWSTYLE "Oblique") (setq ARWSTYLE "_OBLIQUE")) ((= ARWSTYLE "Open") (setq ARWSTYLE "_OPEN")) ((= ARWSTYLE "Open 30") (setq ARWSTYLE "_OPEN30")) ((= ARWSTYLE "Origin Indicator") (setq ARWSTYLE "_ORIGIN")) ((= ARWSTYLE "Origin Indicator 2") (setq ARWSTYLE "_ORIGIN2")) ((= ARWSTYLE "Right Angle") (setq ARWSTYLE "_OPEN90")) ) ) [b][color=red](setvar "DIMLDRBLK" ARWSTYLE)[/color][/b] You could try maybe using (command "._dim" "DIMLDRBLK" ".") although I am not sure. I think the period might work in your case. Or (setvar "DIMLDRBLK" ".") which I know will work. From AutoCAD Help Section: Type: String Saved in: Drawing Initial value: "" Specifies the arrow type for leaders. To return to the default, closed-filled arrowhead display, enter a single period (.). For a list of arrowhead entries, see DIMBLK. Edited October 15, 2010 by The Buzzard Quote Link to comment Share on other sites More sharing options...
bijoyvm Posted October 17, 2010 Author Share Posted October 17, 2010 (setvar "DIMLDRBLK" ".") this string is working properly thanks alot... Quote Link to comment Share on other sites More sharing options...
The Buzzard Posted October 17, 2010 Share Posted October 17, 2010 (setvar "DIMLDRBLK" ".") this string is working properly thanks alot... Your very welcome Quote Link to comment Share on other sites More sharing options...
Tharwat Posted October 17, 2010 Share Posted October 17, 2010 I have this old dimstyle program I created the uses a list of names to choose the arrowhead. These are set to one variable through a conditional. Once a arrow style is chosen, I use (setvar "DIMLDRBLK" ARWSTYLE) with that variable. See example below: (progn (setq ARWSTYLE (fix ARWSTYLE)) (setq ARWSTYLE (nth ARWSTYLE ARS_LST)) (cond ((= ARWSTYLE "Architectural Tick") (setq ARWSTYLE "_ARCHTICK")) ((= ARWSTYLE "Box") (setq ARWSTYLE "_BOXBLANK")) ((= ARWSTYLE "Box Filled") (setq ARWSTYLE "_BOXFILLED")) ((= ARWSTYLE "Closed") (setq ARWSTYLE "_CLOSED")) ((= ARWSTYLE "Closed Blank") (setq ARWSTYLE "_CLOSEDBLANK")) [color=red][b]((= ARWSTYLE "Closed Filled") (setq ARWSTYLE "."))[/b][/color] ((= ARWSTYLE "Datum Triangle") (setq ARWSTYLE "_DATUMBLANK")) ((= ARWSTYLE "Datum Triangle Filled")(setq ARWSTYLE "_DATUMFILLED")) ((= ARWSTYLE "Dot") (setq ARWSTYLE "_DOT")) ((= ARWSTYLE "Dot Blank") (setq ARWSTYLE "_DOTBLANK")) ((= ARWSTYLE "Dot Small") (setq ARWSTYLE "_DOTSMALL")) ((= ARWSTYLE "Dot Small Blank") (setq ARWSTYLE "_SMALL")) ((= ARWSTYLE "Integral") (setq ARWSTYLE "_INTEGRAL")) ((= ARWSTYLE "None") (setq ARWSTYLE "_NONE")) ((= ARWSTYLE "Oblique") (setq ARWSTYLE "_OBLIQUE")) ((= ARWSTYLE "Open") (setq ARWSTYLE "_OPEN")) ((= ARWSTYLE "Open 30") (setq ARWSTYLE "_OPEN30")) ((= ARWSTYLE "Origin Indicator") (setq ARWSTYLE "_ORIGIN")) ((= ARWSTYLE "Origin Indicator 2") (setq ARWSTYLE "_ORIGIN2")) ((= ARWSTYLE "Right Angle") (setq ARWSTYLE "_OPEN90")) ) ) [b][color=red](setvar "DIMLDRBLK" ARWSTYLE)[/color][/b] You could try maybe using (command "._dim" "DIMLDRBLK" ".") although I am not sure. I think the period might work in your case. Or (setvar "DIMLDRBLK" ".") which I know will work. From AutoCAD Help Section: Type: String Saved in: Drawing Initial value: "" Specifies the arrow type for leaders. To return to the default, closed-filled arrowhead display, enter a single period (.). For a list of arrowhead entries, see DIMBLK. A very great help from you Buzzard. Highly appreciated. Thanks a lot. Tharwat Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.