Jump to content
Stefan Bender

SDK: Eyedropper support of PIOs - How?

Recommended Posts

How can PIOs know the current settings of the eyedropper tool so they can support the tool?

I see two functions

 

// Eyedropper notifies that it is going to put the record 'hObjRecordCopy' as record for the current parametric object
            // In this event the object can alter the copy to ensure correct data transfer (the data has already been copied to the record)
            // NOTE! This object's record is still in place when this event is called
            virtual void            OnEyedropperPrepareCopy(MCObjectHandle hObjRecordCopy);
            // Eyedropper notification that has finished with copying this object
            virtual void            OnEyedropperAfterCopy(MCObjectHandle srcObject);

 

in VWParametricEventSink that allow the PIOs to do something before and after copying, but how can the PIOs know which of the options of the eyedropper tool are set? Imho some data type "EyedropperToolPreferences" should be passed to these functions so the PIOs can react accordingly.

 

Or is there another way for the PIOs to support the eyedropper tool?

 

 

 

Thanks for any help,

 

Stefan Bender

 

Share this post


Link to post

This is pure speculation based on the parameter names, but is it purely for dealing with the PIO parameter option of the eyedropper? Or at least the event only raises when the user checks the PIO option?

Share this post


Link to post

I don't know, but I had hoped that these functions are called so the PIO can handle  copy/paste on its own. There are so many Eyedropper options for various graphical attributes that the PIO should need to know which of them are switched on so it can handle the transfer accordingly.

Share this post


Link to post

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


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...