Help with Routine please

cadman_meg

Usenet Archive
Joined
Jul 14, 2003
Messages
51
Reaction score
0
This does not seem to work. Can someone please look at his and give me a hand? Thanks.

;SETUP TO LOCAL STYLE - CURRENTLY ... SW - DRESSLER
;WRITTED SPECIALLY BY A.Nielsen
(command ".UNDO""group")
(setq EPT (getvar"EXPERT"))
(setq SCALE(getvar"DIMSCALE"))
(setvar"EXPERT"5)
(command".STYLE""ISO""ISO3098B""0""1""""""""")
(progn (setvar"DIMALT"0) ; alternative dim unit
       (setvar"DIMALTD"4) ; alternative dim unit decimal places        (setvar"DIMALTF"25.4) ; alt unit factor (=inches)        (setvar"DIMASO"1) ; associative dimns        (setvar"DIMASZ"3) ; arrow size        (setvar"DIMCEN"3) ; centremark size 3        (setvar"DIMCLRD"256) ; dim line color 256=BYLAYER        (setvar"DIMCLRE"256) ; ext line color 256=BYLAYER        (setvar"DIMCLRT"2) ; text color        (setvar"DIMDEC"2) ; text decimal places !! R13 only !!        (setvar"DIMDLE"0) ; dim line extension        (setvar"DIMDLI"10) ; baseline/cont spacing        (setvar"DIMEXE"1) ; extension line extension        (setvar"DIMEXO"2) ; extension line offset        (setvar"DIMGAP"1) ; text gap 1mm        (setvar"DIMLFAC"1.000) ; linear factor        (setvar"DIMFIT"1) ; text location FORCE INSIDE !!R13 only !!        (setvar"DIMLIM"0) ; limits        (setvar"DIMPOST""") ; post comment        (setvar"DIMRND"0.05) ; roundoff        (setvar"DIMSAH"0) ; no used defined arrow blocks        (setvar"DIMSE1"0) ; 1st ext line present        (setvar"DIMSE2"0) ; 2nd ext line present        (setvar"DIMSHO"1) ; dim updates while dragging        (setvar"DIMSOXD"0) ; allow dim lines outside ext lines        (setvar"DIMTAD"1) ; Text above dim line 1mm        (setvar"DIMTFAC"0.670) ; tol text height to dim text        (setvar"DIMTIH"0) ; align to dim line        (setvar"DIMTIX"0) ; text inside extension lines        (setvar"DIMTM"0) ; minus tol. value        (setvar"DIMTOFL"1) ; text outside force line inside        (setvar"DIMTOH"0) ; text outside horizontal        (setvar"DIMTOL"0) ; no tolerance        (setvar"DIMTP"0) ; plus tol. value        (setvar"DIMTSZ"0) ; use arrows        (setvar"DIMTVP"0.000) ; text vert. position        (setvar"DIMTXT"2.5) ; text height 2.5mm        (setvar"DIMTXSTY""ISO");Dim Text Style !! R13 only !!        (setvar"DIMUPT"1); user position text !! R13 ONLY !!        (setvar"DIMZIN"8) ; zero supression        (command".COLOR""BYLAYER")        (command".LINETYPE""S""BYLAYER""")        (command".DIM1""SAVE""STANDARD")        (setvar"DRAGMODE"2)        (setvar"ELEVATION"0)        (setvar"THICKNESS"0) ) (terpri) (terpri) (terpri) (initget"Y N") (setq ANS"N") (setq ANS(strcase(getkword"\nDo you want to update ALL the Dimensions in this drawing? y/n <N> "))) (if (or(= ANS "N")(= ANS nil))        (prompt"\n\n OK .. No changes made to Dimensions... ")        (command".DIM1""UPDATE"(ssget "X"(list(cons 0 "DIMENSION")))"") ) (terpri) (prompt"\n\n OK .. Now you may go out and play. ") (setvar"EXPERT"EPT) (command ".UNDO""end")
(princ)
 
I thought it creates new dimension styles and sets
them current? i.e. When button '20' clicked, the routine creates dimstyle 20 with all the relevant dimfit etc.
 
There's nothing in what you posted that would create a new dimstyle. All it does is to set a bunch of overrides and give the user the option of updating all (or none) of the existing dimensions in a drawing. There are a number of other errors, as well. Where did you get this routine? It doesn't appear to be complete, since it will attempt to execute on loading, and then results in a number of syntax errors.
___
 
Got this from a cad user group that is email based. Called SPAUG. Most things on their are pretty good, but sometimes you get those bug I guess. Do you have anything better? Or does someone else here? Thanks.
 

Latest threads

Back
Top