Jump to content

Recommended Posts

Posted
I do have my share of weird happenings on this system. I look at it like finding a hunk of lead shot while eating a brace of pheasant.:lol:

That's why you get the shot with the taste. :wink:

Index_r1_c2.jpg

 

For the record, I've never used or seen this in person. An engineer I used to work with showed it to me. I just think it's ridiculous a good show of the stupid stuff we Americans come up with.

  • Replies 41
  • Created
  • Last Reply

Top Posters In This Topic

  • alanjt

    17

  • The Buzzard

    7

  • MichaelJ07

    7

  • adamsnez

    5

Top Posters In This Topic

Posted

Just for fun, here's a version without the use of command. Basically an amalgamation of AutoLISP and VisualLISP. Kind of step-brother to what Lee posted...

 

(defun c:test (/ e)
 (and (setq e (car (entsel "\nSelect Dimension: ")))
      (or (eq "DIMENSION" (cdr (assoc 0 (setq e (entget e)))))
          (alert "Invalid object!")
      )
      (setvar 'clayer (cdr (assoc 8 e)))
      ((lambda (doc)
         (vla-put-activedimstyle
           doc
           (vla-item (vla-get-dimstyles doc) (cdr (assoc 3 e)))
         )
       )
        (cond (*AcadDoc*)
              ((setq *AcadDoc* (vla-get-activedocument (vlax-get-acad-object))))
        )
      )
 )
 (princ)
)

 

You can also use vla-put-activelayer instead of (setvar 'clayer, but I saw no reason to define the document's layers.

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...