Jump to content

Recommended Posts

Posted

I am trying to figure out why when using Lee's brilliant BN lisp, the CURRENT justification style which I prefer (MC) is not honored.  I have set both my current TEXTSTYLE and MTEXT Styles to how I would like text inserted in Paperspace, guessing it would come from there, but it seems to default to Top Left or Top Right justification instead?  I took a look at the lisp,   :beard:  🤔  but was unable to figure it out?

Thanks Lee, as always, for all your wonderful productivity enhancing tools,

both from yours truly, and the Global Cad Community.

 

For any unfamiliar with LeeMac?  Check him out,

you'll be glad you did...Lee Rules.   :thumbsup:   :beer:

BN.lsp

  • Dadgad changed the title to LEE-MAC's BlockName lisp
Posted (edited)
(defun c:bn ( / e p xtext ) (vl-load-com)
  (if
    (and
      (setq e (ssget '((0 . "INSERT"))))
      (setq e (vlax-ename->vla-object (ssname e 0)))
      (setq p (getpoint "\n Specify Point for Text: "))
    )
    (progn
      (setq xtext (entmakex (list (cons 0 "TEXT") (cons 100 "AcDbEntity") (cons 100 "AcDbText") (cons 10 (trans p 1 2)) 
                                (cons 1 (vlax-get-property e (if (vlax-property-available-p e 'effectivename) 'effectivename 'name)))
                                (cons 50 (getvar 'VIEWTWIST)) (cons 41 1) (cons 51 0) (cons 71 0) (cons 72 1) (cons 11 (trans p 1 2))
                                (cons 100 "AcDbText") (cons 73 2))
                )
      )
    )
  )
  (princ)
)

how about like this ?

Edited by exceed
  • Like 2
Posted (edited)

Thanks very much for responding, and trying to help me.

I am not a member of The Lisperati,

but I often look at them, wanting to

better understand them.

When I was at UC Berkeley in 1970 I took

a beginner Computer course...the whole

campus probably had half a percent of

the fire power of a contemporary I Phone!

Realistically, probably less.  LOL   :beer:

I was intrigued by my efforts to come up

with logical progressions, for programmatic problem solving,

but never pursued it.

 

I use Key Stroke recorded Action Macros like a maniac,

and I love that functionality, which I suspect is under utilized

by others like myself in Autocad, right click menu.

 

The one which @exceed posted acts like it is going to work,

but then when I select the location for the MTEXT or TEXT object nothing shows up in Paperspace.  🤔

Edited by Dadgad
backstory added
Posted

Wherever and whenever you go?

There you are.  ...or should I say were?

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