XDSoft 发表于 2014-12-5 22:45:51

(1)如何用Visual LISP 锁定viewport

How to lock a viewport using Visual LISP

Question
Is it possible to lock a viewport using Visual LISP?
Answer
It is not possible to lock the viewport by using (entmod).However, it can
be successfully done using ActiveX functions.The following sample code checks
the viewport object's DisplayLocked property and, if currently unlocked, proceeds
to lock it:

**** Hidden Message *****

After executing this code we can not zoom into the viewport:
Command: ms MSPACE
Command: z ZOOM
Viewport is view-locked. Switching to Paper space.

lijiao 发表于 2014-12-6 09:23:09

xiankankanzaishuo

xiaobaixiaobu 发表于 2014-12-6 10:11:27

回复瞧瞧!!!

wzg356 发表于 2014-12-6 22:32:19

好喜欢,辛苦了

Free-Lancer 发表于 2014-12-7 09:08:42

object.DisplayLocked

objectPViewport The object or objects this property applies to.

DisplayLocked   Boolean; read-write

TRUE: The viewport is locked.
FALSE: The viewport is not locked.

lucas3 发表于 2014-12-7 12:54:21

每日一码,这个主题好

/db_自贡黄明儒_ 发表于 2014-12-7 16:25:30

好贴,老大有心人,免费教学,赞!

q3_2006 发表于 2014-12-7 18:34:48

DisplayLocked...

bonny123 发表于 2015-7-11 20:32:48

{:soso_e101:}{:soso_e101:}               还得从头学一遍

dnbcgrass 发表于 2015-7-12 21:11:12

回复学习!:lol

qyming1996 发表于 2015-7-14 09:25:28

如何用Visual LISP 锁定?

duotu007 发表于 2015-7-15 09:14:15

kankanknakna

y5664491 发表于 2015-10-24 02:39:16

回复学习!

yshf 发表于 2015-10-28 08:05:16

回复学习学习:lol

天若有情007 发表于 2016-3-30 14:45:23

学习学习                              
页: [1] 2 3
查看完整版本: (1)如何用Visual LISP 锁定viewport