Jump to content

Tea

Member
  • Posts

    7
  • Joined

  • Last visited

Posts posted by Tea

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

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

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

  4.  

    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?

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