grip开发的自动分层
这是一个批量自动分图层的程序,框选好你要分层的零件后输入指定的起始图层后part会自动分配到不起始图层后的图层中。
我也搭车分享一个。
这个工具好用 感谢分享 感谢分享,支持哪些版本? ua888368 发表于 2026-9-2 19:59
感谢分享,支持哪些版本?
我提供的是在NX2312版本下编译的,其他版本不知道。 entity/obj(1000)
number/i
l10:
i=1
ident/'Select a part',obj,cnt,q,resp
$$print/q
l20:
param/'Input layer number','Layer No.:',n,resp
jump/l10:,end:,,,resp
if/n<=0 or n>256,jump/tips:
l25:
&layer(obj(i))=n+i-1$$实体集合的索引开始是1
i=i+1
$$print/i
if/i>q,jump/l30:
jump/l25:
tips:
messg/'Tips:Input a number 1-256.'
jump/l20:
l30:
end:
halt
这里面grip的原码 entity/obj(1000)
number/i
l10:
i=1
ident/'Select a part',obj,cnt,q,resp
$$print/q
l20:
param/'Input layer number','Layer No.:',n,resp
jump/l10:,end:,,,resp
if/n<=0 or n>256,jump/tips:
l25:
&layer(obj(i))=n+i-1$$实体集合的索引开始是1
i=i+1
$$print/i
if/i>q,jump/l30:
jump/l25:
tips:
messg/'Tips:Input a number 1-256.'
jump/l20:
l30:
end:
halt
原码在这里 不错不错,很受用,谢谢您!🙏
页:
[1]