barakar42 Posted February 12, 2020 Posted February 12, 2020 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. Quote
ReMark Posted February 12, 2020 Posted February 12, 2020 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? Quote
barakar42 Posted February 12, 2020 Author Posted February 12, 2020 That's what I need to know, whether it is indeed possible to link them so they can be deleted together Quote
CyberAngel Posted February 12, 2020 Posted February 12, 2020 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. Quote
barakar42 Posted February 12, 2020 Author Posted February 12, 2020 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 Quote
steven-g Posted February 12, 2020 Posted February 12, 2020 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. Quote
BIGAL Posted February 12, 2020 Posted February 12, 2020 What is the problem ? Just erase in mspace window, go down bottom right click delete layout ? Like a couple of seconds ! Quote
barakar42 Posted February 13, 2020 Author Posted February 13, 2020 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 Quote
SLW210 Posted February 13, 2020 Posted February 13, 2020 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. Quote
BIGAL Posted February 14, 2020 Posted February 14, 2020 Agree with SLW210 thinking again. There is some examples out there viewport scale and center point compared in model so a chspace window. Quote
Recommended Posts
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.