Jump to content

Strikethough a dimension


MarcSim14

Recommended Posts

Hello everybody,

I'm new in this forum and hoping someone can help me with this question.

I'm trying to create a Strikethrough with a line and not the %%K function for a dimension. I tried Lee-Mac's Lisp, but it doesn't seem to work on dimension. Does anyone have any idea how I could achieve this?

Lee-Mac program is awsome ! but I don't know why is not working for dim.

 

Thanks to all !! and sorry for my english :)

 

Link to comment
Share on other sites

@MarcSim14 The formatting code is not "%%K", you have to use "\K" as technically it is MTEXT. If adding from a Lisp program it needs to be escaped in the replacement string with an extra backslash like "{\\K<>}". This is how the editor in AutoCAD formats it when you add a strikethrough in the internal editor. You can also format it like "\\K<>\\k". Observe the entity data after adding a strikethrough:

((-1 . <Entity name: 1d836776dc0>) (0 . "DIMENSION") (330 . <Entity name: 1d83b5972d0>) (5 . "1D44") (100 . "AcDbEntity") (67 . 1)
(410 . "Sheet1") (8 . "Dimension") (100 . "AcDbDimension") (280 . 0) (2 . "*D10") (10 6.41318 6.17941 0.0)
(11 5.35547 6.17941 0.0) (12 0.0 0.0 0.0) (70 . 32) (1 . "{\\K<>}") <---- SEE HERE!
(71 . 5) (72 . 1) (41 . 1.0) (42 . 2.11541) (73 . 0) (74 . 0) (75 . 0) (52 . 0.0) (53 . 0.0) (54 . 0.0) (51 . 0.0) (210 0.0 0.0 1.0)
(3 . "AM_ANSI") (100 . "AcDbAlignedDimension") (13 4.29777 5.26572 0.0) (14 6.41318 5.26572 0.0) (15 0.0 0.0 0.0) (16 0.0 0.0 0.0)
(40 . 0.0) (50 . 0.0) (100 . "AcDbRotatedDimension"))

 

For more info:

AutoCAD 2024 Help | Format Codes for Alternate Text Editor Reference | Autodesk
https://help.autodesk.com/view/ACD/2024/ENU/index.html?guid=GUID-7D8BB40F-5C4E-4AE5-BD75-9ED7112E5967

 

Edited by pkenewell
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...