Jump to content
hosneyalaa

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

Recommended Posts

hosneyalaa

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

Share this post


Link to post
Share on other sites
Stefan BMR

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

Share this post


Link to post
Share on other sites
hosneyalaa
Posted (edited)

 

Stefan BMR

THANK YOU

IT IS GOOD IDEA

THANK YOU

Edited by hosneyalaa

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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