Jump to content

Edit the text of a text object using a macro/diesel


CesarA

Recommended Posts

I have a lot of objects with similar properties, for example they always have this format and number of characters:

 

"P02 12x34"

 

I've managed to edit a lisp file so that it would edit the text object into:

 

"P02 (0.12x0.34)"

 

However, i'll be using lt very soon, so I wont be able to use lisp. Is this possible to do using a macro?

What about converting the text object to multiline text, and eventually edit the text in there?

Link to comment
Share on other sites

I'm considering using the "find" command, but this however opens a new window, and I can't change it's properties with the command line, or am I wrong?

Link to comment
Share on other sites

Sorry it's not going to happen in LT, the find command is dialogue only, so is the quickselect command and filter. You could however maybe improve on one by one editing by using a couple of features of those two commands, it depends on the structure of all your other text items in the drawing. The quickselect dialogue will allow you to select text items based on a wildcard search of the contents, once specific items are selected then you could use the find/replace command to alter parts of just the selected texts, but it does depend on how easy it is to pick items based on a few common features, for example select all text containing "PO" then using the current set select all items containing "x", then replace "* *"(wildcard,space,wildcard) with " (0."

Obviously this won't work if you have other text items with similar content that you don't want to use.

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