Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ObjectARX to Freeze and Thaw layers in paperspace viewports

0 views
Skip to first unread message

Bill Fallon

unread,
May 19, 1998, 3:00:00 AM5/19/98
to

I am unable to find the ObjectARX classes and functions in the documentation
I need to freeze and thaw layers in individual paperspace viewports. Can
anyone please help me? I am using AutoCAD R14.01.

Bill

Art Cooney

unread,
May 19, 1998, 3:00:00 AM5/19/98
to

There currently are no ARX functions to do this. You'll have to use
ads_command() to run the vplayer command to do it.

Rodney Estep

unread,
May 20, 1998, 3:00:00 AM5/20/98
to

Why did'nt Acad think of this one. Its not arx, but lisp is my forte`.

(DEFUN C:fcv (/ LAYR cntr )

(SETQ CMD (GETVAR "CMDECHO"))
(SETVAR "CMDECHO" 0)

(PRINC "\nSelect objects whose layers to freeze in current VPORT...")

(setq layss (ssget))
(setq cntr 0)
(SETQ LAY1 (CDR (ASSOC 8 (ENTGET (SSNAME LAYSS CNTR )))))
(REPEAT (SSLENGTH layss)
(SETQ LAYR (CDR (ASSOC 8 (ENTGET (SSNAME LAYSS CNTR )))))
(setq lay1 (strcat LAYR "," LAY1 ))
(SETQ CNTR (1+ CNTR))
)(COMMAND "._VPLAYER" "F" LAY1 "C" "")
(SETVAR "CMDECHO" CMD)
(PRINC)
)

I have about 25 little projects like this that I would love to finish but
Something new keeps coming up. It is my intent to have a couple me routines
like this for say, Thaw layer in a viewport by selecting it from another
viewport. etc... These little simple routines are the ones that save us the
most time.

Hope I was helpful
Rodney Estep

0 new messages