Jump to content
Developer Wiki and Function Reference Links Read more... ×
Sign in to follow this  
Assembly

Returning VAR to the OIP

Recommended Posts

How does one return information back to the OIP?.

Precedent:

Rectangle tool returns

Perim:

Area:

Share this post


Link to post

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

-Josh

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

vsoInsertWidget.

This call is placed during the event of

kObjOnInitXProperties:

I can use:

vsoWidgetSetText(buttonID_3,Concat('FilePath:',p__Temp));

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.

Easy

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

×