XSTEEL高级教程13.docx
- 文档编号:23985816
- 上传时间:2023-05-23
- 格式:DOCX
- 页数:11
- 大小:63.46KB
XSTEEL高级教程13.docx
《XSTEEL高级教程13.docx》由会员分享,可在线阅读,更多相关《XSTEEL高级教程13.docx(11页珍藏版)》请在冰豆网上搜索。
XSTEEL高级教程13
Lesson13–MultiUser
∙SingleUserorMultiUser?
General
Advantagesofmultiuser
Disadvantagesofmultiuser
∙MultiUserPrincipals
Network
Server
Clientmachines
MasterModelandPlan
∙SettingupMultiuser
SettingupXsteelserver
SettingupXsteelclientmachines
∙UsingMultiUser
StartingXsteelinmulti-user
Modeling
Savingandautosaving
WorkingwithDrawings
Numbering
Problemsituations
SingleUserorMultiUser?
General
XsteelcanbeusedbothinSingleUserandMultiUsermode.
Whenonlyoneuseratatimeistoworkwithamodel,XsteelshouldberuninSingleUsermode.InSingleUsermodeonlyoneusercanworkwithonemodelatonetime.Whileworkinginsingleusermodeitisstillpossibletoimportmodelobjects(butnotmarksordrawings)fromanothermodelsbyusingCopyfrommodelcommand.
However,incaseofabigmodelitislikelythatmorethanoneuserneedstoworkwiththesamemodelatthesametime.IfitisnecessaryforseveraluserstosimultaneouslyeditamodelyoucanchoosetorunXsteelinMultiUsermode.ItisrecommendedtodosoonlyiftheusersaretoutilizethepossibilitiesMultiUsermodeoffers.
Advantagesofmultiuser
-Lessmodelstocontrol,trackandstore
-Lessinterfacing-lesserrorsonsite
-Onlymethodtohaveonemarkingplaninsteadofseveral-.(Combiningseparatemodelswithmarksanddrawingsisnotpossibleafterwards)
-OneBoltList,MaterialListetc..insteadofseveral
-Multiplepeopledrawingediting-easiertomeetdeadlines.Efficienciesgainedbyhavingonepersondoingtheonejob.Ie.onepersondoesalltheVerticalbracingetc..Timesavingscanbeachievedwhenonlyonepersonlearnstheonejob.
Disadvantagesofmultiuser
-Thebiggerthemodeltheslowerthemodel
-"Saving"timeisslower-onlyonepersoncansaveatonetime
-Numberingisslowerduetolargemodel
-Iferrors/bugsoccur-eg.Modellocked,databasevanishes-(affectsseveralpeopleinsteadofone)
MultiUserPrincipals
Network
ThemachinesrunningXsteelmustbenetworkedwiththenetworkprotocolTCP/IP.XsteelMultiUserfacilitydoesnotworkonotherkindofnetworks.
ToensurethattheTCPIPprotocolsaresetcorrectlycheckthateachPConthesamenetworkhasauniqueIDnumberandthateachPConthesamenetworkhasanidenticalSubnetmask.
Server
Onlyonemachineonthenetworkcanbethe"Server"andisdesignatedtorunthe"xs_server"program.
Xs_server.exehasthreemaintasks.Itkeepscountofremote“Client”users,distributesID-numberstonewobjectsandlocksthemodel,ifsomebodyisopening,savingornumberingthemodel.
The“server”doesn’tneedtobemostuptodatemachine-evenPC486canbeenoughifthereisnootherloadonit.TheservercanbethesamemachinewhereXsteelisusedbutitisbettertobeadifferentone.ThereasonforthisisthatthenitcanimmediatelyserveXsteelusers.Otherwiseifthereisanyotherload(e.g.Xsteelrunning)ontheserverthenusersmayhavetowaitinsomecasesbeforetheservercangiveidnumberstothem.
Note:
TokeeptheperformanceoftheMultiUsersystemhigh,runasfewotherprogramsaspossibleattheservermachineandDONOTuse3dscreensavers
Mastermodel,clientsandplans
Clientmachines
TheMultiUserSetupcancontainseveralremoteClients,whereallthe("Remote")userscanworkwiththeplans(viewstothemastermodel).The“Master”modelcanbelocatedanywhereonthenetwork.
WhenaremoteuseropensaMultiUsermodel,acopyofthemastermodelisbroughttohismachineandhecanstartworkingwithit.Thiscopyofthemodelisknownasa“Plan”copy.
MasterModelandPlan
TheXsteelMultiUserfeatureisdesignedtobeastransparenttotheuseraspossible.Thefeatureisnotbasedontraditionallockingbutonamaster/planconcept.
AMultiUsermodelusesone“MasterModel”andeachusercanopenaviewtothemaster.Thisviewiscalleda“Plan”.Theusercanmakechangestohis“Plan”,whichnobodyelseseesuntilhesaveshis“Plan”.Whena“Plan”issaved,thechangesaremergedwiththe“MasterModel”andbecomevisibletootherusers.(Noticethatonlychangesaresaved,notthewholemodel)Atthesametimeallmodificationsdonebyotherusersbecomevisibletotheuserwhosavedhis“Plan”.
SettingupMultiUser
Note:
ThemachinesrunningXsteelmustalreadybenetworkedwiththenetworkprotocolTCP/IP.
SettingupXsteelserver
Setuponemachine(server)torunthe"xs_server.exe"program.ThisprogramistobelaunchedpriortoeveryonestartingXsteel.
xs_server.exe"programisinstalledbydefaultwiththetypicalsetupinstallationofXsteelintothe..\nt\binfolder
IncaseservermachinedoesnothaveXsteelinstalledthexs_server.exeprogramcansimplybecopiedtoanylocationintheservermachinefromamachinewhichhasXsteelinstalled.Alongwithxs_server.exeprogramyouwillneedtocopythedbfast.dllfile.Itisalsopossibletoinstallthexs_server.exeseparatelywithcustomsetupinstallation.
Note:
Runningxs_server.exedoesnotrequiretheinstallingofXsteel.
Onceyouhavexs_server.exeprograminstalled(orcopied)intoyourservermachinecreateashortcuticontoyourdesktop.Youcannowstarttheserversoftwarejustbydoubleclickingtheshortcuticon
IfyouwatchtheDOSwindowcreatedbythisxs_server.exeprogram,itwillshowallactivityinthemodel,ie.Whohasjustopenedthemodeletc.Itisagoodideatocheckthatthisisworking.
SettingupXsteelclientmachines
InstallingXsteel
InstallthesameversionofXsteeltoallclientmachines.
Settingtheclientmachinestobeabletoaccesstheservermachine
Setupallclientmachinestobeabletoaccesstheservermachine.ThisisdonebydefiningtheserverwiththeenvironmentvariableXS_SERVERtothebatchfile.
setXS_SERVER=tcpip:
NAME,1238
Where:
XS_SERVER=Environmentvariabletcpip=NetworkprotocolNAME=NameorIP-addressofthecomputerrunningtheserversoftware.TofindouttheIP-addressoftheserverusethecommand"ipconfig"atthedos-prompt
1238=Standardvalue
Thebatchfilecanbeindividuallysetupforeachclientbysettingthisvariabletoeachclientsbatchfile.ThiscanbedonewheninstallingXsteel(AnsweringYestoMultiuserquestion)ormodifyingthisvariabletobatchfileafterwards.
Choosingmulti-userfacilityininstallingwillcreatefoldermultiuserunderyourbatfolderandplaceamultiuserbatchfileunderthismultiuserfolder.Onlydifferenceonthisbatchfilecomparedtothesingleuserbatchfileisthatvariable,xs_server,isalreadyset.Itishowevereasytosetthisvariableafterwards.Themultiuserbatchfiledonotnecesserilyneedtobelocatedinthismultiuserfolderbutcanbelocatedanywhereonthenetwork.
Howevertomakesurethatalltheclientmachinesalwaysusethesamebatchfileitisbetterideathatallclientsuseshortcuttoasharedbatchfilewhichthenonlyiseditedwhenneeded.Theactualbatchfilecanbelocatedanywhereonthenetwork.
Directingautosavestoalocaldirectory
AutosaveisnotthesameastheSavecommand.Autosavemakesjustalocalsaveanditdoesnotreloadthemastermodel,sotheotherpeopleinthenetworkdonotseethemodificationsyoumade.
Theautosavesarebydefaultsavedinthemodeldirectoryasfile"model".db1.user.InMultiuserthismeansthatusersautosavefilesarebydefaultsavedtoanothermachineoverthenetworkandthiswillslowdownthenetworktraffic.
Thisiswhyitisagoodideatodirectautosavetoalocaldirectory.ThiscanbedonebydefiningtheenvironmentvariableXS_AUTOSAVE_DIRECTORYinthebatchfile.
setXS_AUTOSAVE_DIRECTORY=C\Xsteel\6.1\autosave
UsingMultiUser
StartingXsteelinmulti-user
OnceyouhavesetuptheserverandalltheclientmachinesyouarereadytostartusingXsteelinMultiUsermode.
1.Startthe"xs_server"program.
IntheDOSwindowcreatedbythe“xs_server”program,shoulddisplayamessage“Serverstartedsuccessfully”
2.StarttheXsteelprogram.
3.Createanewmodeloropenanexistingmodel.Thismodelcanbelocatedanywhere.
OncethemodelisopenedintheDOSwindowshoulddisplayamessage:
Client‘NAME’connected
4.OpenthesamemodelonanyotherXsteelclientmachinesthathavetheabovebatchfilelineactive.
CheckfromtheDOSwindowcreatedbythe“xs_server”program,thateachuserisconnectedtotheserver.
5.Whenamodel"Save"commandisperformed,allchangesaresavedtoamastermodelallowingallothersactivemachinesaccesstothosechanges.
Note:
ItisagoodideatocheckfromtimetotimetheDOSwindowcreatedbythe“xs_server”programitwillshowallactivityinthemodel,i.e.Whohasjustopenedthemodeletc.
Modeling
Modelingobjects
Ingeneraloneuserformulatinghisplanworkswithacertainpartofthemodelandmodifiesobjectsinthatpart,whileanotheruserwiththedifferentplanmakeschangesinotherpartsofthemodel.Sincetheyinvolvedifferentobjectsbothplansareindependentandcanbesavedindependently.
Xsteelensuresthatthemodelremainsconsistent,evenwhenseveraluserseditthesamepartofthemodelsimultaneously.When2usershavemodifiedthesameobjects,conflictwilloccurwhenonesaveshisplan.InthiscaseXsteelworkslikeafilesystem:
theonewhosaveslaterhaspriority.
Adifferenttypeofconflictcanoccurif2userseditrelatedobjectssimultaneously;oneusermovesabeamandanothercreatesajointforthisbeam.Theuserwhomovedthebeamsavesthemodelfirst.Whentheotherusersavesthemodelthesystemnotesthatthebeamhasbeenmovedandthejointfollowsthebeamtoanewposition.
Views
Aviewisanobjectinthedatabase
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- XSTEEL 高级 教程 13
![提示](https://static.bdocx.com/images/bang_tan.gif)