Create user define parameters in part

Hello,
Is is any example of macro, how to create new user define parameter in part?

If it is possible read parameters and find if parameter exist and if not create it…

Thank you

HI

This difficulty factor is not low!

It is possible to do by script inside zw3d or I need use c++?

Thank you

Perhaps you want to tell you whether you want to create equations or attributes?

Hello,
Only attributes for part

HI

# Author - 金州锅锅
# Date - 2024/5/21
# Version - 29
# Description 
# 演示用户属性添加属性

MACRO main
GLOBAL Str = " "
[vxSend,"$SF=UiPartAt"]
[vxSendEvt,"UiPartAt",1000,2,2]

#遍历选择对象ID
iCnt = 0
	WHILE (iCnt < 5)
	Str<="zw3dforum" + iCnt
	[Print,Str]
	[vxSendEvt,"UiUserProp",1,0,2]
	[vxSendEvt,"UiUserProp",1,0,6,Str]
	[vxSendEvt,"UiUserProp",1,(0,3),6,"test"]
	[vxSend,"~CdPartAtItemHandle(insert)"]
	iCnt=iCnt+1
	ENDWHILE
[vxSendEvt,"UiPartAt",120,2,2]
ENDMACRO

Thank you,

It is way how can I add this macro into my custom toolbar?

Thank you

I hope it helps!

Hello, Thank you very much