Jump to content
Sam Jones

Suppressing the Default OIP at creation

Recommended Posts

I remembering there being a way to keep the default OIP from appearing when the first PIO instance is created.  I can't find it.  Did I remember incorrectly?  If not, what is it?  :-)



Share this post

Link to post

   kObjXPropShowPrefDialogWhen = 32;
    kCustomObjectPrefNever      = 0;
    kCustomObjectPrefAlways      = 1;
    kCustomObjectPrefNew         = 2;


blah blah blah...


in event loop 5:

    gFlag := SetObjPropCharVS(kObjXPropShowPrefDialogWhen, Chr(kCustomObjectPrefNever));


Share this post

Link to post

Thanks so Julian.  I know I have never seen that SetObjProp call before, nor have ever seen one called inside another call.  Cool beans.



Share this post

Link to post


gFlag := SetObjPropCharVS(kObjXPropShowPrefDialogWhen, Chr(kCustomObjectPrefNever));

Does not seem to work.  I have tried placing it in the Init Properties event (5) and at the beginning of the PIO code.

Share this post

Link to post

It works for me Sam and definitely needs to be in the kObjOnInitXProperties event (5). It's possible it also needs this:



    kObjXPropAcceptStates = 18;


    gFlag := SetObjPropVS(kObjXPropAcceptStates, TRUE); 


Also have you tried quitting and restarting Vw? I find this necessary sometimes even in developer mode.

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.

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