Jump to content

(command "dim" "DIMLDRBLK" "" |) is not working


bijoyvm

Recommended Posts

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

Link to comment
Share on other sites

(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 by The Buzzard
Link to comment
Share on other sites

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 by The Buzzard
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...