Jump to content

Recommended Posts

Posted

Hello all

 

I need to have one mview always updating itself with an active viewport. Here is what I mean

 

I have a viewport on top right corner of my sheet - Lets call it "Mview A"

I create a new Mview "We call it Mview B" and turn ON or OFF some layers using "Freeze on active viewport"

I want "Mview A" also turn those layers ON or OFF Automatically.

Now if I create a new Mview C and turn layers ON or OFF, I want my Mview A follow Mview C (in other words, Mview A should always be identical to my active viewport.)

 

Is this possible to do with code?

 

Regards

 

ADSK2007

Posted (edited)

In short, 'Probably not'

 

A little longer, VIEWPOPRT entities cannot be made or modified with AutoLisp. The work around could be a reactor that would read the alterd viewport dxf data, and the use (command) to try and update another to match the layer states. This would be a fairly daunting task. And I would think it would have to customized for each unique drawing file.

 

-David

Edited by David Bethel
Could vs Would
Posted
A little longer, VIEWPOPRT entities cannot be made or modified with AutoLisp. The work around would be a reactor that would read the alterd viewport dxf data, and the use (command) to try and update another to match the layer states.

 

To clarify, you cannot use (command) with a Reactor, however, the Viewports could be created and modified using the relevant Visual LISP Properties and Methods - though I agree, such an application would certainly not be straightforward to create.

Posted
To clarify, you cannot use (command) with a Reactor,

 

Did not know that. Not even if the reactor calls another routine?

 

however, the Viewports could be created and modified using the relevant Visual LISP Properties and Methods - though I agree, such an application would certainly not be straightforward to create.

 

I'm surprised ADESKk allows access to the viewport's xdata now. I would have thought it could lead to disastrous result with corrupt or conflicting data. -David

Posted
Not even if the reactor calls another routine?

 

Not even then, the reactor callback function cannot call the command function during evaluation.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...