Jump to content
Developer Wiki and Function Reference Links ×

Event ID's


Recommended Posts

Hello,

Still trying to unraffle the Events-mysteries ...

The famous page on the VectorLab-site shows all kind of Event-ID's in the CONST-block.

Is there anywhere a list that sums up all these Events-ID's?

Or are they all here?

The VFR pages that handle Events link us back to page mentioned above, so, no help there.

Where do these constants come from?

Link to comment

These are the pio events that I have worked with and tested successfully:

kResetObjectEventID = 3;

kInitObjPropEventID = 5; {Initialize events}

kButtonPressEventID = 35; {Handle button clicks}

kOnWidgetDefEventID = 41; {Handle widget visibility & custom popups}

kObjAddStateEventID = 44; {Handle changes to parameter values}

There are also events recently introduced for tool objects but I have not tested them yet.

BTW, all these constants are defined in the C++ SDK if you want to adventure and look at all of them

Link to comment

Yes, the SDK is the key for finding all constants. The include files starting with "MiniCAD" will give you most of what you need. One has preference and object-variable constants, and another has PIO related constants. There are a few PIO and Tool events that never get raised for VS.

Note that vs constant and variable names are limited to the first 20 characters, so if you simply copy and paste some of the constant blocks, vs will read long constant names as the same and throw an error.

You can download the SDK through the Vectorworks.net support section.

HTH,

Josh

Link to comment

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.

×
×
  • Create New...