Tekla®OpenAPISelfLearningExercisesTeklaStructures17.0February2011Copyright©2011TeklaCorporation©2011TeklaCorporationanditslicensors.Allrightsreserved.ThisSoftwareManualhasbeendevelopedforusewiththereferencedSoftware.UseoftheSoftware,anduseofthisSoftwareManualaregovernedbyaLicenseAgreement.Amongotherprovisions,theLicenseAgreementsetscertainwarrantiesfortheSoftwareandthisManual,disclaimsotherwarranties,limitsrecoverabledamages,definespermittedusesoftheSoftware,anddetermineswhetheryouareanauthorizeduseroftheSoftware.PleaserefertotheLicenseAgreementforimportantobligationsandapplicablelimitationsandrestrictionsonyourrights.Inaddition,thisSoftwareManualisprotectedbycopyrightlawandbyinternationaltreaties.Unauthorizedreproduction,display,modification,ordistributionofthisManual,oranyportionofit,mayresultinseverecivilandcriminalpenalties,andwillbeprosecutedtothefullextentpermittedbylaw.TeklaisatrademarkofTeklaCorporation.TeklaisaregisteredtrademarkofTeklaCorporationintheEuropeanUnion,theUnitedStates,andinseveralothercountries.TeklaStructures,Xcity,Xengineer,Xpipe,Xroad,Xstreet,Xpower,Xsteel,andXstreetareeitherregisteredtrademarksortrademarksofTeklaCorporationintheEuropeanUnion,theUnitedStates,and/orothercountries.OtherproductandcompanynamesmentionedinthisManualareormaybetrademarksoftheirrespectiveowners.Byreferringtoathird-partyproductorbrand,Tekladoesnotintendtosuggestanaffiliationwithorendorsementbysuchthirdpartyanddisclaimsanysuchaffiliationorendorsement,exceptwhereotherwiseexpresslystated.Portionsofthissoftware:D-Cubed2DDCM©2008SiemensProductLifecycleManagementSoftwareIII(GB)Ltd.Allrightsreserved.EPMtoolkit©1995-2004EPMTechnologya.s.,Oslo,Norway.Allrightsreserved.XMLparser©1999TheApacheSoftwareFoundation.Allrightsreserved.ProjectDataControlLibrary©2006-2007DlhSoft.Allrightsreserved.DWGdirect,DGNdirectandOpenDWGToolkit/Viewkitlibraries©1998-2005OpenDesignAlliance.Allrightsreserved.FLEXnetCopyright©2006AcressoSoftwareInc.AllRightsReserved.ThisproductcontainsproprietaryandconfidentialtechnologyprovidedbyandownedbyAcressoSoftwareInc.OfChicago,Illinois,USA.Anyuse,copying,publication,distribution,display,modification,ortransmissionofsuchtechnologyinwholeorinpartinanyformorbyanymeanswithoutthepriorexpresswrittenpermissionofAcressoSoftwareInc.isstrictlyprohibited.ExceptwhereexpresslyprovidedbyAcressoSoftwareInc.inwriting,possessionofthistechnologyshallnotbeconstruedtoconferanylicenseorrightsunderanyofAcressoSoftware´sintellectualpropertyrights,whetherbyestoppel,implication,orotherwise.ElementsofthesoftwaredescribedinthisManualmaybethesubjectofpendingpatentapplicationsintheEuropeanUnionand/orothercountries.TEKLA®OPENAPISELFLEARNINGEXERCISESiContentsContentsTekla®OpenAPI......................................................................................................................1SelfLearningExercises............................................................................................................................1Contents....................................................................................................................................iPreface.....................................................................................................................................iii1SelflearningmaterialforTeklaOpenAPIofTeklaStructures17.0........................11.1CreateanewprojectinVisualStudio...........................................................................................22ExercisesfortheModelingAPI....................................................................................52.1Createpadfootings........................................................................................................................62.2Createcolumnsontopofthepadfootingsandconnectcolumnstothepadfootings...............82.3Createrebarstothepadfootings................................................................................................102.4UseCatalogUIcontrols...............................................................................................................122.5Addtempleteform........................................................................................................................153ExercisesfortheDrawingAPI...................................................................................193.1Easyeditingofanopeneddrawing.............................................................................................193.2Browsethroughdrawingslistandopenadrawing.....................................................................20TEKLA®OPENAPISELFLEARNINGEXERCISESiiiPrefacePrefaceThismaterialistargetedatdevelopers,whohaveverylittleexperienceinTeklaOpenAPI.Thisincludesexercises,whichhavecertainamountofguidance,butthere'slotofroomforselflearninganddiscoveringdifferentthingsfromtheTeklaOpenAPI.TEKLA®OPENAPISELFLEARNINGEXERCISES1SelflearningmaterialforTeklaOpenAPIofTeklaStructures17.01SelflearningmaterialforTeklaOpenAPIofTeklaStructures17.0Thisselflearningmaterialcontai