Jump to content

If possible, help How do I get rid of ''"


hosneyalaa

Recommended Posts

HI ALL

 

I HAVE  (NAME ELEMENT  AND TEXT ) FROM  READING  CSV FILE

 

 (setq f (open FilePath "r"))
(setq ln (read-line f))

(setq ln  ("57" "<Entity name: 2cedba90>") )

 

I WANT  TO  GIVE ME 

How do I get rid of ''"

"<Entity name: 2cedba90>"  >>>>TO >>> <Entity name: 2cedba90>

 

(setq obj  (vlax-ename->vla-object <Entity name: 2cedba90> )
  
  (vlax-put obj 'textstring "57")

THANKS FOR ALL

Link to comment
Share on other sites

ENAMES are not constant over different acad sessions, so even restoring them from text (which is impossible) would be useless.

Instead, you should save the handle of the entity as text and restore it with (handent <handle>).

 

_$ e
<Entity name: 21f6b3c3a00>
_$ (setq h (cdr (assoc 5 (entget e))))
"180408"
_$ (handent h)
<Entity name: 21f6b3c3a00>

 

  • Thanks 1
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...