View Duplicate then Add Suffix ( Using Data shapes)

archi-lab
clockwork

#1

Hi ,
I’m Trying to Duplicate and Add suffix with this Script. Seems like I’m doing something wrong with DataShapes Package. If I input Normal text no problem . But I’m getting error with Datashapes. And Can anyone tell me how to set Default Value in the UI.MultipleInputForm.


#2

i think you’re using the UI.MultipleInputForm wrong… it should have input types like:
UI.ListView
UI.TextBox
UI.TextNote
UI.DropDown etc.


#3

Hi Thank you for reply. I’m still getting a this error.Rename and Add Suffix.dyn (34.6 KB)


#4

Can you upload the whole graph?

seq[0] is the same as get item at index 0.
it means that there is no index 0 or 1 i think.


#5

@Sujan @Schasfoortyoeri is correct. You can tell from the null in the watch node that something is still not set correctly with the Data-Shapes nodes.

Please provide the graph and/or an image with all result window s shown.


#6

Rename and Add Suffix.dyn (34.6 KB)


#7

@Sujan I get an error opening your file. could you upload a screenshot of your full graph with results pinned?


#8

Hi,
Suddenly the Exact script has worked now.I was getting Null value from User Inputs previously.

  1. How do I reset UI Input Value?
  2. How do I reset Current Selection Value?
  3. Is it possible to have Number of Views to Duplicate Options with 1,2,3…?
    What could be a Better idea to make Number of views?


#9

Almost anything is possible. To select model elements you could also use DataShapes:

Just add this to the list before UI.MultipleInputForm++

What do you mean with “Is it possible to have Number of Views to Duplicate Options 1,2,3 ?”


#10

1.Hi, views are not Model Elements so this method does not work!
2. For Example I might need 3-4 Dependent Views most of time. How do I get no. of views to Duplicate Option.
View 1
View 1-Zone 1
View 1- Zone 2
View 1- Zone 3


#11

See if this works with what you are trying to achief:

If you pin the UI.MultipleInputForm++ you can see what index each item has.
i used index 0 and 1 but its dependend of the sequence you put the inputs in.

You could do naming trough an Excel file, its possible to let the user select the file trough the same interface.

Here an example, the naming of the views is in column A of the excel file. the number of duplicated views is counted from the amount of rows in the excel file.

Its all yellow because i didnt select a file, it will run fine :stuck_out_tongue: