mohammadreza Posted October 23, 2023 Share Posted October 23, 2023 there is not error in lisp but when im trying to use my code shown error like this whts the matter? please help me Quote Link to comment Share on other sites More sharing options...
Steven P Posted October 23, 2023 Share Posted October 23, 2023 (edited) What part of the working LISP is causing the error? If you can post the LISP we might have more chance working out what the error is. Looks like however you are trying to change the textstyle to Arial and it doesn't like it.. and that is as much as the error message says really  Might be that the LISP needs to check if the text style is loaded.... Edited October 23, 2023 by Steven P Quote Link to comment Share on other sites More sharing options...
mhupp Posted October 23, 2023 Share Posted October 23, 2023 looks like you don't have the font Arial loaded but can't really diagnose anything with out seeing the lisps. 1 Quote Link to comment Share on other sites More sharing options...
mohammadreza Posted October 23, 2023 Author Share Posted October 23, 2023 1 hour ago, mhupp said: looks like you don't have the font Arial loaded but can't really diagnose anything with out seeing the lisps. sorry, can you explain about this comments? Â Quote Link to comment Share on other sites More sharing options...
mhupp Posted October 23, 2023 Share Posted October 23, 2023 1 hour ago, mohammadreza said: sorry, can you explain about this comments? Â Like i said its just a guess until we can see the code https://www.youtube.com/watch?v=9Um1boXPsMo Quote Link to comment Share on other sites More sharing options...
Steven P Posted October 23, 2023 Share Posted October 23, 2023 Try putting this into the command line it should return somewhere in the list "Arial", if it is't in the list then the font isn't loaded into the drawing, you will need to go to font styles, select and load it (vla-get-TextStyles (vla-get-activedocument (vlax-get-acad-object))) (vla-get-TextStyles (vla-get-activedocument (vlax-get-acad-object))) (CAD is off for the night, but this should work, haven't checked though) 1 Quote Link to comment Share on other sites More sharing options...
BIGAL Posted October 23, 2023 Share Posted October 23, 2023   Try this expanding on what Steven suggested, if you can not see Arial the it does not exist, just copy the 3 lines to the command line.  (vlax-for tsty (vla-get-TextStyles (vla-get-activedocument (vlax-get-acad-object))) (princ (strcat "\n" (vla-get-name tsty))) ) Standard RL S4 ISO2.5 ISO3.5 ISO5 notes ISO1.8 TITLEBLOCK ISOCP ROMAND ISO Arial ISO3098B Standard 2.5 Standard 5 Annotative Legend  2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.