Jump to content

Need a VBA Help


rodbuilder

Recommended Posts

I have been trying to convert lisp over to VBA as I can and I need some help with this one. I need a way to change the text in a dimension. This is the way its done with lisp but now I want to use VBA. Can someone help.

(defun C:DimChangeF ( )
(setq DimEnt (entget (SSNAME (SSGET) 0)))
(setq DimEnt (subst  (cons 1 "<> \\XTEST") (assoc 1 DimEnt) DimEnt))
(entmod DimEnt)
(princ)
)

Link to comment
Share on other sites

You should be able to do an equivalent to a entsel and the entity would have something like dim.value as the text value then just change and do an update not at work right now but search through some of the other VBA posts by me and you will find some example code that should give you the answer.

Link to comment
Share on other sites

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