Author Topic: chspace command  (Read 3084 times)

0 Members and 1 Guest are viewing this topic.

JOSHD0000

  • Guest
chspace command
« on: February 02, 2007, 04:17:20 PM »
Can the chsapce comand be envoked in a lisp file? If not is there somthing else I can use that will do the same thing?  :|
 

Crank

  • Water Moccasin
  • Posts: 1503
Re: chspace command
« Reply #1 on: February 03, 2007, 09:56:02 AM »
In Acad2006 CHSPACE is written in lisp (Express > chspace.lsp), so you can study that to see how to use it.
Vault Professional 2023     +     AEC Collection

Joe Burke

  • Guest
Re: chspace command
« Reply #2 on: February 04, 2007, 10:17:45 AM »
I'd suggest a better study would be Tony Tanzillo's VPRECT.LSP routine.

;; Demonstrates how to transform a paper
;; space viewport's corner points into MS
;; world coordinate space.

Because it clearly demonstrates the transformations involved, which are more or less hidden in ET chspace.lsp.

CADaver

  • Guest
Re: chspace command
« Reply #3 on: February 05, 2007, 12:27:38 PM »
I'd suggest a better study would be Tony Tanzillo's VPRECT.LSP routine.
hmmm.. got a copy floatin' around somewhere??

paulmcz

  • Bull Frog
  • Posts: 202
Re: chspace command
« Reply #4 on: February 05, 2007, 12:34:17 PM »
Can the chsapce comand be envoked in a lisp file? If not is there somthing else I can use that will do the same thing?  :|
 


Code: [Select]
(if (= (getvar "cvport") 1)
    (command "mspace")
    (command "pspace"))

Crank

  • Water Moccasin
  • Posts: 1503
Re: chspace command
« Reply #5 on: February 05, 2007, 05:57:59 PM »
hmmm.. got a copy floatin' around somewhere??

Click
Vault Professional 2023     +     AEC Collection

CADaver

  • Guest
Re: chspace command
« Reply #6 on: February 05, 2007, 06:39:36 PM »
Thanks