XSTEEL高级教程3.docx
- 文档编号:23207761
- 上传时间:2023-05-15
- 格式:DOCX
- 页数:15
- 大小:134.65KB
XSTEEL高级教程3.docx
《XSTEEL高级教程3.docx》由会员分享,可在线阅读,更多相关《XSTEEL高级教程3.docx(15页珍藏版)》请在冰豆网上搜索。
XSTEEL高级教程3
Lesson3–CreatingandModifyingDrawingTemplates
∙Creatingandmodifyingtextfields,text,lines,circlesetc.
∙CreatingandmodifyingTableParts
∙DXFinginAutoCADFiles
∙Exercise–Creatinganewassemblydrawingtemplate
Creatingandmodifyingtextfields,text,lines,circlesetc.
Xsteel6.1hasanewtemplateeditoranduserinterfacehavechangedslightlye.g.alliconsareplacedtotopofthetemplateeditor.
SnapGrid
The“SnapGrid”spacingallowtheusertopositionlines,circles,textandfieldsmoreeasilyinuserdefinedX&Yincrements.Toaccessthesesettingsgotothe“Settings”pulldownmenuandselect“Grid”.
YoucanadjusttheXandYSnapGridvaluesindependentlyinincrements0.1andyoucanalsomaketheSnapGridvisibleusingthisdialogue.
SnapGridTips:
1.ThesmallertheXandYgridvaluesthemoredifficultitistoselectanyobjects
2.AfteralteringanyvaluesintheGriddialogue,alwayspick“EndCommand”fromtherightmousepickotherwiseyouwillnotbeabletoselectanything.
3.DONOTsettheXandYgridspacingtoasmallvalue(eg.0.1)andthenmakethegridvisible.Ittakesseveralhourstofinishdisplayingallthesnappoints!
Zooming
TheXsteelTemplateeditorhasthesamezoomingoptionsasareavailableinXsteelitself.Howeverthereareonly3iconswhatcanbeusedforzooming.Thereisa“ZoomIn/out”iconsanda“ZoomPrevious”icon.Remainderofthezoomingcommandsarefoundunderthe“Window”pulldownmenu.
Tip:
Youcaneasilyzoomin/outbypressingaCtrlkeydownandusingyourmousewheel.
CreatingLines,Circles,Arcs,BoxesandFilledobjects
Asanexercise,createanewdrawingtemplate,settheSnapGridtoX=5andY=5andcreateafewoftheseobjects.
CreatingTextandTextfields
TocreatenewText,fromthe“Properties”pulldownmenuselect“Text”,typetextinthedesiredtextstring,checkthecolorandfontsettingsthenapplyandOK.Nowgotothe“Create”pulldownmenu,select“Text”,oruse“Text”iconandplacethetextinthedesiredlocation.Youwillneedtopicktwopointstonominatefirstlytheoriginpointandthenthedirection.
TocreateanewTextField,fromthe“Properties”pulldownmenuselect“Field”then“Text”,selectthedesiredtextfield,checkthejustification,fieldlength,numberofdecimalplaces,Ordervalue,TypeandwhetheritisaSumornot.
NowcheckthecolorandfontsettingsintheapplicablesubdialogueboxesthenapplyandOK.Nowgotothe“Create”pulldownmenu,select“Textfield”andplacethetextinthedesiredlocation.Youonlyneedtopickonepointtolocateatextfieldasitisnotpossibletorotateatextfieldinthetemplateeditor.
GripHandles
SimilartotheXsteelDrawingEditor,alllinescirclesarcshavegriphandlesattheendofalllinesandarcs,atthecornersoftheboxes,atthecenterofcirclesandatthebottomleftcorneroftextandtextfields.
Movingobjects
Youcanmoveobjectsbyselectingtheobjectandthendraggingittoitsnewlocationusingthegriphandles.UsingtheGripHandlesyoucanonlymoveobjectsintheamountsetintheSnapGrid.IfyouneedtomoveobjectsbyadifferentamounttowhatissetintheSnapGrid,itmaybebettertousethe“Move”dialogueboxinstead.
Toaccessthe“Move”dialoguebox,fromthe“Edit”pulldownmenuselect“Move”.Tomoveobjectsusingthethisdialogue,selecttheobject(s),typetheXand/orYvalueinthe“Move”dialogueboxandpressthe“Move”button.
CopyandPaste
LikemostWindowsbasedprograms,CopyandPastecanbeusedintheTemplateEditor.Simplyhighlighttheobjectyouwishtocopy,rightclickonyourmouseandselect“Copy”,thenrightclickandselect“Paste”.
Modifyingthepropertiesofanobject
Lines,Circles,ArcsandBoxes–Tomodifythecoloroftheseobjectsgotothe“Settings”pulldownmenuandselect“Pen”.Fromthereyoucanselectthedesiredcolor,selecttheobjectandpress“Modify”
Text-DoubleclickonanyTextstringandthe“TextProperties”dialoguewillappear.
Youcanchangethetextstringinthemaindialogue,theheight,width,fontandslantofthetextthroughthe“Fontsettings”subdialogueandthenthecolorofthetextthroughthe“PenSettings”subdialoguebox.
TextFields-DoubleclickonanyTextFieldandthe“TextFieldProperties”dialoguewillappear.
Youcanchoosethetextfield,thefieldjustification,fieldlength(ie.numberofcharacters),numberofdecimalplacesshown,Ordervalue,Typeandwhetheritistobeatotalorsubtotalfieldinthemaindialogue.
Theheight,width,fontandslantofthetextthroughthe“Fontsettings”subdialogueandthenthecolorofthetextthroughthe“PenSettings”subdialoguebox.
CreatingandmodifyingTemplateComponents
AsdiscussedinLesson2,alltemplatescontainTemplateComponents,whichsurroundallobjectsinthetemplate.IfyouhaveplacedanyobjectoutsidetheTemplateComponentsanerrormessageshownbelowwillbedisplayedwhenyouattempttosaveyourtemplate.
Atthispointyouhavetwochoices–eithermovetheobjectinsidetheTemplateComponentsorenlargetheTemplateComponentstoincludethisobject.
ItisnotpossibletostretchanexistingTemplateComponenttoenlargeit,soyouwillneedtodoubleclickontheexistingTemplateComponentandpressApplythenOK.Nowfromthe“Create”pulldownmenuselect“TemplateComponents”andplaceanewonearoundtheobjects.FinallydeletetheoldTemplateComponent.
DXFinginAutoCADFiles
Manyusersrequiretheirownortheirclient’slogostobeonthedrawingsomewhere–usuallyinthedrawingtitleblock.ItispossibletocreatelogosusingtheXsteelTemplateeditorbutquiteoftenthelogoscanbesuppliedinAutoCADDWGformat.
EvenifthelogosarenotavailableinDWGformattheymaybeavailableinBMPformat(orhardcopieswhichcanbescannedin)whichcanthenbeimportedintoAutoCADandtracedwithlinesandthenhatched.
HatchingTip:
Don’tmakethehatchingto“fine”otherwisewhenthehatchisexplodedthiswillresultinmanythousandsofsmalllineswhichwillslowdowntheopeningofdrawings.
PreparingtheDWGfileforexporttoDXF…
1.ItisnotpossibletoscaleDXFfilesoncetheyhavebeenimportedintheXsteelTemplateEditorsoitisimportanttogetthesizeofthelogocorrectinAutoCADfirstbeforeDXFingitout.Theunitsofthetemplateeditorismillimetersandworksatascaleof1:
1soyouwillneedtomeasuretheexactspacethatthelogofitsintoandensurethelogoisthecorrectsizebeforeexporting.
2.Explodeallhatchingandblocks
3.Movelogoto0,0,0
4.ExporttoRelease12DXFformat(MustbeR12DXFatmoment)
ImportingtheDXFintoatemplate…
1.Fromthe“File”pull-downmenuinthetemplateeditor,select“ImportDXF”
2.SelecttheDXFfileyouwishtoimport.Andthenpress“Open”
3.TheDXFwillimportintothetemplateinthelowerrightcorneroftheyellowgridborderifyoumovedeverythingto0,0,0inAutoCAD.
4.Itisagoodideatonowwindowacrossallthelinesandtextetc.thatwereimportedandchangedtheircolourtowhitebygoingtothe“Settings”pull-downmenuandselecting“Pen”.Thenselectcolourwhiteandpressmodify.WhenaDXFfileisimportedintothetemplateeditor,thecoloursare“mapped”todifferentcoloursandsomelinesandtextetc.maycomethroughblack.
Exercise–Creatinganewassemblydrawingtemplate
InthisexercisewearegoingtocreateanewA3templatefromscratch(evenitisalwaysbetter/easiertoopenanexistingtemplateanddoasaveas).
Wearegoingtousenormalassemblyconditionandtabletype.Alsowe’llimportaDXFfiletobeapartofthistemplate(imitatingindividualuserneedstobringcompanylogoin).
OpenTemplateeditorinXsteelandcreatenewtemplatenamedastitle_a3.tpl.NOTE!
Rememberthetplextensionotherwiseit’snotvisibleinyouravailabletablelist.AfterthatimportexampleDXFfiletothetemplateeditor.IfDXFfileislocatedtotheorigin(0,0,0)youshouldhavenowalogoinyourtemplate(weareusingTekla’sdefaultlogointhisdemo).
InXsteel6.1templateeditoryoucaneasilyzoomin/outbypressingctrlkeydownandusingamousewheel.
Youcanre-locatelogobyusingmove,copy,cutandpastecommands(we’llplacealogototop-lefthandcorner).Alsoit’seasytore-defineusedcolourse.g.changecyantoblueandwhitetored(Settings->Linestyle,selectlinesbyareaandthenGet).Nextstepistodefinetemplatetype(Templatesettings)andtemplatecomponentproperties(Properties->Templatecomponents)andcreatefirsttemplatecomponent.TemplatetypewillbeASSEMBLY.Firstcomponentpropertiesareshowninpicturebelow.
ChangeTemplatecomponentto“Row”andcompletetheRuleasfollowing.
Weneedalsoonemoretemplatecomponent,whichwillbeReportheader.RulecanbeasamethanRowrulewas.Whenlogoisre-located,colourschangedandtemplatecomponentscreated,templateshouldlooklikebelowone.
Reportheader
Row
Nextwe’llneedsomelines,textfieldsandtexttofinishourtemplate.
LINES:
Firstdefinelineattributes(colour,typeandwidth).NOTE!
Linescreatedherewillbevisibleinourtemplateandcolourswillbedisplayedtodrawingasseenintemplateeditor.
TEXTFIELDS:
We’lluseheresimilartextfieldsthanhasbeenusedindefaultdrg_title_a3.tpltemplate.
Usedfieldare:
-ADDRESS
-BUILDER
-START_DATE
-DESIGNER
-PROJECT_NAME
-PROJECT_NUMBER
InformationthesefieldswillreturniscollectedfromProperties->Project(seepicturebelow).
Restusedfieldsare:
-NAME,returnsassemblymainpartnamedefinedinpartpropertiesdialog
-AS
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- XSTEEL 高级 教程