Jump to content
barakar42

Linking Viewports to objects in model space

Recommended Posts

barakar42

Hi,

 

I'm wondering if its possible to have viewports linked to certain objects in model space so that if you delete the viewport, it'll automatically delete the objects in model space

 

attached is a snapshot of an example border

 

so if you delete that layout tab, everything within that viewport gets deleted from model space.

 

 

model objects.png

Share this post


Link to post
Share on other sites
ReMark

Well you are erasing a paperspace layout BUT the objects you want to delete are in model space.  The question is how would you link the two?

Share this post


Link to post
Share on other sites
barakar42

That's what I need to know, whether it is indeed possible to link them so they can be deleted together

Share this post


Link to post
Share on other sites
CyberAngel

What happens if the same object appears in multiple viewports? What if only part of the object is in the viewport? What if an object is on a frozen layer? This is a real can of worms.

Share this post


Link to post
Share on other sites
barakar42

no layers are frozen

each object will only appear in 1 layout/viewport

no objects will be partially in the viewport. We have boxes in model space that we zoom to in the viewport to make sure that everything will fit 

Share this post


Link to post
Share on other sites
steven-g

You might try asking this in the Lisp section. It is certainly not a feature or even possible just in standard CAD. Someone knowledgable in Lisp might be able to figure out how you would select all the objects visible through a viewport and be able to delete them before deleting the layout.

Share this post


Link to post
Share on other sites
BIGAL

What is the problem ? Just erase in mspace window, go down bottom right click delete layout ? Like a couple of seconds !

Share this post


Link to post
Share on other sites
barakar42

The problem is trying to get it automated. I have a program that goes through a list and delets layouts that aren't needed, however it doesn't delete stuff from the model space

Share this post


Link to post
Share on other sites
SLW210

You could see if there was an automated way to use CHSPACE to move the Model Space items into the layout, then delete the layout.

Share this post


Link to post
Share on other sites
BIGAL

Agree with SLW210 thinking again.  There is some examples out there viewport scale and center point compared in model so a chspace window.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...