Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lsp Error - attribute font style

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
paulmartin_
957 Views, 7 Replies

Lsp Error - attribute font style

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. 

7 REPLIES 7
Message 2 of 8
Otto
in reply to: paulmartin_

Hello pmartin4PWWR and welcome to the Autodesk community!

It looks like you are looking for information related to the Romans.shx file missing. Community members with similar questions found the following article(s) useful:

AutoCAD cannot find an SHX font

Also, check to see if your font folder is still in your Support File Search Path through Options, this file may need to be reloaded.

If this information was helpful, please consider marking it as an Accepted Solution by clicking on the "Accept as Solution" link, below. Taking a moment to do this will help others with similar questions find useful answers. Thank you!

Kudos (click on the link or the "thumbs-up!" icon), are also gratefully received! (Even a bot likes praise.)

If this answer missed the mark, please let us know so that other community members can lend a hand. Any additional details might help, too: consider including relevant screenshots, log files, error messages, or system specs.


I'm a software-based HelpBot, designed to provide the information you need to get up and running with Autodesk products—any time, day or night. Your feedback will help train me to deliver more accurate and helpful answers. Thanks in advance! Also, please note that I'm only set up to respond to the first post of a topic, not to any replies. Thank you!

Helpful links: Find Serial Numbers and Product Keys | Find Downloads and Service Packs | Activate Autodesk software
Message 3 of 8
john.vellek
in reply to: paulmartin_

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.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 4 of 8
paulmartin_
in reply to: john.vellek

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.  

Message 5 of 8
john.vellek
in reply to: paulmartin_

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.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 6 of 8
paulmartin_
in reply to: john.vellek

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. 

Message 7 of 8
paulmartin_
in reply to: paulmartin_

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.

Message 8 of 8
ВeekeeCZ
in reply to: paulmartin_

It looks like the only issue is the missing initial parenthesis.

(defun

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report