I got excited, stayed late and did this right away. Works like a charm. Thanks to all.
(defun c:ledit ()
; Prompt for a suffix
(setq Suffix (getstring t "Enter a suffix."))
; Set initial value of I
(setq I 0)
; Select Text
(setq a (ssget '((0 . "TEXT"))))
...
CarlAK,
Sounds like you and Todd are on the same track. I will try using repeat and will post back Monday. (on the road Fridays) Thanks for the help and have a good weekend.
Mabjro
Todd,
Although I just finished writing the routine and then read your post, I am going to try your suggestion.
Here is what I did so far.
(defun c:ledit ()
; Prompt for a suffix
(setq Suffix (getstring t "Enter a suffix."))
; Set initial value of I
(setq I 0)
...
Wow. I can't believe how it all comes back. I am rusty but it's still a lot of fun. I succeeded in creating a lisp routine that works exactly as it should with one exception. I have to enter the command every time for each text entity and I have to type in the suffix each time. Please see...
Thank you CarlAK, I will work on your suggestion. You gave me enough to get started as I am rusty with Autolisp. I have not toyed with it in a couple of years. It should be pretty easy now that you have jogged my memory.
Thanks.
Mabjro
I got to thinking about an easier way to explain what I am trying to accomplish. I want to add a default prefix and suffix to my single line text.
Thanks again.
I want to create a lisp routine for editing text with some restrictions. The best way to explain it is to show it.
I have a text entity with a value xxxx-(yy) occurring multiple times in a drawing.
When I use the ddedit command the whole string appears in the dialogue box for editing. The...
Todd,
Thank you for your well thought out reply. I was on the road Friday and did not see it until today, Monday. I tried your suggestions in the order that you suggested them. I had success with the last suggestion of saving to an R12 dxf file. You and CarlAK are obviously experts, in my...
I tried to saveas and/or dxfout as R14. No success. If anyone has any ideas it would sure make my day. Autodesk's website does not have much on this topic.
Thank you,
Mabjro
Below is a copy of my text window after opening a drawing and running two commands. The list command and the filter command. Look at the errors. This only happens in some drawings that I am getting from another party. I have no direct relationship with the engineering firm that created the...
Thank you VBAJock,
It will take me some time to experiment with your suggestions. I'm going to work on that and I will post back early next week. Have a great weekend everyone.
Mabjro
PS. Sorry about the duplicate paragraph above, I did not notice it when I previewed my post. Hopefully...
I tried to omit the argument (myvar)from the function and declaring it as a public variable per cmmrfrds and I get the following error;
"Wrong number of arguments or invalid property assignment"
I also tried to make the arguments optional per CajonCenturian. I do not get any errors...
Thank you for your replies. I will toy with this on Friday, as I am not near the computer this is on, at the moment. I will post back my results.
Mabjro
How can I use a function with arguments in a query?
I’m trying to use a function w/arguments in a query;
“Select * FROM mytable Where myfield = ReturnMyVar() “ produces the following error.
Wrong number of arguments used with function in query expression
‘(((mytable.myfield) =...
Doug,
Specifically, I am trying to change the (x) plot offset to 1" on about 300 drawings. I want to do this because I need to get them into a binder. I will use batch plotting to print them all. The drawings were originally set up to be printed on 36" x 24". When I print them...
Sorry Doug,
I did not think anyone posted to this question. I am a novice with VBA and pretty good at Access. If you have the time and want to help, I would love to know how to bring all of this together.
Hope your still there.
Jonathan
I'm not going to continue this thread. Thank you everyone for your help. I need to do more homework and tomorrow I am getting another book. I will check back, just incase anyone has any recommendations on a book. I am very close to solving this problem. It has become a personal challenge...
I am using a non-default instance of a form and therefore it can not be refered to by name. See the following link, it explains what I am trying to do. (quick reading, about a page) The gist of the last paragraph is that I can only refer to the form by its index in the form collection...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.