Jump to content

Recommended Posts

Posted

Good morning,

I am trying to write a lisp that allows a selection of texts with different elevation to be exploded into polylines while retaining the original elevation.

The TXTEXP express tools command allows this operation but restores the elevation of the selected element.

I thought of setting the UCS at the insertion point of each text before running the TXTEXP command and in this way the elevation is correct.
However, the lisp I created does not work because it sets the same elevation for all elements for some reason.

Can anyone help me?
Thank you in advance

 

provaC.lsp

Posted

End of the working year happening here, busy....

 

Maybe...

Set a marker, say MyLastEnt to be (entlast) before you explode the text

 Explode the text

Set MyLastEnt forward one entity (entnext MyLastEnt) and move that to the elevation you want

Repeat till MyLastEnt is the same as (entlast)... ie the latest entity to be created

Then explode the next text

 

 

Might need to work on the syntax, but perhaps nicer than adjusting the UCS... which will need an error function for the case of the LISP cancelling part way through and to reset it to as it was before the LISP started (far better I think for an error to be clean wherever it occurs rather then being 'fixed' after)

 

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