Jump to content

PipeLabel Lisp Help


jsetti01

Recommended Posts

My company has this lisp routine that I guess has been used for a long time. It has a few issues for our use and I was hoping to correct them. I am very basic when it comes to lisp so bear with me. With that said I am interested in learning all that I can. First off this is not my routine, The credits are in the file itself.

 

Ok now to the meat and potatoes, the problems

 

The routine creates a new textstyle- I want it to use the existing style we use which is RomanS.

 

The Routine breaks the line it labels, I want to have the Text use a background mask of 1.25 and not break the line.

 

I want the text to make sure it comes in on the layer of the line it is labeling.

 

If possible, I want to learn how to alter this routine.

 

Thank You,

Jim

pipelabel.lsp

Link to comment
Share on other sites

1st answer do this in code, need a sample dwg to test properly

; (createstyle) stops new text style being created

;(setvar "textstyle" CSTYL) 
(setvar "textstyle" "Romans")

not sure but try this to stop break in line
;(command "_.trim"
;	     (vlax-vla-object->ename ENT1)
;	     ""
;	     TRMENTPT
;	     ""
;   ) ;_ End command


Link to comment
Share on other sites

Thank you for your time, as I said before I am a little green when it comes to Lisp

I am attaching a few pictures that have questions when related to this Pipelabel Lisp and exactly where to insert these new Code Pieces

Lisp Response 1.png

Lisp Response 2.png

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