找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

巢课
电巢直播8月计划
查看: 584|回复: 2
打印 上一主题 下一主题

求助,我的代码执行到最后,还留着不知道什么功能!!

[复制链接]

47

主题

266

帖子

2730

积分

四级会员(40)

Rank: 4Rank: 4Rank: 4Rank: 4

积分
2730
跳转到指定楼层
1#
发表于 2013-5-14 14:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您!

您需要 登录 才可以下载或查看,没有帐号?注册

x
各位大大们帮我看一下!我运行完这个叠层指令后,无法正常结束,总有功能还在挂着,请大大们帮着指点一下!!

谢谢!
以下是代码!
  1.   stack_layer="MANUFACTURING/STACKUP_FIGURE"
  2.   axlClearSelSet()
  3.   Display=axlVisibleGet()
  4.   axlVisibleDesign(nil)
  5.   axlVisibleLayer(stack_layer t)
  6.   axlDBRefreshId(axlDBGetDesign())
  7.   axlSetFindFilter(?enabled '(noall shapes text) ?onButtons '(noall shapes text))
  8.   axlDeleteObject(axlGetSelSet(axlAddSelectAll()))
  9.   axlVisibleSet(Display)
  10. ;  axlShell("redisplay")
  11. l_layer=axlGetXSection()
  12. nbLayer = length(l_layer)
  13. ;printf("nombre de couche: %d\n" nbLayer)
  14. ;printf("%L" l_layer)


  15. nLayer=nil
  16. declare( layer[nbLayer])
  17. arrayp(layer)
  18. for(lay 0 nbLayer-1 layer[lay]=car( nth( lay l_layer))
  19. nLayer=append(nLayer list(lay+1 layer[lay]))
  20. ;printf("%d  %s \n" lay+1 layer[lay])

  21. Unit=car(axlDBGetDesignUnits())
  22.         case(Unit
  23.         ("millimeters" u=1)
  24.         ("mils" u=40)
  25.         ("inches" u=0.04)
  26.         ("microns" u=1000)
  27.         ("centimeters" u=0.1)
  28.         );end case
  29. L=66*u       
  30. H=-1*(5+nbLayer*4)*u

  31. axlClearDynamics()
  32. mypath = axlPathStart(list( 0:0 L:0 L:H 0:H 0:0))
  33. axlAddSimpleMoveDynamics(0:0 mypath "path" ?ref_point 0:0)

  34. );for
  35. printf("Enter a point to place the X-Section Figure...\n")

  36. if(axlIsLayer(stack_layer)==nil then
  37. axlLayerCreateNonConductor(stack_layer)
  38. );if
  39. (axlUIWRedraw nil)
  40. axlVisibleLayer(stack_layer t)

  41. pointStart=nil
  42. declare( point1[nbLayer])
  43. declare( point2[nbLayer])
  44. declare( point3[nbLayer])
  45. declare( bBox[nbLayer])
  46. declare( layerName[nbLayer])
  47. declare( layerWidth[nbLayer])
  48. declare( layerWidthSpace[nbLayer])


  49. pointStart = axlEnterPoint()
  50. Px = xCoord(pointStart)
  51. Py = yCoord(pointStart)
  52. printf("***test***1***\n" )

  53. for(p 1 nbLayer-2
  54.         if(car( nth( p l_layer)) == "" then
  55.                 point1[p]=list(Px+37*u Py-(p+2)*4*u)
  56.                 bBox[p]=list(list(Px+10*u Py-(p+2.5)*4*u) list(Px+35*u Py-(p+2)*4*u+4.2*u))
  57.                 layerName[p] = strcat( nth(1 nth( p l_layer)) " (" nth(3 nth( p l_layer)) ")")
  58.                 myorient=make_axlTextOrientation(?textBlock "4",?rotation 0., ?mirrored nil, ?justify "left")
  59.                 axlDBCreateText(layerName[p], point1[p], myorient, stack_layer,nil)
  60.                 myfill1 = make_axlFill( ?angle 45.0, ?origin 0:0,?width 10, ?spacing 20)
  61.                 myfill2 = make_axlFill( ?angle 135.0, ?origin 0:0,?width 10, ?spacing 20)
  62.                 myfill = list( myfill1 myfill2)
  63.                 axlDBCreateRectangle(bBox[p],myfill, stack_layer)
  64.                 axlDBCreateText("STACK_UP:",list(Px+3*u Py-4*u), myorient, stack_layer,nil)
  65.         else       
  66.                 point1[p]=list(Px+45*u Py-(p+2)*4*u)
  67.                 point2[p]=list(Px+45*u+1500 Py-(p+2)*4*u)
  68.                 point3[p]=list(Px+45*u+1500 Py-(p+2)*4*u-120)
  69.                 bBox[p]=list(list(Px+5*u Py-(p+1.9)*4*u) list(Px+40*u Py-(p+1.9)*4*u+1.5*u))
  70.                 layerName[p]= strcat( car( nth( p l_layer)) " (" nth(3 nth( p l_layer)) ")"  )
  71.                 i = (p-1)/2
  72. ;                layerWidth[p]= strcat("(" zzSW[i] " 50ohm" ")" )
  73. ;                layerWidthSpace[p]= strcat("(" zzDW[i] "/" zzDS[i] " 100ohm" ")")
  74.                 myorient1= make_axlTextOrientation(?textBlock "4",?rotation 0., ?mirrored nil, ?justify "left")
  75.                 myorient2= make_axlTextOrientation(?textBlock "4",?rotation 0., ?mirrored nil, ?justify "left")
  76.                 axlDBCreateText(layerName[p], point1[p], myorient1, stack_layer,nil)
  77. ;                axlDBCreateText(layerWidth[p], point2[p], myorient2, stack_layer,nil)
  78. ;                axlDBCreateText(layerWidthSpace[p], point3[p], myorient2, stack_layer,nil)
  79.                 axlDBCreateRectangle(bBox[p],t, stack_layer)
  80.                 axlDBCreateText("STACK_UP:",list(Px+3*u Py-4*u), myorient, stack_layer,nil)
  81.                 );if
  82.                

  83.        
  84.          );for
  85.          
  86. ;        axlDBCreateText("STACK_UP:",list(Px+3*u Py-4*u), myorient, stack_layer,nil)
  87. ;  axlDBCreateRectangle(list(list(Px Py) list(Px+100*u yCoord(point[nbLayer-1])-5*u)), nil, stack_layer)
  88. printf("***test***2***\n" )
复制代码
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
收藏收藏1 支持!支持! 反对!反对!
争风吃醋是女人最大的弱点  争强好胜是所有男人的死穴

7

主题

444

帖子

4989

积分

EDA365版主(50)

Rank: 5

积分
4989
2#
发表于 2013-5-14 15:05 | 只看该作者
axlClearDynamics()
加到96行,还有90行的 myorient变量调用有问题

点评

支持!: 5.0
支持!: 5
  发表于 2013-5-14 16:34

47

主题

266

帖子

2730

积分

四级会员(40)

Rank: 4Rank: 4Rank: 4Rank: 4

积分
2730
3#
 楼主| 发表于 2013-5-14 21:36 | 只看该作者
收到,谢谢!!我明天去公司试一下,代码都放公司了,今天没有带回来!!
争风吃醋是女人最大的弱点  争强好胜是所有男人的死穴
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

巢课

技术风云榜

关于我们|手机版|EDA365 ( 粤ICP备18020198号 )

GMT+8, 2025-2-24 10:53 , Processed in 0.082323 second(s), 36 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

快速回复 返回顶部 返回列表