点击查看详细介绍

GRIP点到点移动、复制源代码分享

tbg_ui 10年前 14195 107

购买与咨询 NX 二次开发视频教程,请联系微信号:13890821008  QQ号:85585969  


GRIP点到点移动、复制源代码分享,源码如下:

ENTITY/ent(1000),obj(1000)
NUMBER/mat(12)
start:
CHOOSE/'Select move or copy,point to point!!!',$
'移动',$
'复制',rsp
JUMP/start:,hal:,,,m1:,c1:,rsp
m1:
ident/'select objects to transform',ent,cnt,num,rsp
jump/m1:,hal:,,rsp
m2:
gpos/'select reference point',x1,y1,z1,rsp
jump/m1:,hal:,,rsp
m3:
gpos/'select next point',x2,y2,z2,rsp
jump/m2:,hal:,,rsp

●●●请先 登陆注册 后查看●●●
jump/m3:
hal:
halt
c1:
ident/'select objects to transform',ent,cnt,num,rsp
jump/c1:,hal:,,rsp
c2:
gpos/'select reference point',x1,y1,z1,rsp
jump/c1:,hal:,,rsp
c3:
gpos/'select next point',x2,y2,z2,rsp
jump/c2:,hal:,,rsp
c4:
x=x2-x1
y=y2-y1
z=z2-z1
mat=matrix/transl,x,y,z
obj=transf/mat,ent(1..num)
jump/c3:


1

最新回复 (107)
  • SNFGDGVJX 10年前
    1

    谢谢
    谢谢
    谢谢
    谢谢
    谢谢谢谢谢谢

  • sisi168168 10年前
    2

  • xiubin126 10年前
    3

    回复:楼主
    的顶顶顶顶顶的顶顶顶顶顶

  • songsi8 10年前
    4

    GOOD!!!!!!!!!!!!!!!

  • zF20055 10年前
    5

    这个不是去掉MOVE就是复制吗

  • liyageying 10年前
    6

    谢谢楼主分享,哦哦哦哦哦

  • 励志小伙 10年前
    7

    谢谢楼主分享,嗷嗷嗷嗷。。。

  • qdc791004 10年前
    8

    谢谢楼主分享,00000

  • pengfujun VIP会员 10年前
    9

    这个不是去掉MOVE就是复制吗

  • zjb460515213 10年前
    10

    谢谢分享,辛苦了,新手学习中

  • xu552251213 10年前
    11

    谢谢分享,辛苦了,新手学习中

  • zhoujing0825 9年前
    12

    学习中。。。。。。。。。。。。。。。。

  • 88hwp 9年前
    13

    tytyrtyrty

  • zby186 VIP会员 9年前
    14

    谢谢楼主分享

  • boyue 9年前
    15

    感谢分享。。。。。辛苦了,新手学习中

请登录后发表新帖