cStorySetSimilarTo Method |
Namespace: ETABS2016
Public Sub Example() Dim SapModel As cSapModel Dim EtabsObject As cOAPI Dim ret As Integer = -1 Dim IsMasterStory As Boolean Dim SimilarToStory As String 'create ETABS object EtabsObject = CreateObject("CSI.ETABS.API.ETABSObject") 'start ETABS application ret = EtabsObject.ApplicationStart() 'create SapModel object SapModel = EtabsObject.SapModel 'initialize model ret = SapModel.InitializeNewModel() 'create steel deck template model ret = SapModel.File.NewSteelDeck(4,12,12,4,4,24,24) 'set story as master story ret = SapModel.Story.SetMasterStory("Story2", True) 'set story similar to ret = SapModel.Story.SetSimilarTo("Story3", "Story2") 'check ret = SapModel.Story.GetSimilarTo("Story3", IsMasterStory, SimilarToStory) 'close ETABS EtabsObject.ApplicationExit(False) 'clean up variables SapModel = Nothing EtabsObject = Nothing End Sub