Author Topic: What? Why?! Dimensions...again!  (Read 2981 times)

0 Members and 1 Guest are viewing this topic.

Bethrine

  • Guest
What? Why?! Dimensions...again!
« on: August 07, 2014, 05:40:59 PM »
 :knuppel2:

danallen

  • Guest
Re: What? Why?! Dimensions...again!
« Reply #1 on: August 07, 2014, 05:51:20 PM »
ordinate dimensions copied thus moved origin points?

here is rough code to fix existing ordinates to have new origin
Code: [Select]
;;; Reset orgin point of ordinate dimensions
(defun c:DimOrdFix ( / pt1 ed en prefix suffix str)
  (setq pt1 (XYZ_getpoint nil "\nEnter New Ordinate Dimension Origin: " (cons 0 0)))
  (prompt "\nSselect Ordinate dimensions to change: ")
  (setq ss1 (ssget '((0 . "Dimension"))))
  (setq ssnum (sslength ss1))
  (if (and pt1 ss1)
    (progn
      (setq pt1 (trans pt1 1 0))
      (while (>= (setq ssnum (- ssnum 1)) 0)
          (setq ed (entget (setq en (ssname ss1 ssnum))))
          (if (member "AcDbOrdinateDimension" (massoc 100 ed))
            (progn
              (setq ed (subst (cons 10 pt1) (assoc 10 ed) ed))
              (entmod ed)
              (entupd en)
            ) ;_progn
          ) ;_if
      ) ;_while
    ) ;_progn
    (princ " - command exited!")
  ) ;_if
)

;;;==========================================================
;;; Get Point with Default - derived Looking Glass Microproducts
;;;==========================================================
(defun XYZ_getpoint (base prmpt default)
   (Setq
      prmpt (Strcat
               prmpt
               (If default
                  (Strcat " <" (vl-princ-to-string default) ">")
                  ""
               )
               ": "
            )
   )
   (Cond
      ((If base
          (GetPoint base prmpt)
          (GetPoint prmpt)
       )
      )
      (default)
   )
)

Bethrine

  • Guest
Re: What? Why?! Dimensions...again!
« Reply #2 on: August 08, 2014, 10:11:08 AM »
 :tickedoff: Stupid dimensions! They're like toddlers! Won't stay where I put them!  :tickedoff:

Greg B

  • Seagull
  • Posts: 12417
  • Tell me a Joke!
Re: What? Why?! Dimensions...again!
« Reply #3 on: August 08, 2014, 10:32:45 AM »
:tickedoff: Stupid dimensions! They're like toddlers! Won't stay where I put them!  :tickedoff:

I find a nail gun works.

Matt__W

  • Seagull
  • Posts: 12955
  • I like my water diluted.
Re: What? Why?! Dimensions...again!
« Reply #4 on: August 08, 2014, 10:59:09 AM »
toddlers! Won't stay where I put them!  :tickedoff:

I find a nail gun works.
That's a bit harsh, no??  :-o
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

Greg B

  • Seagull
  • Posts: 12417
  • Tell me a Joke!
Re: What? Why?! Dimensions...again!
« Reply #5 on: August 08, 2014, 11:10:26 AM »
toddlers! Won't stay where I put them!  :tickedoff:

I find a nail gun works.
That's a bit harsh, no??  :-o

Nah...

It's getting them loose again when it starts to get sketchy.

Bethrine

  • Guest
Re: What? Why?! Dimensions...again!
« Reply #6 on: August 08, 2014, 11:19:06 AM »
toddlers! Won't stay where I put them!  :tickedoff:

I find a nail gun works.
That's a bit harsh, no??  :-o


Nah...

It's getting them loose again when it starts to get sketchy.

Not to mention what they'd do to my monitor. I love my monitor. AutoCAD is advanced enough to know what nails through the screen mean?! Wow!

Hangman

  • Swamp Rat
  • Posts: 566
Re: What? Why?! Dimensions...again!
« Reply #7 on: August 08, 2014, 12:32:12 PM »
toddlers! Won't stay where I put them!  :tickedoff:

I find a nail gun works.
That's a bit harsh, no??  :-o


Nah...

It's getting them loose again when it starts to get sketchy.

Not to mention what they'd do to my monitor. I love my monitor. AutoCAD is advanced enough to know what nails through the screen mean?! Wow!

But look on the bright side, ... a new nailgun, compressor, scalper (nail puller), ... monitor, job, ...  :lmao: :-D
Hangman  8)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Drafting Board, Mechanical Arm, KOH-I-NOOR 0.7mm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Bethrine

  • Guest
Re: What? Why?! Dimensions...again!
« Reply #8 on: August 08, 2014, 12:52:40 PM »
But look on the bright side, ... a new nailgun, compressor, scalper (nail puller), ... monitor, job, ...  :lmao: :-D

I was with ya until you said "job".  Love my job!  :smitten: