ViewSet.mvba to display pre-set views

I am looking for a way to add a view setup that can be used by ViewSet.mvba (delivered with OpenRoads Designer).  I would like this setup to be able to be used by multiple files/models.  This would be particularly useful when working on 3D cells.

Specifically, I would like to open four views of the same model (Top, Right Isometric, Front, and Right) without having to open and set up the views manually.  I would like the right iso view to be in Smooth or Transparent, and the other three views in Wireframe.  The screenshot below illustrates what I am after.

My problem is I’m not familiar with VBA programming.  I think I could call on the “FourSquare” definition in the ViewControlConfigurations.xml to set up the layout of the views, but I don’t know what to do after that.  I just want the ability to automatically get the four views in any model I open (with a right-click option).

Thank you.

Parents
  • I've added some parameters to the XML file and functionality to the VBA to allow setting orientation and rendering. Please give "FourSquare" a try with this new setup and let me know how it works for you.

    ViewSet.mvba

    <?xml version="1.0" standalone="no"?>
    <ViewControlConfigurations version="1.0">
      <Configuration name="Plan">
        <View number="1" percentTop="0" percentBottom="100" percentLeft="0" percentRight="100"/>
      </Configuration>
        <Configuration name="Plan3D">
        <View number="1" percentTop="0" percentBottom="100" percentLeft="0" percentRight="55"/>
        <View number="2" percentTop="0" percentBottom="100" percentLeft="55" percentRight="100"/>
      </Configuration>
      <Configuration name="PlanProf3D">
        <View number="1" percentTop="0" percentBottom="57" percentLeft="0" percentRight="50"/>
        <View number="3" percentTop="0" percentBottom="57" percentLeft="50" percentRight="100"/>
        <View number="4" percentTop="57" percentBottom="100" percentLeft="0" percentRight="100"/>
      </Configuration>
      <Configuration name="PlanProfile">
        <View number="1" percentTop="0" percentBottom="57" percentLeft="0" percentRight="100"/>
        <View number="4" percentTop="57" percentBottom="100" percentLeft="0" percentRight="100"/>
      </Configuration>
      <Configuration name="PlanSE">
        <View number="1" percentTop="0" percentBottom="50" percentLeft="0" percentRight="100"/>
        <View number="8" percentTop="50" percentBottom="100" percentLeft="0" percentRight="100"/>
      </Configuration>
      <Configuration name="PlanXS">
        <View number="1" percentTop="0" percentBottom="57" percentLeft="0" percentRight="100"/>
        <View number="8" percentTop="57" percentBottom="100" percentLeft="0" percentRight="100"/>
      </Configuration>
      <Configuration name="PlanXS3D">
        <View number="1" percentTop="0" percentBottom="100" percentLeft="0" percentRight="55"/>
        <View number="3" percentTop="0" percentBottom="50" percentLeft="55" percentRight="100"/>
        <View number="7" percentTop="50" percentBottom="100" percentLeft="55" percentRight="100"/>
      </Configuration>
      <Configuration name="PlanProfileXS">
        <View number="1" percentTop="0" percentBottom="57" percentLeft="0" percentRight="50"/>
        <View number="5" percentTop="57" percentBottom="100" percentLeft="0" percentRight="100"/>
        <View number="7" percentTop="0" percentBottom="57" percentLeft="50" percentRight="100"/>
      </Configuration>
      <Configuration name="PlanSuperXS">
        <View number="1" percentTop="0" percentBottom="57" percentLeft="0" percentRight="50"/>
        <View number="5" percentTop="57" percentBottom="100" percentLeft="0" percentRight="100"/>
        <View number="7" percentTop="0" percentBottom="57" percentLeft="50" percentRight="100"/>
      </Configuration>
      <Configuration name="FourSquare">
        <View number="1" percentTop="0" percentBottom="50" percentLeft="0" percentRight="50" orientation="TOP" rendering="WIREFRAME"/>
        <View number="3" percentTop="0" percentBottom="50" percentLeft="50" percentRight="100" orientation="ISO" rendering="SMOOTH"/>
        <View number="5" percentTop="50" percentBottom="100" percentLeft="0" percentRight="50" orientation="FRONT" rendering="WIREFRAME"/>
        <View number="7" percentTop="50" percentBottom="100" percentLeft="50" percentRight="100" orientation="RIGHT" rendering="WIREFRAME"/>
      </Configuration>
    </ViewControlConfigurations>

Reply
  • I've added some parameters to the XML file and functionality to the VBA to allow setting orientation and rendering. Please give "FourSquare" a try with this new setup and let me know how it works for you.

    ViewSet.mvba

    <?xml version="1.0" standalone="no"?>
    <ViewControlConfigurations version="1.0">
      <Configuration name="Plan">
        <View number="1" percentTop="0" percentBottom="100" percentLeft="0" percentRight="100"/>
      </Configuration>
        <Configuration name="Plan3D">
        <View number="1" percentTop="0" percentBottom="100" percentLeft="0" percentRight="55"/>
        <View number="2" percentTop="0" percentBottom="100" percentLeft="55" percentRight="100"/>
      </Configuration>
      <Configuration name="PlanProf3D">
        <View number="1" percentTop="0" percentBottom="57" percentLeft="0" percentRight="50"/>
        <View number="3" percentTop="0" percentBottom="57" percentLeft="50" percentRight="100"/>
        <View number="4" percentTop="57" percentBottom="100" percentLeft="0" percentRight="100"/>
      </Configuration>
      <Configuration name="PlanProfile">
        <View number="1" percentTop="0" percentBottom="57" percentLeft="0" percentRight="100"/>
        <View number="4" percentTop="57" percentBottom="100" percentLeft="0" percentRight="100"/>
      </Configuration>
      <Configuration name="PlanSE">
        <View number="1" percentTop="0" percentBottom="50" percentLeft="0" percentRight="100"/>
        <View number="8" percentTop="50" percentBottom="100" percentLeft="0" percentRight="100"/>
      </Configuration>
      <Configuration name="PlanXS">
        <View number="1" percentTop="0" percentBottom="57" percentLeft="0" percentRight="100"/>
        <View number="8" percentTop="57" percentBottom="100" percentLeft="0" percentRight="100"/>
      </Configuration>
      <Configuration name="PlanXS3D">
        <View number="1" percentTop="0" percentBottom="100" percentLeft="0" percentRight="55"/>
        <View number="3" percentTop="0" percentBottom="50" percentLeft="55" percentRight="100"/>
        <View number="7" percentTop="50" percentBottom="100" percentLeft="55" percentRight="100"/>
      </Configuration>
      <Configuration name="PlanProfileXS">
        <View number="1" percentTop="0" percentBottom="57" percentLeft="0" percentRight="50"/>
        <View number="5" percentTop="57" percentBottom="100" percentLeft="0" percentRight="100"/>
        <View number="7" percentTop="0" percentBottom="57" percentLeft="50" percentRight="100"/>
      </Configuration>
      <Configuration name="PlanSuperXS">
        <View number="1" percentTop="0" percentBottom="57" percentLeft="0" percentRight="50"/>
        <View number="5" percentTop="57" percentBottom="100" percentLeft="0" percentRight="100"/>
        <View number="7" percentTop="0" percentBottom="57" percentLeft="50" percentRight="100"/>
      </Configuration>
      <Configuration name="FourSquare">
        <View number="1" percentTop="0" percentBottom="50" percentLeft="0" percentRight="50" orientation="TOP" rendering="WIREFRAME"/>
        <View number="3" percentTop="0" percentBottom="50" percentLeft="50" percentRight="100" orientation="ISO" rendering="SMOOTH"/>
        <View number="5" percentTop="50" percentBottom="100" percentLeft="0" percentRight="50" orientation="FRONT" rendering="WIREFRAME"/>
        <View number="7" percentTop="50" percentBottom="100" percentLeft="50" percentRight="100" orientation="RIGHT" rendering="WIREFRAME"/>
      </Configuration>
    </ViewControlConfigurations>

Children
No Data