I trying to build a dynamic component of a hollow core slab and want to at 2 options. I’m pretty new to DC, but I know how to use a few of the basic attributes. I hope that somebody can help me.
I’m using the textbox for editing the length, but I want it to give it also a maximum length. Can somebody tell me if this is possible.
I’m also trying to hide a few groups with a list. For example the follow core slab have a joint on the right or left side and I’m want select the right or the left one.
Hi Andreas
I don’t have SU 2015 to open yours, but I’ll give you a possibility for your project.
For the maximum length, you can make a 2 new variable to equal the length provided, but if it’s over a certain length, it’ll just equal the max length:
LenX = NewX
TextX = Textbox (To allow user to input their measurement)
NewX = IF(TextX>100,100,TextX)
So they input into TextX
NewX’s value will equal to TextX unless it exceeds 100 in which case it’ll just stay at 100
LenX will equal NewX
As for hiding a part, if it’s a group within your component, it can have attributes. There is a function to hide the group (two values, 1 = hidden, 0 = visible). You just need to make a new variable with a list in the parent component (the overall component), on/off where “on” = 0 and “off” = 1, and have the hidden variable on the group’s attribute will equal that one:
Overall component
Hide: Show list: “on”=0, “off”=1
I was wondering if there is a way to update the textbox value with a maximum value if you input a value greater than the maximum. So in your example if you input 102 into “TextX” it would automatically change it to 100 in the textbox.
In this example if the user inputs TextX = 102, NewX will = 100, but TextX will still = 102, so the user will see 102 in the Component Options box, even though in the model LenX = 100. I guess my question is, is there a way to update what is in the textbox, besides through the user input?
I am making dynamic component models with max/min values. I want the user to see the actual values in the model through the Component Options dialog. I could do this by using a drop down menu with every possible value listed out, but it would be cleaner with a textbox.
Hi
One way is to highlight or color an attribute label to gain the users attention:
Refer to DC supported HTML tags
example below. however when editing it can be unstable plus one cannot see all the orginal, so I find it useful to make a copy of the description in a unseen attribute