Jump to content

error in lisp


mohammadreza

Recommended Posts

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 by Steven P
Link to comment
Share on other sites

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?
 

Untitled.png

Link to comment
Share on other sites

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)

  • Like 1
Link to comment
Share on other sites

 

 

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

 

  • Like 2
Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...