Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Tea

  1. I had the same problem, but your solution didn't work for me unfortunately. I still cannot change the Render Mode using gSDK->SetRenderMode() in any way.
  2. Dear Developers, there is a strange issue with vs.SaveSheet functionality. If the procedure is executed through SDK with pythonEngine: TXString script; script += "import vs;"; script += "vs.SaveSheet(\"View Name\", True, True, True);"; then the newly created saved view disappears if, immediatly after the creation, the properties of the view ("Edit Saved View" dialogue) are opened in VW app, but then immediately closed with a Cancel. But if the same procedure import vs; vs.SaveSheet("View Name", True, True, True); is executed through VW app > Tools > Plug-ins, then there are no problems. The newly created saved view doesn't disappear after cancelling the "Edit Saved View" dialogue. Is there a way to preserve the newly created saved view, created through SDK? Thanks for help, Tea
  3. Dear Developers, is there a reason, why the enum VWFC::VWObjects::ELayerVisibility doesn't contain the "dontcare" option, while the enum VWFC::VWObjects::EClassVisibility contains it? enum ELayerVisibility { kLayerVisibilityInvisible = -1, kLayerVisibilityNormal = 0, kLayerVisibilityGrayed = 2 }; enum EClassVisibility { kClassVisibilityInvisible = -1, kClassVisibilityNormal = 0, kClassVisibilityGrayed = 2, kClassVisibilityDontCare = 3, }; Thanks, Tea
  4. Dear Developers, is varPlanRotationAngle (from Selectors for GetProgramVariable and SetProgramVariable) a read-only variable? For me this works ok: double planRotation; gSDK->GetProgramVariable(varPlanRotationAngle, &planRotation); While this doesn't work: double planRotation = 30.0; bool res = gSDK->SetProgramVariable(varPlanRotationAngle, &planRotation); // returns False Thanks for help, Tea
  5. Dear Developers, VectorWorks:Scripting:IVectorScriptEngine::CompileScript() opens the dialogue popup, even though the option inShouldDisplayDialogs is set to false. Screenshot of the dialogue: BR, Tea
  6. Thanks! But as far I understood, I can only use those variables with ISDK::SetObjectVariable and ISDK::GetObjectVariable. And the following: gSDK->SetObjectVariable(saveViewNodeHdl, ovSheetSaveZoomPan, TVariableBlock((Boolean)true)); doesn't save the current Zoom value to the Saved View itself. It only sets whether the Zoom value which was originally saved for this Saved View, will be restored the next time when this Saved View will be activated. Or am I missing something?
  7. Dear Developers, is there a way in SDK to update the values of attributes of the Saved View? E.g. there is a Saved View by the name of "Saved View 1", saved in the currently opened .vwx file, which has the saved Zoom of 25%. We would like to change the Zoom for this saved view to 50%. There is an option with ISDK::EditSavedViewWithUI, but this is not what we want. We would need to do it at the background, without any dialogs popping out. Thanks in advance, Tea
  • Create New...