Is it possible to have a user post property min-max range change dynamically based on another post property?

Is it possible to have a user post property min-max range change dynamically based on another post property?

tgioiosa
Participant Participant
186 次查看
2 条回复
1 条消息(共 3 条)

Is it possible to have a user post property min-max range change dynamically based on another post property?

tgioiosa
Participant
Participant

For example, say there's a user property called "toolchange_position", and another user property which is a checkbox(true/false) called "myCheckBox".

I would like the min/max range for "toolchange_position" to be changed on-the-fly whenever the  "myCheckBox" property is checked or unchecked.

It should do this while Post dialog is being shown in Fusion before accepting and running the post processor.

I guess this would be interactive handling, but is there a way to do this (besides .hta method which seems to be obsolete)?

 

0 个赞
187 次查看
2 条回复
回复 (2)
2 条消息(共 3 条)

AdamKunzo
Collaborator
Collaborator

How exactly should "myCheckBox" change the min/max range for toolchange_position? 

 

Do you mean that if myCheckBox is false, the toolchangeposition is not outputed?

0 个赞
3 条消息(共 3 条)

tgioiosa
Participant
Participant
Hi,

No, I'd like the toolchange property min-max range to have one set of
values for myCheckBox property == true and have a different set of
values for when it's false.

For example, in the properties section of my post processor I have this
property:

toolChangeZ: {
  title: "Tool Change: Z ", description: "Z location for tool change",
group: "toolchange",
  type: "spatial", range:[0,120], default_mm: 25.4, default_in: 1
}

and also this checkbox property:

HomeZUp_chkbox: {
  title: "Probe: Z-Home Up?", description: "Z-axis home up or down",
group: "probing",
  type: "boolean", default_mm: true, default_in: true }


As shown the allowed input range is 0 to 120 for the toolchangeZ
property when displayed in the Post Processor dialog box.

I would like the range[0,120] to be changed to range[0,50] if the state
of the HomeZUp_chkbox changes from true to false.

I tried something like  range:[ 0, properties.HomeZUp_chkbox==true? 120
: 50] , but when the HomeZUp_chkbox is ticked in the Post Processor
dialog box, the range[] in the toolChangeZ property doesn't change.  It
acts like the properties section of the post processor gets loaded at
startup and once the properties are displayed in the Post Processor
dialog box they cannot be dynamically changed.


0 个赞