Author Topic: ENTMOD question...  (Read 3004 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
ENTMOD question...
« on: October 28, 2005, 12:25:17 PM »
Hi all..

I have this simple routine..


Code: [Select]
(setq MVtemp (entget (car (entsel)))) 
(setq Qt1 (assoc 8 MVtemp))
(setq Qt2 (cons (car Qt1) "0"))
(setq Qt3 (subst Qt2 Qt1 MVtemp))
(entmod Qt3)

it seem to work great...
but not if the item selected is a MVIEW..

any idea why ?
Keep smile...

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: ENTMOD question...
« Reply #1 on: October 28, 2005, 12:37:18 PM »
What is an MVIEW?
TheSwamp.org  (serving the CAD community since 2003)

LE

  • Guest
Re: ENTMOD question...
« Reply #2 on: October 28, 2005, 12:37:44 PM »
Restrictions on Using entmod

There are restrictions on the changes the entmod function can make:

An entity's type and handle cannot be changed. If you want to do this, use entdel to delete the entity, and then make a new entity with the command or entmake functions.
The entmod function cannot change internal fields, such as the entity name in the –2 group of a seqend entity. Attempts to change such fields are ignored.
You cannot use the entmod function to modify a viewport entity.

LE

  • Guest
Re: ENTMOD question...
« Reply #3 on: October 28, 2005, 12:40:25 PM »
Hi Andrea,

Ci è una certa limitazione circa quella funzione ed uno è che non potete usarli per modificare un'entità del viewport. 
Per favore, abbia uno sguardo nel documento di aiuto di balbett.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: ENTMOD question...
« Reply #4 on: October 28, 2005, 12:49:35 PM »
Wow..LE.. your Italian is good.. :-)

Thanks for the quick response..
so now, i'm confusing a little bit..

If ENTMOD have restriction...
can I have a list of theses rectriction somewhere ?

I can't found it in the help file...
___________________________

Mark,

an MVIEW is in fact a VPORTS..
I call MVIEW because you can make VPORTS in tilemode 1.
just to prevent confusing the selected item.
 :angel:
Keep smile...

LE

  • Guest
Re: ENTMOD question...
« Reply #5 on: October 28, 2005, 12:59:00 PM »
Wow..LE.. your Italian is good.. :-)

Thanks for the quick response..
so now, i'm confusing a little bit..

If ENTMOD have restriction...
can I have a list of theses rectriction somewhere ?

I can't found it in the help file...
___________________________

Mark,

an MVIEW is in fact a VPORTS..
I call MVIEW because you can make VPORTS in tilemode 1.
just to prevent confusing the selected item.
 :angel:

No my Italian is not good at all, I have to always go to the language tools.... I know very little.

Open the VLIDE then click on the HELP button and in there you will find about the limitations.... good luck

MVIEW is a command name and it does a floating viewport entity.