Author Topic: Layout to Model  (Read 2252 times)

0 Members and 1 Guest are viewing this topic.

pedroantonio

  • Guest
Layout to Model
« on: July 21, 2019, 10:25:55 AM »
Hi. I am using Lee Mac Viewport Outline lisp http://www.lee-mac.com/vpoutline.html, to insert viewport outline in model space. Is any way to inset all the layout in model space in correct scale and position and not only the outline of the viewport ?

Thanks

pedroantonio

  • Guest
Re: Layout to Model
« Reply #1 on: July 21, 2019, 11:04:50 AM »
I have this lisp file but export everything in wrong position with wrong scale.I want to keep the viewport scale and the correct coordinate position, like  Viewport Outline

Code - Auto/Visual Lisp: [Select]
  1. (defun c:test ( / BASE LST OLD_DIA)
  2.   (setq old_dia (getvar 'FILEDIA)
  3.         base    (strcat (getvar 'DWGPREFIX) (vl-filename-base (getvar 'DWGNAME)))
  4.   )
  5.   (setvar 'FILEDIA 0)
  6.   (setq lst (layoutlist))
  7.   (foreach l lst
  8.     (command "_.ctab"
  9.              l
  10.              "exportlayout"
  11.              (strcat base "-" l)
  12.     )
  13.   )
  14.   (setvar 'FILEDIA old_dia)
  15.   (princ)
  16. )
  17.  

Any ideas?

Thanks

pedroantonio

  • Guest
Re: Layout to Model
« Reply #2 on: July 22, 2019, 03:47:05 AM »
Is it posible to Convert Layout to Model Space by viewport scale , like Lee Mac Viewport Outline lisp http://www.lee-mac.com/vpoutline.html

thanks

seksone

  • Mosquito
  • Posts: 1
Re: Layout to Model
« Reply #3 on: July 22, 2019, 07:52:21 AM »
do you know the command _chspace?
maybe that is the trick.

pedroantonio

  • Guest
Re: Layout to Model
« Reply #4 on: July 22, 2019, 05:14:50 PM »
Yes i know this command, but insert the layouts in the wrong coordinates with wrong scale

pedroantonio

  • Guest
Re: Layout to Model
« Reply #5 on: July 24, 2019, 06:27:59 AM »

seksone you are right _chspace command works fine

Thanks