Jump to content

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


Recommended Posts

Posted

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

Posted

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
Posted (edited)

 

Stefan BMR

THANK YOU

IT IS GOOD IDEA

THANK YOU

Edited by hosneyalaa

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...