首页/文章/ 详情

ANSA<Assembly第六弹_过滤器

27天前浏览1135

嗨,大家晚上好,今天给大家带来过滤器。

关于ASSEMBLY “过滤器”的帮助文档在604页

咱们前边几篇已经讲了如何创建连接数据,以及连接数据之间的转换,准备工作做好后,就可以使用CONNECTOR MANAGER做相应连接。

但使用该功能之前,得选择哪一些需要做连接,当然也可以一同选择,豆豆没记错的话,最多同时可以支持9种类连接类型。

如果大家没有出现选择过滤器界面,点击CONNECTOR MANAGER直接出现上图,可能原因出在这里,切换成第一个选项。

过滤器分成两个界面,一个集 合了常用功能,另一个则包含了一些高级功能(实际工作中常用的功能配合使用都可以解决选择问题)。把前面的复选框勾选上,激活该选择过滤。功能可以配合使用,比如选择未生成焊缝的焊接数据如下图。

选择生成成功的三层焊点数据。

参数设置完成后直接点击Select 即可完成选择。

过滤器还提供了逻辑运算,同样可以反选,把“=”换成“!="即可。

晚安

每日一语

一旦找到了生活的意义,你就不会想回到从前去。 

来源:TodayCAEer
ANSA焊接
著作权归作者所有,欢迎分享,未经许可,不得转载
首次发布时间:2024-08-14
最近编辑:27天前
TodayCAEer
本科 签名征集中
获赞 16粉丝 8文章 163课程 0
点赞
收藏
作者推荐

HyperWork 2024 -二次开发-Tcl语言-Namespaces(10/12)

NamespacesprovideameansoforganizingproceduresandvariablesinTcl.Anamespacebasicallycreatesauniquelocalscope.Withineachuniquescope,variablesandprocedurescreatedinthatscopeareisolatedfromboththeglobalscopeandfromotherscopes.Thisallowsthedeveloperameanstosegregateproceduresandvariablesinanorganizedmanner.Namespacescanbenested,andproceduresandvariablescanbeimportedto,exportedfrom,andreferencedinothernamespacesortheglobalscope.Thefollowingdiagramshowsavisualrepresentationoftheglobalscopeandseveraldifferentnamespaces,includingvariablesandproceduresdefinedineach.AglobalprocedureactsjustlikeanyfunctionwithinTcl.Aglobalprocedurecanbecalledfromanamespacewithoutanyneedtoimportorotherwiselocalizetheprocedure.Aprocedurewithinanamespaceislocaltothenamespaceunlessitisexplicitlycalledortheprocedureisexportedfromthenamespace.Theglobalscopeisalsodesignedsuchthatanyvariablesdefinedoutsideofaprocedureoranamespaceareautomaticallyintheglobalscope.Toaccessaglobalvariableinalocalscope,suchasaprocedureornamespace,youwillneedtousetheglobalcommand.Asascriptgrowsandasthenumberofscriptsrunningsimultaneouslyincreases,theabilityofthedevelopertoavoidconflictbetweenthenamesofproceduresandvariablesdefinedintheglobalscopedecreases.ThefollowingTclcodedemonstrateshowtheglobalcommandpermitsaccesstoglobalvariablesinalocalscope.setf&quot;Thisisaglobalvariable&quot;;#Thisprocedurecannotaccesstheglobalvariablef.proctestproc1{}{catch{puts$f}val;puts$val;}#Thisprocedurecanaccesstheglobalvariablefusingtheglobalcommand.proctestproc2{}{globalf;catch{puts$f}val;puts$val;}testproc1;can&#39;tread&quot;f&quot;:nosuchvariabletestproc2;ThisisaglobalvariableLikewise,anyvariabledeclaredasglobalfromwithintheprocedurewherethevariableisdefinedisalsoincludedintheglobalscope,oncetheprocedurehasbeenrun.Anyattempttoaccessthevariablebeforerunningtheprocedurewillcauseanerror.Theupvarcommandcanbeusedtochangetheavailabilityofavariablebyprovidingapointertothesourcevariable’scontents.Namespacesaddanotherlevelofsyntaxtoprocedureandvariablenames.Adoublecolon::istheseparatorbetweennamespacenamesandprocedure/variablenames.Anexampleofanamespacecalledmy_namespacewouldbe::my_namespace.Theglobalnamespaceindicatorisjustthedoublecolon.Thismeansthatinsteadofusingtheglobalcommand,itisalsopossibletoreferenceglobalvariablesinsideproceduresusingtheglobalnamespaceindicator.set::element_list&quot;12345&quot;;proc::element_info{}{puts$::element_list;set::node_list&quot;10203040&quot;;puts$::node_list;}element_info;1234510203040puts$::element_list;12345puts$::node_list;10203040However,usingglobalvariablesisriskybecausetheymayconflictwithvariablesorproceduresdefinedintheglobalscopeofotherTclscripts.Instead,user-definednamespacesarerecommended.Thefollowingtablecontainssomecommonlyusednamespacecommandsandasummaryoftheirusage.Formorein-depthexplanationsandacompletelisting,referredtohttp://www.tcl.tk/man/ortoaTcl/Tkhandbook.namespaceevalnameUsedtodefineanamespaceortoruncommandsinsideanamespace.namespacecurrentReturnsthequalifiednameofthecurrentnamespace.namespacedeleteDeletesandexistingnamespace.namespaceexistsCheckfortheexistenceofanamespace.variableUsedtodefine,andoptionallyassignavalueto,avariablewithinanamespace.ThevariablecommandcanbeusedtosharevariablesbetweenproceduresandthemainbodyoftheTclscript.namespaceeval::my_namespace{variableelement_list&quot;12345&quot;;}proc::my_namespace::element_info{}{variableelement_list;puts$element_list;variablenode_list&quot;10203040&quot;;puts$::node_list;}::my_namespace::element_info;1234510203040puts$::my_namespace::element_list;12345puts$::my_namespace::node_list;10203040Thefollowingcodegivesexamplesofhowvariablesandprocedurescanbemanipulatedfromnamespaces,procedures,andtheglobalscope.#Scriptbegins.#Defineavariableintheglobalscope.setf&quot;Thisisaglobalvariable&quot;;#Thisglobalprocedurewillgenerateanerrorbecausethe#globalvariablefisnotinthescope.proctestproc1{}{catch{puts$f}g;puts$g;}#Thisprocedurewillnotgenerateanerrorbecausethe#globalvariablefislocalizedwiththeglobalcommand.proctestproc2{}{globalf;catch{puts$f}g;puts$g;}#Acalltodeletethenamespaceclearsvariableswithin#thatnamespace.catch{namespacedelete::testspace};#Thenamespaceevalcommandcreatesanewnamespace.namespaceeval::testspace{variablefg&quot;Thisisanamespacevariable&quot;;#Exportasingleprocedureforuselater.namespaceexporttproc3}#Procedurescanbeorganizedintonamespaces.proc::testspace::tproc1{}{#Globalproceduresdonotrequireanamespaceindicator.testproc1;testproc2;#Procedureswithinthesamescopedonotrequirea#namespaceindicator.tproc2;tproc3;#Proceduresfromothernamespacesmustbeexplicitlydeclared#unlessanamespaceimportisused.catch{oproc1}ds;puts$ds;::otherspace::oproc1;}#Thisnamespaceprocedurewillgenerateanerrorbecausethe#namespacevariableisnotinthescope.proc::testspace::tproc2{}{#Thecatchcommandisusedtopreventthescriptfrom#exitingwithanerror.catch{puts$fg}g;puts$g;}#Thisnamespaceprocedurewillnotgenerateanerrorbecausethe#namespacevariableislocalized.proc::testspace::tproc3{}{#Thevariablecommand,ifreferringtoanexisting#namespacevariableandnotmakinganassignment,#allowslocalaccesstothevariable.variablefg;catch{puts$fg}g;puts$g;}#Acalltodeletethenamespaceclearsvariableswithin#thatnamespace.catch{namespacedelete::otherspace};#Creatingasecondnamespace.namespaceeval::otherspace{variablefh&quot;Thisisadifferentnamespacevariable&quot;;}proc::otherspace::oproc1{}{#Thenamespaceimportcommandcanbeusedto#localizeprocedures.namespaceimport::testspace::tproc3;variablefh;catch{puts$fh}h;puts$h;tproc3;#namespaceoriginreturnsoriginalnamespaceoftheproc.puts[namespaceorigintproc3];}#Runtheprimaryprocedure::testspace::tproc1Runningthesecommandsgeneratesthefollowingoutput.Someproceduresarecalledmorethanonce,sopaycloseattentiontowheretheprocedurecallismade.can&#39;tread&quot;f&quot;:nosuchvariableThisisaglobalvariablecan&#39;tread&quot;fg&quot;:nosuchvariableThisisanamespacevariableinvalidcommandname&quot;oproc1&quot;ThisisadifferentnamespacevariableThisisanamespacevariable::testspace::tproc3来源:TodayCAEer

未登录
还没有评论
课程
培训
服务
行家
VIP会员 学习 福利任务 兑换礼品
下载APP
联系我们
帮助与反馈