Author Topic: Dimstyle Lisp Help  (Read 13513 times)

0 Members and 1 Guest are viewing this topic.

Anonymous

  • Guest
Dimstyle Lisp Help
« Reply #15 on: February 18, 2004, 01:18:43 PM »
This one works fine. When I initiate the command to run this code the textscreen pops up. How can I avoid this?

Code: [Select]

(defun c:insertdim ()
(command "._style" "ROMANS" "ROMANS.SHX" "0" "1" "" "" "" "")
(setvar "lunits" 4)
(setvar "DIMASSOC" 2)
(setvar "DIMBLK" "_ARCHTICK")
(setvar "DIMALT" 0)
(setvar "DIMSCALE" 48)
(setvar "DIMASZ" 0.125)
(setvar "DIMEXE" 0.0625)
(setvar "DIMDLE" 0)
(setvar "DIMTIH" 0)
(setvar "DIMTOH" 0)
(setvar "DIMTAD" 1)
(setvar "DIMZIN" 3)
(setvar "DIMTXT" 0.125)
(setvar "DIMALTF" 25.4)
(setvar "DIMGAP" 0.0625)
(setvar "DIMALTD" 2)
(setvar "DIMTOFL" 0)
(setvar "DIMUNIT" 4)
(setvar "DIMDEC" 4)
(setvar "DIMALTU" 2)
(setvar "DIMAUNIT" 0)
(setvar "DIMJUST" 0)
(setvar "DIMALTTZ" 0)
(setvar "DIMTXSTY" "ROMANS")
(command "DIMSTYLE" "S" "STANDARD" "Y")
(princ)
)

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Dimstyle Lisp Help
« Reply #16 on: February 18, 2004, 02:40:47 PM »
The only thing that got my attention is DIMASSOC.
I'm using acad2k and it is 1 or 0.
What does 2 stand for?

CAB
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

SMadsen

  • Guest
Dimstyle Lisp Help
« Reply #17 on: February 18, 2004, 02:49:25 PM »
DIMASSOC doesn't affect dimstyles, does it? .. but you might just have a point there?

Anonymous

  • Guest
Dimstyle Lisp Help
« Reply #18 on: February 18, 2004, 03:19:31 PM »
This is from the HELP!!!

Associative dimensions. Automatically adjust their locations, orientations, and measurement values when the geometric objects associated with them are modified. TheDIMASSOC system variable is set to 2.
Nonassociative dimensions. Selected and modified with the geometry they measure. Nonassociative dimensions do not change when the geometric objects they measure are modified. The dimension variable DIMASSOC is set to 1.
Exploded dimensions. Contain a collection of separate objects rather than a single dimension object. The DIMASSOC system variable is set to 0.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Dimstyle Lisp Help
« Reply #19 on: February 18, 2004, 03:38:15 PM »
You see I am using an older version of ACAD than you.
Even the var name has changed.

Quote
Type: Switch
Saved in: Drawing
Initial value: On
Controls the associativity of dimension objects.

Off   Creates no association between the various elements of the dimension. The lines, arcs, arrowheads, and text of a dimension are drawn as separate objects.
On   Creates an association between the elements of the dimension. The elements are formed into a single object. If the definition point on the object moves, the dimension value is updated.

DIMASO is not stored in a dimension style.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

CADaver

  • Guest
Dimstyle Lisp Help
« Reply #20 on: February 18, 2004, 05:04:52 PM »
Quote from: CAB
You see I am using an older version of ACAD than you.
Even the var name has changed.


That happened somewhere between R14 and 2k2

DIMASO became obsolete
DIMASSOC=0  -  Dumb entity dims, text, lines, solids
DIMASSOC=1  -  Associative Dims like we're used to
DIMASSOC=2  -  TRANS-SPATIAL Dims; dims in PS read the actual MS length (not real stable in R2K2, sometimes a 12'-0" model dim shows up as 3")

daron

  • Guest
Dimstyle Lisp Help
« Reply #21 on: February 18, 2004, 06:12:36 PM »
>When I initiate the command to run this code the textscreen pops up. How can I avoid this?

At the end of your code type (graphscr)

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Dimstyle Lisp Help
« Reply #22 on: February 18, 2004, 10:28:11 PM »
Quote from: Anonymous
This one works fine. When I initiate the command to run this code the textscreen pops up. How can I avoid this?

Code: [Select]

(setvar "cmdecho" 0)
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

V-Man

  • Bull Frog
  • Posts: 343
  • I exist therefore I am! Finally Retired!
Dimstyle Lisp Help
« Reply #23 on: February 19, 2004, 07:55:28 AM »
Thanks guys for all your help.

Don
AutoCAD 9 - 2023, AutoCADMap 2008 - 2010, Revit 2012 - 2022, Autocad Civil 3D 2023