Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/13/2024 in all areas

  1. All you really need to do is convert the selection set over to vla-object and pull the textstring value. with vla-get-property this strips out the formatting (like you linked) usually don't use mtext so my bad. on the coding. noticed my unhide command was missing a * so it was only finding text and not mtext. updated the code to only process the selection set once since everything is being converted over to vla-object names at the start then adding them to a list if a number is found in the string. processing the list at the end. Probably be negligible in time but it ends up being more effectuate. This will find any mtext and text with a number in HideTextwNumbers.lsp
    1 point
  2. @Highvoltage So - I started playing around with using regular expressions with windows scripting. Try the update attached. You might have to play around with the expression. It allows up to 2 letters, +, -, any length of numbers and a decimal. Seems to work OK in my tests but your texts might be different. HideTextwNumbers.lsp
    1 point
  3. Yes. I will see if i can clean it up later tonight.
    1 point
  4. I think part of the problem is, that the content of the text is formatted, and therefore it will find numbers in every single instance
    1 point
  5. Oops - yeah, mine wasn't actually working correctly either. My wcmatch pattern was wrong in a few ways. Unfortunately, I don't know wcmatch good enough to make it work, and I am not even sure (wcmatch) will do the job. I think regular expression is the way to go.
    1 point
  6. Absolutely perfect! Thank you very much for your help.
    1 point
  7. @Highvoltage Try this change to mhupp's code. It all has to do with correctly using (wcmatch). HideTextwNumbers.lsp
    1 point
  8. Steven P, As with all high quality code, the comments really help! Testing will commence this week. Your code submission will also go a long way to help in my continuing study of Visual LISP. My current, basic level of understanding of the LISP language (mostly AutoLISP) includes the purpose of the car, cadr, etc., in extracting values from lists. The Visual LISP will need much more attention from me. I feel that this is where yours and others code offerings based on a specific objective / request really help! Thanks, Clint
    1 point
  9. If you really must use JOIN, try the following approach: (command "_.selectsimilar" selset1 "") (initcommandversion) (command "_.join" (cadr (ssgetfirst)) "")
    1 point
×
×
  • Create New...