Jump to content
Developer Wiki and Function Reference Links Read more... ×
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?  :-)

 

TIA,

Share this post


Link to post

CONST
   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

Unfortunately, 

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:

 

CONST

    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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

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.

×