Do any friends use QA macro?

Hello, everyone. I met a problem. I want to use it

Macro colors the components in the assembly, but my operation doesn’t seem to respond. Do you have a good way?

===========================
MACRO main
A=2
######### :joy:##################
Color_RGB=0,122,255
######### :joy:##################

[vxSendEvt,"UiAssemblyManager",110,A,14,8]
[vxSendEvt,"UiAssemblyManager",110,A,2,8]

[vxSend,"~AsmCall(face_at)"]
[vxInitCmd,CdVFaceAt,]


[Print,Color_RGB[0]]
[Print,Color_RGB[1]]
[Print,Color_RGB[2]]
    ######### :joy:##################
[vxSendEvtOpt,10,0,1,6,"Color_RGB[0],Color_RGB[1],Color_RGB[2]"]  # 
    ######### :joy:##################
[vxSendEvtOpt,-1,0,1,2] # Ok

ENDMACRO

===========================

12345

Unfortunately, lines of codes have always remained an extraterrestrial language to me. I cannot help, sorry.

HI Nicolas_TR:

感谢你的关注。
Thank you for your attention.

[vxSend,"!CdVFaceAt"]
[vxInitCmd,CdVFaceAt,]

[vxSend,"~CdFiltListSel(1)"]
[vxSend,"~CdFiMorePick"]

[vxSendEvtOpt,10,0,1,6,“0:255:0”] #
[vxSendEvtOpt,-1,0,1,2] # Ok

ENDMACRO

1 Like

HI manuel
感谢你的回复,但是我需要是颜色随机,不是固定的这种。
Thank you for your reply, but I need a random color, not a fixed one,

===========================
MACRO main
A=2
Color_RGB=0,122,255 :roll_eyes:

[Print,Color_RGB[0]]
[Print,Color_RGB[1]]
[Print,Color_RGB[2]]
>>>>>>>>[vxSendEvtOpt,10,0,1,6,"Color_RGB[0],Color_RGB[1],Color_RGB[2]"]  # 
>>>>>>>>Random colors don't pass in here.(这里随机颜色传递不进来)。

目前装配体,我没法实现,但是组件内的造型我已经实现了。
At present, I can’t realize the assembly, but I have realized the modeling in the component.
动画3

[vxSendEvt,“UiAssemblyManager”,110,2,4,4]
[vxSend,"~AsmCall(face_at)"]
[vxInitCmd,CdVFaceAt,]
[vxSendEvtOpt,10,0,1,6,“255:0:0”] #
[vxSendEvtOpt,-1,0,1,2] # Ok

[vxSendEvt,“UiAssemblyManager”,110,2,4,4]
[vxSend,"~AsmCall(face_at)"]
[vxInitCmd,CdVFaceAt,]
[vxSendEvtOpt,10,0,1,6,“255:0:0”] #
[vxSendEvtOpt,-1,0,1,2] # Ok

[vxSendEvt,“UiAssemblyManager”,110,3,4,4]
[vxSend,"~AsmCall(face_at)"]
[vxInitCmd,CdVFaceAt,]
[vxSendEvtOpt,10,0,1,6,“0:255:0”] #
[vxSendEvtOpt,-1,0,1,2] # Ok

[vxSendEvt,“UiAssemblyManager”,110,4,4,4]
[vxSend,"~AsmCall(face_at)"]
[vxInitCmd,CdVFaceAt,]
[vxSendEvtOpt,10,0,1,6,“255:255:0”] #
[vxSendEvtOpt,-1,0,1,2] # Ok

[vxSendEvt,“UiAssemblyManager”,110,5,4,4]
[vxSend,"~AsmCall(face_at)"]
[vxInitCmd,CdVFaceAt,]
[vxSendEvtOpt,10,0,1,6,“0:0:255”] #
[vxSendEvtOpt,-1,0,1,2] # Ok

[vxSendEvt,“UiAssemblyManager”,110,6,4,4]
[vxSend,"~AsmCall(face_at)"]
[vxInitCmd,CdVFaceAt,]
[vxSendEvtOpt,10,0,1,6,“255:0:255”] #
[vxSendEvtOpt,-1,0,1,2] # Ok

[vxSendEvt,“UiAssemblyManager”,110,7,4,4]
[vxSend,"~AsmCall(face_at)"]
[vxInitCmd,CdVFaceAt,]
[vxSendEvtOpt,10,0,1,6,“255:255:255”] #
[vxSendEvtOpt,-1,0,1,2] # Ok

ENDMACRO

1 Like

Hi manuel:

Thank you for your reply!
感谢你的回复!

What I need is
我需要的是
[vxSendEvtOpt,10,0,1,6,“255:255:0”] #

255::255:0
Here are random colors, not fixed,
这里是随机颜色,不是固定的,

HI manuel:

这个是你吗?
Is this you?

The 2nd prize goes to Manuel Batista from Portugal,

Galena Hurtado Emiliano from Mexico, and Olaf Surkus from Germany. They will be rewarded with a Nintendo Switch OR AirPods Pro

https://www.zwsoft.com/campaign/ugc/gallery/2021

yes it’s me, i won the second prize

:+1: :+1: :+1: :+1: :+1:good!

[vxSendEvtOpt,10,0,1,6,“255:255:255”] #
“255:255:255” 这里你试过可以用变量实现吗?
“255:255:255” have you tried to use variables here?

可以共享这个脚本给我吗?我想研究一下如何安排随机变量

1 Like

Mikael:

你好,目前ZW3D没有随机变量,目前循环累加组合实现的!

Can you please include an English text copy an any posts?
Cheers - Paul

:grinning:
Actually, he’s an engineer at ZW.

Surprised, huh?

It is good he is here.
Cheers - Paul

@Cowboy99

There should be accounts of their other colleagues, as if they did not speak.

Hi All,

Last month I received a request from Philippe Peng from Zw support to have a link to the forum.
I sent a link to the general ZW support mail, so, all support engineers can have a look at the forum, if they like.
In general, all support people use the same mail address.

Best regards,
Luurt

1 Like

@luurt4c

I hope they have time to read it,