Assembly Posted May 18, 2011 Share Posted May 18, 2011 How does one return information back to the OIP?. Precedent: Rectangle tool returns Perim: Area: Quote Link to comment
JBenghiat Posted May 18, 2011 Share Posted May 18, 2011 I believe what you want is a read-only parameter. Use EnableParameter to disable editing of the parameter. -Josh Quote Link to comment
Miguel Barrera Posted May 18, 2011 Share Posted May 18, 2011 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 Quote Link to comment
Assembly Posted May 18, 2011 Author Share Posted May 18, 2011 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?. Quote Link to comment
maarten. Posted May 19, 2011 Share Posted May 19, 2011 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] Quote Link to comment
Dieter @ DWorks Posted May 20, 2011 Share Posted May 20, 2011 Why not use SetRField? Quote Link to comment
Assembly Posted May 20, 2011 Author Share Posted May 20, 2011 Yes DWorks that is it. I just realized I can use a static text type on the PIO and set that. Easy Quote Link to comment
Recommended Posts
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.