Author Topic: Invisible viewport  (Read 13739 times)

0 Members and 1 Guest are viewing this topic.

bbarron281

  • Guest
Invisible viewport
« on: January 09, 2015, 09:27:19 AM »
I think this is my first time posting here. My problem involves a viewport that I cannot see the boundaries to. All layers are thawed and on, frame value is set to 3 (I don't know how because it says from 0-2). I can select the viewport by using the qselect command but even when I have it selected I cannot see the selection. I can, however, edit the attributes of said viewport in properties. I can easily just add another viewport to avoid this problem, I suppose, but I was wondering if anyone knew why I couldn't see it. Any help is appreciated. Thanks in advance.

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Invisible viewport
« Reply #1 on: January 09, 2015, 09:32:30 AM »
be sure all layers are ON and THAWED
perform a regen

and perhaps place your VIEWPORTS on a unique VIEWPORTS layer to control them better
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: Invisible viewport
« Reply #2 on: January 09, 2015, 09:35:00 AM »
My guess is that it is the same color as your background.

If you could post a file exhibiting the behaviour, we could bypass the guessing.
CAD Tech

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Invisible viewport
« Reply #3 on: January 09, 2015, 09:39:32 AM »
My guess is that it is the same color as your background.

If you could post a file exhibiting the behaviour, we could bypass the guessing.
the guessing is the fun part of this    :thinking:
Be your Best


Michael Farrell
http://primeservicesglobal.com/

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Invisible viewport
« Reply #4 on: January 09, 2015, 09:43:31 AM »
My guess  8)

VP is so large it is outside your current view.
Zoom Extents perhaps?
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

craigr

  • Guest
Re: Invisible viewport
« Reply #5 on: January 09, 2015, 09:51:56 AM »
What bit me one time is that I had the Light on, Thaw on, but the 'freeze and thaw in current viewport' option in my 'Layers' Toolbar.

craigr

ronjonp

  • Needs a day job
  • Posts: 7529
Re: Invisible viewport
« Reply #6 on: January 09, 2015, 10:54:06 AM »
You mean like this ?

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: Invisible viewport
« Reply #7 on: January 09, 2015, 11:01:47 AM »
Okay, I'll bite. How did you do that?
CAD Tech

craigr

  • Guest
Re: Invisible viewport
« Reply #8 on: January 09, 2015, 11:03:47 AM »
I'm Stumped so far.

I am going to ignore the rest of the responses in this topic until Monday to see if I can figure it out over the w/e.

:)

ronjonp

  • Needs a day job
  • Posts: 7529
Re: Invisible viewport
« Reply #9 on: January 09, 2015, 11:07:31 AM »
« Last Edit: January 09, 2015, 11:31:30 AM by ronjonp »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: Invisible viewport
« Reply #10 on: January 09, 2015, 11:16:21 AM »
That explanation is above my head. Is there a layman's way to do/undo it?
CAD Tech

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Invisible viewport
« Reply #11 on: January 09, 2015, 11:18:46 AM »
vla-put-invisible  :)

I would think that would 'only' work for block attributes?    hmmmmm
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: Invisible viewport
« Reply #12 on: January 09, 2015, 11:20:58 AM »
vla-put-invisible  :)

I would think that would 'only' work for block attributes?    hmmmmm

That's what I got out of it, too, but "apparently" not the case.
CAD Tech

bbarron281

  • Guest
Re: Invisible viewport
« Reply #13 on: January 09, 2015, 11:23:37 AM »
You mean like this ?

Like this, yes.

ronjonp

  • Needs a day job
  • Posts: 7529
Re: Invisible viewport
« Reply #14 on: January 09, 2015, 11:32:35 AM »
Wrong link LOL .. updated above. vla-put-visible NOT vla-put-invisible. :)


See if this fixes it:
Code - Auto/Visual Lisp: [Select]
  1. (defun c:foo ( / i )
  2.   (repeat (setq i (sslength (ssget "_x" '((0 . "viewport")))))
  3.     (vlax-put (vlax-ename->vla-object (ssname ss (setq i (1- i)))) 'visible -1)
  4.   )
  5.   (princ)
  6. )
« Last Edit: January 09, 2015, 11:37:31 AM by ronjonp »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC