Jump to content

Current Dim Style Settings ( LEADER SETTINGS)


wimal

Recommended Posts

(setq hh;current text hight
(assoc 40; text hight of current text style
(entget (tblobjname "STYLE" (getvar "TEXTSTYLE")))
     ))

Above code is ok.But following not working.

(setq hh;current text hight
(assoc 40; text hight of current dim style
(entget (tblobjname "STYLE" (getvar "DIMSTYLE")))
     ))

How can I get the entity name of current dim style.

Actually I need to find out weather leader of current dim style has set to mtext and if so I want to change to none.

Link to comment
Share on other sites

Thanks sir

I used your code But I could not reach to my target.I try to find out weather current leader arrow has attached with annotive (Mtext). Can you help me to find out that.

Edited by wimal
Link to comment
Share on other sites

I try to find out weather current leader arrow has attached with annotive (Mtext).

 

Do you mean whether the MLeader Style is set to use MText, Block or None?

 

If so,

(= acmtextcontent
   (vla-get-contenttype
       (vla-item
           (vla-item
               (vla-get-dictionaries
                   (vla-get-activedocument
                       (vlax-get-acad-object)
                   )
               )
               "ACAD_MLEADERSTYLE"
           )
           (getvar 'cmleaderstyle)
       )
   )
)

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