TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on October 28, 2005, 12:25:17 PM

Title: ENTMOD question...
Post by: Andrea 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 ?
Title: Re: ENTMOD question...
Post by: Mark on October 28, 2005, 12:37:18 PM
What is an MVIEW?
Title: Re: ENTMOD question...
Post by: LE 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.
Title: Re: ENTMOD question...
Post by: LE 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.
Title: Re: ENTMOD question...
Post by: Andrea 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:
Title: Re: ENTMOD question...
Post by: LE 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.