Jump to content
Sign in to follow this  

Returning VAR to the OIP

Recommended Posts

How does one return information back to the OIP?.


Rectangle tool returns



Share this post

Link to post

I believe what you want is a read-only parameter. Use EnableParameter to disable editing of the parameter.


Share this post

Link to post

An alternative is to add a static text widget to the parameter list in the plugin setup event by using:

FUNCTION vsoAppendWidget(widgetType:LONGINT; mappingID:LONGINT; text:STRING; data:LONGINT): BOOLEAN;

widget types:

kFieldLongInt = 1;

kFieldBoolean = 2;

kFieldReal = 3;

kFieldText = 4;

kFieldCalculation = 5;

kFieldHandle = 6;

kFieldCoordDisp = 7; {dimension}

kFieldPopUp = 8;

kFieldRadio = 9;

kFieldCoordLocX = 10;

kFieldCoordLocY = 11;

kWidgetButton = 12;

kWidgetStaticText = 13;

and the last one is what you would use to display information

Share this post

Link to post

I tried

vsoAppendWidget can't get this to load the file I can use


This call is placed during the event of


I can use:


to feed information back to the field.

But the timing is odd.

The field only updates when I re:select the object. Ie deselect then select again.

It is not automatically updating?.

Share this post

Link to post

I noticed the same some weeks ago, it's a bug and Vlado informed us that it will get fixed in VW2012

Vlado on the VS mailinglist:

Yes, I see what you mean. Unfortunately, it should work but it isn't,

and this is a problem of VW. I'll fix it for VW2012.[/Quote]

Share this post

Link to post

Yes DWorks that is it.

I just realized I can use a static text type on the PIO and set that.


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.

Sign in to follow this  


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