
ObjModel.SetUserProperty("USER_FIELD_1", "Hide") ObjPart.SetUserProperty("USER_FIELD_1", "Show") This can be achieved using the code below: Imports TSM = ĭim objViewEnum As TSM.UI.ModelViewEnumeratorįor Each objModel In Lets say we only want to show the parts in the model. With the previous filter in place all you need to do is change the value of “user field 1” for the objects in the model, and they will be hidden or shown. Once the filter is created you will be able to use it in all other models. Save the filter under the name “MyNewFilter”: You will need to manually create the following filter: ( Step 2, Manually Create Filter (One Time Only): VB.Net Open Tekla Structure Model (Tekla Open API).This has been covered in the article below: Add reference to the library located in the path “C:Program FilesTekla Structures20.0ntbinplugins” and manually open the tekla model.
