Path: AerospaceUtils/CAD

% Build a model of a spacecraft using repeated calls to this function.
 A GUI displays the results. It is not designed to allow you to interactively
 modify the design. With no inputs it returns a list of actions. All 'add ...'
 require data and most return an index to the new body or component(s).

 The basic structure of a script using BuildCADModel is

  kBody = BuildCADModel('add body',...)
          BuildCADModel('compute paths')      % once all bodies are added
  kComp = BuildCADModel('add component',...)
          BuildCADModel('add subsystem',...)
          BuildCADModel('set external model',g)
      g = BuildCADModel( 'get cad model' )
          BuildCADModel( 'show vehicle' )

 The mass properties for the spacecraft may either be set manually or
 computed from the mass properties of the components. To set them 
 manually, enter: 

		   BuildCADModel('set mass',mass); 

 where mass is a struct with fields mass (scalar), cM (3x1 vector) and 
 inertia (3x3 matrix). The mass properties are otherwise automatically  
 updated when the model is retrieved or saved. To command an update, enter: 

 	   BuildCADModel('update spacecraft mass properties');

 If the mass properties are set manually, they are considered "locked", 
 and they cannot be overwritten by an automatic update until they are un-
 locked. To lock or unlock the mass properties at any time, enter:

    BuildCADModel('lock mass properties');
    BuildCADModel('unlock mass properties');

 When adding components to subsystems pass in their names, as well as
 the name of the subsystem. The exact name is not required, i.e.
 'thruster' for Thruster 1, Thruster 2, etc.

    BuildCADModel('add subsystem','subsys name',{'component 1','component 2'})

 In order to perform shadowing calculations on the model, you need to
 explicitly generate the body-level lists vertices and faces after all the
 components have been added.

    BuildCADModel('create body arrays')

   action    (1,:)   Action string. These are not case sensitive.
   modifier  ()      Data for the action
   mod2      ()      Second modifier
   mod3      ()      Third modifier
   mod4      ()      Fourth modifier

   g         (.)     The CAD data structure

  See also: BuildCADModel>AddSubassembly


AC: ACData/ACTConstants
AerospaceUtils: CAD/BHinge
AerospaceUtils: CAD/BodyPlugIn
AerospaceUtils: CAD/ComponentPlugIn
AerospaceUtils: CAD/ComponentPopup
AerospaceUtils: CAD/CreateBody
AerospaceUtils: CAD/CreateCADTable
AerospaceUtils: CAD/Dim
AerospaceUtils: CAD/Draw2DViewPlugIn
AerospaceUtils: CAD/DrawSCPlanPlugIn
AerospaceUtils: CAD/DrawSpacecraftPatches
AerospaceUtils: CAD/ExportCAD
AerospaceUtils: CAD/GenericProperties
AerospaceUtils: CAD/SpacecraftPlugIn
AerospaceUtils: Coord/QLVLH
FormationFlying: Help/HelpSystem
SC: BasicOrbit/CP2I
SC: BasicOrbit/E2Nu
SC: BasicOrbit/El2RV
SC: BasicOrbit/M2E
SC: BasicOrbit/M2EApp
SC: BasicOrbit/M2EEl
SC: BasicOrbit/M2EHy
SC: BasicOrbit/M2Nu
SC: BasicOrbit/M2NuPb
SC: Ephem/ECIToPlanet
SC: Ephem/EOfE
SC: Ephem/EarthNut
SC: Ephem/EarthPre
SC: Ephem/EarthRot
SC: Ephem/Eclipse
SC: Ephem/GMSTime
SC: Ephem/MSidDay
SC: Ephem/MoonRot
SC: Ephem/Moons
SC: Ephem/NutDelta
SC: Ephem/ObOfE
SC: Ephem/SunV1
SC: Ephem/TruEarth
SC: GUIPlugIn/DrawSCPlugIn
SC: SCData/sCTConstants
SC: SCMat/EarthMR
SC: SCModels/SCForImaging
SC: SCModels/SimpleSat
SC: SCModels/TwoArraySC
SC: Visualization/PlotPlanet
Common: CommonData/Constants
Common: CommonData/Sosumi
Common: CommonData/SwooshWatermark
Common: CommonData/xSplashSmall
Common: Database/Constant
Common: GUIs/MessageQueue
Common: GUIs/TabBox
Common: General/CellToMat
Common: General/CloseFigure
Common: General/CloseIfHandle
Common: General/CloseUIElement
Common: General/DeBlankLT
Common: General/DeleteCell
Common: General/DispWithTitle
Common: General/FSWClock
Common: General/GetListString
Common: General/IsValidField
Common: General/IsVersionAfter
Common: General/MatToCell
Common: General/RadioButtons
Common: General/SaveStructure
Common: General/SetUIElement
Common: General/StringMatch
Common: General/StringToTokens
Common: General/StructToCell2D
Common: General/UIElement
Common: General/Watermark
Common: Graphics/DrawImage
Common: Graphics/NPlot
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Graphics/Polygon
Common: Graphics/PolygonProps
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: Plugins/HierarchicalListPlugIn
Common: Quaternion/AU2Q
Common: Quaternion/Mat2Q
Common: Quaternion/Q2Mat
Common: Quaternion/QPose
Common: Quaternion/QTForm
Common: Quaternion/QZero
Common: Time/DTSToDTA
Common: Time/Date2JD
Common: Time/JD2000
Common: Time/JD2T
Common: Time/JDToMidnight
Common: Time/T2JD
Math: Linear/Cross
Math: Linear/Dot
Math: Linear/DupVect
Math: Linear/Mag
Math: Linear/SkewSq
Math: Linear/Unit
Math: MathUtils/R2P5
Math: Trigonometry/CosD
Math: Trigonometry/SinD

Back to the AerospaceUtils Module page