bijoyvm 发表于 2022-7-6 10:18:22

(command "dim" "DIMLDRBLK" ""

(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...

Lt Dan's l 发表于 2022-7-6 10:28:31

(SETVAR 'DIMLDRBLK "OPEN");;whatever you're changing to
 
SEE DIMBLK System Variable in help for all options

The Buzzard 发表于 2022-7-6 10:41:35

 
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.

The Buzzard 发表于 2022-7-6 10:49:56

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"))   ((= ARWSTYLE "Closed Filled")      (setq ARWSTYLE "."))   ((= 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"))   ) ) (setvar "DIMLDRBLK" ARWSTYLE)
 
 
 
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.

bijoyvm 发表于 2022-7-6 11:01:35

(setvar "DIMLDRBLK" ".")

this string is working properly
 
thanks alot...

The Buzzard 发表于 2022-7-6 11:14:49

 
Your very welcome

Tharwat 发表于 2022-7-6 11:18:36

 
A very great help from you Buzzard.
 
Highly appreciated.
 
Thanks a lot.
 
Tharwat
页: [1]
查看完整版本: (command "dim" "DIMLDRBLK" ""