Author Topic: DimText background fill  (Read 1940 times)

0 Members and 1 Guest are viewing this topic.

LUCAS

  • Newt
  • Posts: 32
DimText background fill
« on: June 30, 2009, 03:36:19 AM »
Code: [Select]
(R2008~R2010)
Why dxf 70 can’t add to dimstyle

(if (not (tblobjname "APPID" "ACAD_DSTYLE_DIMJAG"))
  (regapp "ACAD_DSTYLE_DIMJAG")
)
(if (not (tblobjname "APPID" "ACAD_DSTYLE_DIMTALN"))
  (regapp "ACAD_DSTYLE_DIMTALN")
)
(setq DST_DATA (entget (tblobjname "DIMSTYLE" "STANDARD")))
(setq PT1 (cdr (member (assoc 44 DST_DATA) DST_DATA)))
(setq PT2 (reverse
    (member (assoc 44 (reverse DST_DATA)) (reverse DST_DATA))
  )
)
(entmod
  (append PT2
  (list (cons 69 2) (cons 70 2)) ; Why dxf 70 can’t add to dimstyle??
  PT1
  (list '(-3
  ("ACAD_DSTYLE_DIMJAG" (1070 . 388) (1040 . 1.5))
  ("ACAD_DSTYLE_DIMTALN" (1070 . 392) (1070 . 0))
)
  )
  )
)

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: DimText background fill
« Reply #1 on: July 01, 2009, 12:03:12 PM »
Is there a question or is this donation?
I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans

T.Willey

  • Needs a day job
  • Posts: 5251
Re: DimText background fill
« Reply #2 on: July 01, 2009, 12:11:37 PM »
Is there a question or is this donation?

I think it is a question.  He is trying to add a background fill to the dim style through code.  I don't know how to do it.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Crank

  • Water Moccasin
  • Posts: 1503
Re: DimText background fill
« Reply #3 on: July 01, 2009, 03:34:17 PM »
With DXF I don't know it either, but you can change the variable DIMTFILL (and DIMTFILLCLR) and save the dimstyle again.
Vault Professional 2023     +     AEC Collection