I have successfully loaded .lsp files, but AutoCAD gives me the error: no function definition: TXT2TAG
I am running AutoCAD2015 off a remote desktop to load the lisp file, attached in this post, which I downloaded off the internet. I also have had no success running other lsp files (downloaded) to accomplish the same task.
I have zero lisp writing ability or knowledge, but was merely looking to format attributes (in a titleblock) with the same text font/style as mtext. My work currently has a titleblock with "Times New Roman" text and mtext along with other different fonts. When I define an attribute (attdef) it only gives me the option to choose ISOCP or STANDARD for Text Style in the Enhanced Attribute Editor window. Using the paintbrush (to copy formatting) does not copy the font style as I need it to.
If I could find a way to make the fonts similar I wouldn't need the lisp routine, but would also like to figure out why I cannot run lsp routines on my machine. I have tried sdi <1> (shot in the dark from an online recommendation) and have ensured the programs are loaded (even though they are greyed out). Please help, thanks in advance.
Solved! Go to Solution.
Solved by john.vellek. Go to Solution.
Solved by john.vellek. Go to Solution.
Hi @paulmartin_,
I see that you are visiting as a new member. Welcome to the Autodesk Community!.
How are you trying to load the LSP file? If you move it to the remote machine, you can actually drag it right onto an open drawing and it should load and be available for you to run.
Now, to answer the root question. If you type style, you are able to create a new style based upon the font of your choice. Once you save the style, you can then select it in your ATTDEF command.
Please let me know if this helps or if you have other questions regarding this issue.
Please select the Accept as Solution button if my post solves your issue or answers your question.
Hello John,
I am indeed a new member and relatively new/basic user to AutoCAD. Thank you VERY much for the STYLE command. This was quite helpful in resolving the one issue to choose an attribute font style. Much appreciated. I have spent way too much time trying to research how to do this.
As far as the .lsp file goes I was dragging and dropping the file into AutoCAD and I also tried the command appload. Both said that the file was loaded successfully. There was the odd instance where it returned the message: something like "???=nil". I forget the message, but can try to recreate it again if you'd like. I ran a lsp file about 5 years ago, but haven't ran one since. I was just curious if something was missing or AutoCAD isn't configured properly to do this. Maybe it could simply be the .lsp routine itself. If you have a basic .lsp file I could run I would try it to see if I could get it to work.
Hi @paulmartin_,
I tried loading your lisp routine and it fails with an error on my side too. It appears that the routine is to convert a text entity to an attribute. Perhaps you can find a similar add-in on the Autodesk App store.
I found this other routine that might work in a similar fashion. I didn't run it (REALLY large for a lisp routine ) so I am not sure how well it works.
Please select the Accept as Solution button if my post solves your issue or answers your question.
Thank you for your assistance. You have been greatly helpful. I am glad to know I am running the routine correctly and that it is just a faulted program and not my software. I tried the routine you suggested also and it surely is a large program which does not work either. I believe I have the solution I need thanks to you.
I did have one other question though, I am using multi-line text for an attribute and I cannot figure out how to edit the mtext attribute. It seems like it isn't even an attribute at all. I hope this makes sense.
Nevermind,
I think I figured it out. I just had to double click on the block and it seems that it allows me to edit the mtext attributes. Thanks again for your help.
Can't find what you're looking for? Ask the community or share your knowledge.