How to set up a custom property

Hello everyone,

I don't know if it's possible, but certainly yes, is it possible to set up a custom property and how to do it?

Thanks in advance

Hello

Configure it in relation to what? Because it's vast.

2 Likes

Ok excuse me for the vagueness and thank you for your question,

I have a custom property that tells me the grain direction of a piece of wood, which at first is "long grain" because my piece has a length dimension greater than its width.

But when I set up the length dimension, this length becomes smaller than the width.

So I would like to set "Long Wire" to "Short Wire" for my second setup.

I hope I have been clear

Hello, I have a track not yet tested, in principle with an IIf() condition, it is possible to determine the longer length of the two variables (measure type), then in the custom properties it is possible to bind to this quantity, 

2 Likes

There are also simpler cube visualization, where the length adjusts automatically,

Just one thing escapes me, I'm not familiar with wood, but if it's the same as a metal grating, the load-bearing direction must be perpendicularity to the supports (45deg to avoid mistakes), so it doesn't change according to length and width, 

1 Like

Thank you Lynk for your info,

I like the IIf() condition, but I can't find where my custom property is stored to integrate the equation.

Can you guide me?

FYI here is how to register my custom property:

 


screen_shot_01-07-22_at_06.48_pm.png

Indeed, the Control radio button allows the user to select predefined values,

In this case, the property name of these "thread directions" whose value can only be 0, 1 or 2 depending on what the user has checked,

For the condition, below are illustrations,

The "wire direction" property is defined in custom langlet since this value is calculated globally, it avoids the assignment for each configuration ;)

(personally I'm leaning towards the visualization cube, it's simpler and more practical to me) 


capture_00.png
capture_01.png
capture_02.png
capture_03.png
4 Likes

Thank you Lynk for this mini tutorial, it's great!

On the other hand I still have problems, because it's not quite that.

The return value by wire direction should be Long Wire or Short Wire, not the largest dimension of the part, which is what I already have with the visualization cube, as you talked about above.

If I take the example of the piece that is 300x150 and my thread direction is on 300 it is a long thread, on the other hand if I cut my length from 300 to 100, I have a piece that is 100x150 and with a short thread, since the thread direction has not changed.

I hope once again that I have been clear

 

Ok in this case I suggest passing the equation with excel (design table), because the equation tool can only process values no text, so the "thread direction" property will be specific to the configuration 


capture_04.png
capture_06.png
1 Like