Tekla 19 1 free download5/26/2023 You can download the sample code and file for this article from the link below: Where 20.0 is the version you are using.īelow I have compiled a list of user defined attribute from the file: String Parameter You can find all the user defined attribute in the file “objects.inp” located in the path “C:ProgramDataTekla Structures20.0EnvironmentsCommoninp”. The second parameter is the value to set it to (“New Value”). The first parameter to the function is the name of the user defined attribute to modify (User field 1 in this example). Line 4 sets the user defined attribute for the input part object. ObjBeam.SetUserProperty('USER_FIELD_1', 'New Value') Private Sub SetUserDefinedField(ByRef objBeam As TSM.Beam) The following code will set the “User Field 1” property of the input part object to “New Value”: Imports TSM = ![]() ![]() You will need to get reference to the object you wish to get/set its user defined attributes. Below are some of the options for achieving this:ġ- Get reference to an existing part in the tekla model: VB.Net Get Reference to Object, Tekla Open APIĢ- Ask the user to select parts from the model: Tekla Open API: Ask User to Select Objects. 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.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |